Hydasi

Stylz Makeover Delete Map

Jul 2nd, 2020
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. function dontdel(v)
  2. if (not v) then return false end
  3. if game.Players:GetPlayerFromCharacter(v) then return true end
  4. if (v:IsA('RemoteEvent')
  5. or v:IsA('RemoteFunction')
  6. or v:IsA('Camera')
  7. ) then return true end
  8.  
  9. return false
  10.  
  11. end
  12.  
  13.  
  14. for _,v in next,Workspace:GetChildren() do
  15. if dontdel(v) then continue end
  16. spawn(function()
  17. game.Workspace.HatEvent:FireServer("RemoveHat", 0, Workspace, v.Name)
  18. end)
  19. end
Add Comment
Please, Sign In to add comment