I want to insert a player in to the table then see if a player inside of a table said something, BUT FOR NOW, i want to add the players to the table and remove them when they leave, could you give me tips on this?
local tab = {}
game.Players.PlayerAdded:Connect(function(plr)
table.insert(tab,plr)
end)
game.Players.PlayerRemoving:Connect(function(plr)
table.remove(tab,plr)
end)
This doesn't work, could you tell me why?

1 comment
If you post the error and/or table after a player joins i might be able to tell you.