I don't know why I cant do
table.remove(PlayerTable,Player)
/code/
local PlayerTable = {}
while true do
for i,v in pairs(PlayerTable)do
print(v)
local Player = game.Players[v.Name]
local Character = Player.Character.Humanoid
Character.Touched:Connect(function(hit)
if hit.Name == "Lava"then
table.remove(PlayerTable,Player)
print(Player,"Has Died in Lava")
end
end)
end
wait(.5)
end

4 comments
is there an error?
bad argument #2 to 'remove' (number expected, got Object)
If you set it up as a dictionary you can directly index the player. table["greatneil80"] = nil, orrrrr you can directly index it as a string.
How?