Skip to content

PartyService:Create()

CavaleiroDev edited this page Nov 7, 2022 · 4 revisions

creates a new party which can then be used to teleport players to another place.

Info

PartyService:Create(Owner, PlaceId, Name, MaxPlayers)

Parameter Value Required What is Default
Owner Instance (Player) True the player that created the party
PlaceId Number True the place id the game will teleport players
Name String False the party name {OwnerName}`s Party
M Number False the max amoun of players that can join the party 50

Sample code

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

event.OnServerEvent:Connect(function(Owner)
	local PartyInfo = PartyService:Create(Owner, 9743022048, "Test Party", 10) -- PartyOwner, PlaceId, PartyName (optional), MaxPlayers (optional)
end)

Returns

Value What it does
PartyTable a table that contains all the information of a party

Clone this wiki locally