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

Teleporting not working?

Player = game.Players.LocalPlayer
Player.Character.Torso.CFrame = CFrame.new(Vector3.new(game.Workspace.TeleBrick.Position))

This code is meant to teleport my character to the position of "TeleBrick" however instead of teleporting like it should, the character does a little bounce on the spot I've also tried the MoveTo method but got exactly the same results please help.

1 answer

✓ Accepted answer

The problem could be one of two scenarios: One, you're Telling the game to move the torso to The CFrame of The Vector3 of the Telebrick's position. The telebrick's position is already a Vector3. Second, the character could be inside the telebrick, which I'm assuming is not true.

Instead of CFraming the torso to the CFrame of the position, simply get the brick's CFrame instead, like so:

Player = game.Players.LocalPlayer
Player.Character.Torso.CFrame = game.Workspace.Telebrick.CFrame + Vector3.new(0, 5, 0)

If your Telebrick isn't in the ground, then you can remove the Vector3 I added. If it is, I would leave it there, otherwise your character would get stuck in the ground and possibly fling out of the world.

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