Advertisement
DrawingJhon

Destroy All scripts

Aug 4th, 2020 (edited)
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.25 KB | None | 0 0
  1. for i, v in pairs(game:GetChildren()) do
  2.     pcall(function()
  3.         local asdasucfsqadc = v.Name
  4.         for _, child in pairs(v:GetDescendants()) do
  5.             if child:IsA("BaseScript") then
  6.                 pcall(function()
  7.                     child:Destroy()
  8.                 end)
  9.             end
  10.         end
  11.     end)
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement