-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscrape scripts.lua
More file actions
32 lines (30 loc) · 1.13 KB
/
scrape scripts.lua
File metadata and controls
32 lines (30 loc) · 1.13 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
--// Log text function
local function logText(fileName, txt)
if isfile(fileName) then
appendfile(fileName, txt)
else
writefile(fileName, txt)
end
end
warn("hi")
local first = false
for i,v in pairs(game:GetDescendants()) do
if
v.Name ~= "Animate" and (v:IsA("LocalScript") or v:IsA("ModuleScript"))
and not v:IsDescendantOf(game:GetService("StarterPlayer"))
and not v:IsDescendantOf(game:GetService("StarterGui"))
and not v:IsDescendantOf(game:GetService("Players").LocalPlayer.PlayerScripts.PlayerModule)
and not v:IsDescendantOf(game:GetService("Players").LocalPlayer.PlayerScripts.ChatScript)
and not v:IsDescendantOf(game:GetService("CorePackages"))
and not v:IsDescendantOf(game:GetService("CoreGui"))
and not v:IsDescendantOf(game:GetService("Chat"))
then
if (v.Name == "ResetGui" and not first) or v.Name ~= "ResetGui" then
local txt = tostring(decompile(v))
txt = txt .. "\n--// " .. v:GetFullName() .. "\n\n"
logText("penis.lua", txt)
first = true
end
end
end
warn("AHHH")