Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[(removes all scripts from selection use if you know there is nothing functioning in the build or you dont want it to function)]]
- local inches = 0
- local scrs = 0
- warn("START")
- for bruhi,bruhv in pairs(game.Selection:Get()) do
- if bruhv:IsA("BaseScript")==false or bruhv:IsA("ModuleScript")==false then
- for i,v in pairs(bruhv:GetDescendants()) do
- inches = inches+1
- if v:IsA("BaseScript") or v:IsA("ModuleScript") then
- scrs = scrs+1
- print("removed ".. v.Name .. " class: ".. v.ClassName)
- v:Destroy()
- end
- end
- else
- bruhv:Destroy()
- end
- end
- warn("looked through ".. inches .." items ".. scrs .. " scripts found.")
- warn("END")
Add Comment
Please, Sign In to add comment