Skip to content

PartyService:PlayerIsInParty()

CavaleiroDev edited this page Nov 7, 2022 · 1 revision

checks if a player is in a certain party.

Info

PartyService:PlayerIsInParty(Player, Party)

Parameter Value Required What is Default
Player Instance (Player) True the player to be checked
Party PartyTable True a valid PartyTable

Sample code

local PartyService = require(game.ReplicatedStorage.PartyService)

if PartyService:PlayerIsInParty(game.Players.CavaleiroDev, PartyService:GetPartyById(1)) then

end

Returns

Value What it does
Boolean true if the player is in the party or false if not

Clone this wiki locally