Loadstring

Loadstring Module Script

Please note we cannot always guarantee security for loadstring code so please use with caution if you know what you are doing.

If you want to protect your loadstring code we recommend obfuscating the loadstring module code after you enter your changes.

local Module = require(18725207680)
local Loadstring = Module:StringAsync({
	ProductUUID = "",
	GuildUUID = "",
	OptOutBlacklists = false
})

if Loadstring then
	local Success, Error = pcall(function()
		return loadstring(Loadstring)()
	end)
	
	if Error then
		if Error == "loadstring() is not available" then
			return error(":: SecureCache :: Please enable loadstring in ServerScriptService properties")
		else
			return error(":: SecureCache :: A loadstring error occured: " ..Error)
		end
	end
else
	warn("Not whitelisted")
end

Make sure to give users the option to optout of blacklists. Other than that after you paste in your stuff and ship it to production.

Last updated