How would I be able to use this code to put the players name in the table and remove it when they leave
local Players = game:GetService("Players")
local Playerstable = {}
Players.PlayerAdded:Connect(function(player)
-- put player into the players table
end)
Players.PlayerRemoving:Connect(function(player)
-- remove player from the players table
end)
Any visualizations on what the table would look like once player has been added would be nice, thanks.