Advertisement
Guest User

Untitled

a guest
Apr 28th, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. local Type = {'SurfaceJoint','JoinInstance'}
  2.  
  3. function checkObj(type)
  4. for i = 1,#Type do
  5. if type:IsA(Type[i]) then
  6. return true
  7. end
  8. end
  9. return false
  10. end
  11.  
  12. function scan(obj)
  13. for _,v in pairs(obj:GetChildren()) do
  14. if checkObj(v) then
  15. v:Destroy()
  16. else
  17. scan(v)
  18. end
  19. end
  20. end
  21.  
  22. scan(game.Workspace)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement