I’m making lobby and almost done, only players teleport left
But how do I make players get teleported to a private server (game)
those 4 are players must get teleported
local player1 = first.Parent:GetPlayerFromCharacter()
local player2 = second.Parent:GetPlayerFromCharacter()
local player3 = third.Parent:GetPlayerFromCharacter()
local player4 = fourth.Parent:GetPlayerFromCharacter()
teleport place ID: 8882985920
Here you have all the documentation that you need to achieve this.
1 Like
Use TeleportService.
In a localscript, you can do.
game:GetService("TeleportService"):Teleport(8882985920)
you might wanna check out TeleportService:ReserveServer() and TeleportService:TeleportToPrivateServer() for this