Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- < Services > --
- local InsertService = game:GetService("InsertService")
- local CoreGui = game:GetService("CoreGui")
- -- < Aliases > --
- local table_insert = table.insert
- local table_foreach = table.foreach
- local string_char = string.char
- local getobjects = function(a) -- Faster than game:GetObjects(a)
- local Objects = {}
- if a then
- local b = InsertService:LoadLocalAsset(a)
- if b then
- table_insert(Objects, b)
- end
- end
- return Objects
- end
- -- < Values > --
- local Charset = {}
- local Random_Instance = Random.new()
- local RemoteDebugWindow = CoreGui:FindFirstChild("RemoteDebugWindow", true)
- -- < Source > --
- if RemoteDebugWindow then
- RemoteDebugWindow.Parent:Destroy()
- end
- 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
- function RandomCharacters(length)
- return length > 0 and RandomCharacters(length - 1)..Charset[Random_Instance:NextInteger(1, #Charset)] or ""
- end
- -- Main version : "rbxassetid://5475777257"
- local Dex = getobjects("rbxassetid://9834403040")[1] -- Beta version: "rbxassetid://5482100934" | I will constantly update beta version so it might break
- pcall(syn.protect_gui, Dex)
- Dex.Name = RandomCharacters(Random_Instance:NextInteger(5,20))
- Dex.Parent = CoreGui
- local function Load(Obj, Url)
- local function GiveOwnGlobals(Func, Script)
- local Fenv, RealFenv, FenvMt = {}, {script = Script}, {}
- FenvMt.__index = function(a,b)
- return RealFenv[b] == nil and getgenv()[b] or RealFenv[b]
- end
- FenvMt.__newindex = function(a, b, c)
- if RealFenv[b] == nil then
- getgenv()[b] = c
- else
- RealFenv[b] = c
- end
- end
- setmetatable(Fenv, FenvMt)
- pcall(setfenv, Func, Fenv)
- return Func
- end
- local function LoadScripts(_, Script)
- if Script:IsA("LocalScript") then
- spawn(function()
- GiveOwnGlobals(loadstring(Script.Source,"="..Script:GetFullName()), Script)()
- end)
- end
- table_foreach(Script:GetChildren(), LoadScripts)
- end
- LoadScripts(nil, Obj)
- end
- Load(Dex)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement