I have been trying to remove the player from the table when the player dies it actually does work BUT it removes the other players from the table either.
Code:
game:GetService('Players').PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
character:WaitForChild("Humanoid").Died:Connect(function(playerdied)
print(player.Name .. " has died!")
for i, player in pairs (game.Players:GetPlayers()) do
warn(player, 'has Been Removed From Table - Intro Or AFK.')
for i = 1, #queue1 do
if queue1[1] == player then
table.remove(queue1,i)
end
end
end
end)
end)
end)

2 comments
line 8 replace queue1[1] with queue1[i]
Did not work it still removes the other player from the table