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

What function would i use to teleport people?

Asked by 10 years ago

I want to make it teleport people to a specific map. Do I have to have special spawns there? (I will if it makes it easier)

2 answers

Log in to vote
1
Answered by 10 years ago

Many methods

I concider this the most efficient

torso.CFrame = CFrame.new(0,0,0)--Position of the part
Player.Humanoid:MoveTo(___,___) -- Position of the part

Ad
Log in to vote
0
Answered by 10 years ago

If I were you, this is what I would do.

If you have a lobby with the SpawnLocations, what I would do is have a Map in the lighting. There would be SpawnLocations included in the map for the correct teams, etc.

All I would do would be to make the Map's parent Workspace, then make the Lobby SpawnLocation's parent Lighting. Then simply kill all of the players, and they should respawn on the correct SpawnLocations in the map. Then when the round is over, reverse the order of things and respawn the players again.

Otherwise, you can use CFrame to reposition the Players' torsos onto the map. I believe that works.

If I were to write a script for you, it probably wouldn't work, as I'm more of an idea-er than a scripter.

0
Wait so Switch the Parents for the Map and lobby? kill the players and then they spawn at the right map? snoppyploptart 59 — 10y

Answer this question