Advertisement
dahpiglz

Untitled

Jan 12th, 2019
556
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. offset = Vector3.new(10000000, 0, 0)
  2.  
  3. function check(o)
  4. print(o:GetFullName())
  5. if not o:FindFirstChild("Humanoid") then
  6. for i,v in pairs(o:GetChildren()) do
  7. if v:IsA("BasePart") then
  8. if v.ClassName ~= "Terrain" then
  9. v.Position = v.Position + offset
  10. v:Destroy()
  11. check(v)
  12. end
  13. end
  14. end
  15. else
  16. if o:FindFirstChild("HumanoidRootPart") then
  17. print("MovePlayer")
  18. o.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(o.Position + offset))
  19. end
  20. end
  21. end
  22.  
  23. check(game.Workspace)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement