0% found this document useful (2 votes)
6K views2 pages

Dark Dex V3

This script generates a random name for a Dex object, loads it into the CoreGui, and runs scripts inside it by giving each script its own isolated environment.

Uploaded by

Kacang
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (2 votes)
6K views2 pages

Dark Dex V3

This script generates a random name for a Dex object, loads it into the CoreGui, and runs scripts inside it by giving each script its own isolated environment.

Uploaded by

Kacang
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

if game:GetService'CoreGui':FindFirstChild'Dex' then

game:GetService'CoreGui'.Dex:Destroy();
end

math.randomseed(tick())

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
function RandomCharacters(length)
if length > 0 then
return RandomCharacters(length - 1) .. charset[math.random(1, #charset)]
else
return ""
end
end

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


Dex.Name = RandomCharacters(math.random(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[b] == nil then
return getfenv()[b]
else
return RealFenv[b]
end
end
FenvMt.__newindex = function(a, b, c)
if RealFenv[b] == nil then
getfenv()[b] = c
else
RealFenv[b] = 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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy