Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is this right way to make player teleport?

Asked by 2 years ago
script.Parent.Touched:Connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid") then
        hit.Parent:MoveTo(script.Parent.Parent.Part.Position)
    end
end)

I have seen people use HumanoidRootPart and CFrame for teleport but is there anything wrong with making player teleport this way? it seems to work tho.

1
There's nothing wrong using MoveTo with teleportation, so yes it's completely fine. SEAN_YT213 139 — 2y
0
Thanks Sabailuridze 126 — 2y

1 answer

Log in to vote
0
Answered by 2 years ago

You can use PivotTo.

character:PivotTo(part.CFrame)
Ad

Answer this question