while true do
wait()
repeat wait() until workspace.Values.Classic.Value == true
for i,z in pairs (_G.Playing) do
if z.Character.Humanoid then
z.Character.Humanoid.Died:connect(function() -- identifying if the character dies
for i,v in pairs (_G.Players) do -----------------------errors right here..
if v.Name == z.Name then -- making sure that this player died is a member of table
print(z.Character.Name..' has died')
table.remove(_G.Playing, i) -- removes from table
print(i,z)
break
end
end
end)
else
return error('No player found in the table _G.Playing!')
end
end
end
I basically explained it in the table but this script is SUPPOSE to wait until a character died from the table _G.Playing then removes it so that another script can verify id the table only has 1 player, and yes i inserted the player into the table not the player's name..

1 comment
If its nil it means _G.Players doesn't exist. Are you sure you have set it's value within the script's parent?