Skip to content

PartyService:Delete()

CavaleiroDev edited this page Nov 7, 2022 · 1 revision

deletes a existing party.

Info

PartyService:Delete(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.DeleteParty

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

Clone this wiki locally