Hello, I'm wondering how do you teleport players to certain locations like. Player spawns at lobby, teleports to map1, comes back to lobby, teleports to map2 etc.
COMMUNITY QUESTION
How do you teleport players?
1 answer
To teleport a player, simply CFrame their torso.
local player = "Goulstem"
workspace[player].Torso.CFrame = CFrame.new(0,100,0)
To teleport multiple players, iterate through them all and CFrame their torsos
for _,v in next,game.Players:GetPlayers()
v.Character.Torso.CFrame = CFrame.new(0,100,0)
end
1 comment
0
rather than a position such as 100, just use the position of the part in the map + 5 or the y valu
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Search the wiki sometime. http://wiki.roblox.com/index.php?title=API:Class/TeleportService/Teleport
wrong @ axovua he wants to use MoveTo property or Cframe the torso of all players in the game to a location in the server map.