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

Help With Teleporting script?

player.Character.Torso.CFrame = Vector3.new(script.Parent.RunnerPiece.Position) + Vector3.new(0, i * 5, 0)

This script is supposed to teleport each player to a certain block's position, but it's not working. Can someone help me out with this?

3 answers

✓ Accepted answer

You can use MoveTo on the Character.

player.Character:MoveTo(script.Parent.RunnerPiece.Position + Vector3.new(0, i * 5, 0))

Here is a function that might help you ;)


local function MovePlayerToPart(Player,Part)
	local Character = Player.Character or Player.CharacterAdded:wait()
	Character:MoveTo(Part)
end

For a faster in my oppinion teleport try this.

player.Character.Torso.CFrame = CFrame.new(script.Parent.RunnerPiece.Position(0, i * 5, 0)
)

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