Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- offset = Vector3.new(10000000, 0, 0)
- function check(o)
- print(o:GetFullName())
- if not o:FindFirstChild("Humanoid") then
- for i,v in pairs(o:GetChildren()) do
- if v:IsA("BasePart") then
- if v.ClassName ~= "Terrain" then
- v.Position = v.Position + offset
- v:Destroy()
- check(v)
- end
- end
- end
- else
- if o:FindFirstChild("HumanoidRootPart") then
- print("MovePlayer")
- o.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(o.Position + offset))
- end
- end
- end
- check(game.Workspace)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement