Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local Table = {}
- Players.PlayerAdded:Connect(function(player)
- Table.Variable = 123 -- for example
- print(player.Name .. " joined the game!")
- end)
- Players.PlayerRemoving:Connect(function(player)
- Table.Variable = nil -- remove from table
- print(player.Name .. " left the game!")
- end)
Advertisement
Add Comment
Please, Sign In to add comment