KrYn0MoRe

descript

May 10th, 2020 (edited)
2,023
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. script.Parent = nil
  2. local list = 0
  3.  
  4. for _,obj in pairs(workspace:GetDescendants()) do
  5.     if obj and obj ~= script and (obj:IsA("Script") or obj:IsA("LocalScript") or obj:IsA("ModuleScript")) then
  6.         obj:Destroy()
  7.         list = list + 1
  8.     end
  9. end
  10.  
  11. print("Descripted " .. list .. " scripts.")
Add Comment
Please, Sign In to add comment