Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Is this right way to make player teleport?

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.

2 comments

1

There's nothing wrong using MoveTo with teleportation, so yes it's completely fine.

0

Thanks

1 answer

You can use PivotTo.

character:PivotTo(part.CFrame)

This discussion is preserved as it was. New answers, comments, and votes are closed.