Skip to content

PartyService:TeleportToLobby()

CavaleiroDev edited this page Nov 7, 2022 · 1 revision

teleports players back to the lobby

Info

PartyService:TeleportToLobby(LobbyId, Players)

Parameter Value Required What is Default
LobbyId Number True the place id players will be teleported to.
Players Table True a table containing the players to be teleported

Sample code

local PartyService = require(game.ReplicatedStorage.PartyService)
local event = game.ReplicatedStorage.TeleportBack

event.OnServerEvent:Connect(function()
	PartyService:TeleportToLobby(652399723, game.Players:GetChildren())
end)

Clone this wiki locally