Skip to content

PartyService:IsPlayerInParty()

CavaleiroDev edited this page Nov 7, 2022 · 1 revision

checks if a player is in a specific party

Info

PartyService:IsPlayerInParty(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)

print(PartyService:IsPlayerInParty(game.Players.CavaleiroDev, PartyService:GetPartyById(1)))

Returns

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

Clone this wiki locally