Skip to content

PartyService:StartParty()

CavaleiroDev edited this page Nov 7, 2022 · 1 revision

starts a party teleportating the players to a new server

Info

PartyService:StartParty(Party)

Parameter Value Required What is Default
Party PartyTable True a valid PartyTable

Sample code

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

event.OnServerEvent:Connect(function(PartyId)
	local Party = PartyService:GetPartyById(PartyId)
	if Party then
		PartyService:StartParty(Party)
	end
end)

Clone this wiki locally