Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

local rng = Random.

new()

local charset = {}
for i = 48, 57 do table.insert(charset, string.char(i)) end
for i = 65, 90 do table.insert(charset, string.char(i)) end
for i = 97, 122 do table.insert(charset, string.char(i)) end
local function RandomCharacters(length)
if length > 0 then
return RandomCharacters(length - 1) .. charset[rng:NextInteger(1, #charset)]
else
return ""
end
end

local Dex = game:GetObjects("rbxassetid://9553291002")[1]


syn.protect_gui(Dex)
Dex.Name = RandomCharacters(rng:NextInteger(5, 20))
Dex.Parent = game:GetService("CoreGui")

local function Load(Obj, Url)


local function GiveOwnGlobals(Func, Script)
local Fenv = {}
local RealFenv = {script = Script}
local FenvMt = {}
FenvMt.__index = function(a,b)
if RealFenv == nil then
return getfenv()
else
return RealFenv
end
end
FenvMt.__newindex = function(a, b, c)
if RealFenv == nil then
getfenv() = c
else
RealFenv = c
end
end
setmetatable(Fenv, FenvMt)
setfenv(Func, Fenv)
return Func
end

local function LoadScripts(Script)


if Script.ClassName == "Script" or Script.ClassName == "LocalScript" then
spawn(function()
GiveOwnGlobals(loadstring(Script.Source, "=" .. Script:GetFullName()),
Script)()
end)
end
for i,v in pairs(Script:GetChildren()) do
LoadScripts(v)
end
end

LoadScripts(Obj)
end

Load(Dex)

You might also like