You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
local PartyService = require(game.ReplicatedStorage.PartyService)
local event = game.ReplicatedStorage.KickPlayer
event.OnServerEvent:Connect(function(localplayer, Player, Id)
local Party = PartyService:GetPartyById(Id)
if Party then
PartyService:KickPlayer(Player, Party)
end
end)
Returns
Value
What it does
Boolean
true if the operation was successful, otherwise false