-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDex.lua
More file actions
68 lines (60 loc) · 2.18 KB
/
Copy pathDex.lua
File metadata and controls
68 lines (60 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
-- Cloneref support (adds support for JJsploit/Temple/Electron and other sploits that don't have cloneref or really shit versions of it.)
loadstring(game:HttpGet("https://raw.githubusercontent.com/FunScript1/DarkDex/refs/heads/main/CloneRef.lua", true))()
-- Dex Bypasses
loadstring(game:HttpGet("https://raw.githubusercontent.com/FunScript1/DarkDex/refs/heads/main/Bypass.lua", true))()
-- Dex with CloneRef Support (made as global)
getgenv().Bypassed_Dex = game:GetObjects("rbxassetid://9352453730")[1]
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
Bypassed_Dex.Name = RandomCharacters(math.random(5, 20))
if gethui then
Bypassed_Dex.Parent = gethui();
elseif syn and syn.protect_gui then
syn.protect_gui(Bypassed_Dex);
Bypassed_Dex.Parent = cloneref(game:GetService("CoreGui"))
else
Bypassed_Dex.Parent = cloneref(game:GetService("CoreGui"))
end
local function Load(Obj, Url)
local function GiveOwnGlobals(Func, Script)
local Fenv = {}
local RealFenv = {script = Script}
local FenvMt = {}
function FenvMt:__index(b)
if RealFenv[b] == nil then
return getfenv()[b]
else
return RealFenv[b]
end
end
function FenvMt:__newindex(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
task.spawn(GiveOwnGlobals(loadstring(Script.Source, "=" .. Script:GetFullName()), Script))
end
for _,v in ipairs(Script:GetChildren()) do
LoadScripts(v)
end
end
LoadScripts(Obj)
end
Load(Bypassed_Dex)