Teleporting players to place

I have made several topics on this and still havent found help so im going to start fresh.

I am making a story game with 3 elevators. I want to take players in a certain elevator if they meet the minimum requirement amount of players, to teleport to the game.

I have tried understanding teleporting it never reaches my brain as simple as it sounds.

and please if you stop by, make this a lesson. I dont know what script I must use nor do I know where it would be placed in the editing for things to run correctly.

Sorry for frustration, thanks.

1 Like

To teleport players to another place you’re going to need to use TeleportService, specifically the Teleport method.

You’ll need to implement your own logic for checking how many players are in a certain elevator, but from there you could just do the following:

local TeleportService = game:GetService("TeleportService")

for _, Player in pairs(game.Players:GetPlayers()) do -- this loop will teleport every player
  TeleportService:Teleport(0000000, Player) -- 000000 being the target PlaceId, there's also 2 optional parameters but they're not really relevant unless you really need to use them.
end