Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Type = {'SurfaceJoint','JoinInstance'}
- function checkObj(type)
- for i = 1,#Type do
- if type:IsA(Type[i]) then
- return true
- end
- end
- return false
- end
- function scan(obj)
- for _,v in pairs(obj:GetChildren()) do
- if checkObj(v) then
- v:Destroy()
- else
- scan(v)
- end
- end
- end
- scan(game.Workspace)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement