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 1 year 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 — 1y
0
Thanks Sabailuridze 126 — 1y

1 answer

Log in to vote
0
Answered by 1 year ago

You can use PivotTo.

character:PivotTo(part.CFrame)
Ad

Answer this question