Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to Teleport Someone Without Killing Them?

Asked by 8 years ago

Hello, I have made the following code, and it works:

PartPosition = game.Workspace.Part.Position
wait(3)
game.Workspace.Player.Torso.Position = PartPosition

I did that so it moves the torso, but in doing that I thought it would move the rest as well. How can I teleport a player somewhere without killing them? Thanks! Happy Thanksgiving!

1 answer

Log in to vote
4
Answered by
Tigerism 220 Moderation Voter
8 years ago

Use :MoveTo().

Code:

PartPosition = game.Workspace.Part.Position
wait(3)
game.Workspace.Player:MoveTo(PartPosition)

0
Thanks! yoman1776 85 — 8y
Ad

Answer this question