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

How would I teleport players without killing them?

So far, I have this:

game.Workspace.PLAYER1NAMEHERE.Torso.Position = game.Workspace.PLAYER2NAMEHERE.Torso.Position

But when I tested it, Player 1 died, but his torso successfully teleported to Player 2. I thought that the Torso would come with the body, but obviously that failed.

Any ideas?

3 answers

✓ Accepted answer

Use :MoveTo()

game.Workspace.PLAYER1NAMEHERE:MoveTo(game.Workspace.PLAYER2NAMEHERE.Torso.Position)

2 comments

0

Thanks!

1

No problem!

Instead of using position, try using CFrame

game.Players.Player1.Character.Torso.CFrame = CFrame.new(1,1,1)
game.Workspace.PLAYER1NAMEHERE.Torso.CFrame = game.Workspace.PLAYER2NAMEHERE.Torso.CFrame

Just a simple edit, CFrame works, position doesn't.

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