when i use this script it will not add the player to the table

wait()
local Players = game:GetService("Players")
Ingame = {}
Outgame = {}
Players = game:GetService("Players")




function added(player3)
	
	table.insert(Ingame, player3)
	
	print(player3.Parent)
end
Players.PlayerAdded:Connect(added)

Also how do i remove something from a table??

2 comments

0

I found a fix.

0

It's quite obvious, you cannot use numbers in a variable