Skip to content

PartyService:SetPartyServerEmulator()

CavaleiroDev edited this page Nov 7, 2022 · 1 revision

starts a party server emulator by firing the ServerStarted event

Info

PartyService:SetPartyServerEmulator(FakePartyData)

Parameter Value Required What is Default
FakePartyData Any False the data that the game will read in the studio

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
Boolean true if the operation was successful, otherwise false
String a success or error message

Clone this wiki locally