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

How can I teleport players to a specific area in my place?

Hi,** I'm kinda new to scripting,** so sorry if I seem "noobish". How can I teleport players to a specific place?

Like, I dunno...

if (something) true then (teleport script)

Okay, thanks. I'm also new to this site, so, yeah.

1 answer

There are a few ways to teleport a player to another spot in-game.

One of the easiest to use is the MoveTo method on a player's character. It accepts a Vector3 value, which is where the player will be teleported/moved to.

Character:MoveTo(Vector3.new(x, y, z))

The other way is to set a player's torso's CFrame property. It, semi-obviously, takes a CFrame value.

Character.Torso.CFrame = CFrame.new(x, y, z)

1 comment

0

Thank you! :D

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