How can I check if a player is in a table and if so remove them, how can I do this without knowing their position in the table?
game.ReplicatedStorage.WaitingTeam.OnServerEvent:Connect(function(plr)
local piwt = {}
local pig = {}
table.insert(piwt,plr)
if #piwt == 1 then
for i, v in pairs(piwt) do
table.insert(pig,v)
end
for i, v in pairs(pig) do
if v == plr.Name then
game.ReplicatedStorage.GameBegins:FireClient()
end
end
end
game.Players.PlayerRemoving:Connect(function(p)
table.remove(piwt,--p)
end)

4 comments
I'm not seriously!! I just upvoted you I don't get it?
Would you mind removing your downvote?
That isn't me, I didnt downvote you, i'll uppvote your answer though
Huh, this is getting crazy