This code is just my first game and I am following a tutorial on yt. I have already worked hours on it and even more just doing research and doing everything I can to fix the code. Anyway i get this error message with the following code and really need help to fix it because i will probably give up:
for i = GameLength,0,-1 do
for x, player in pairs(plrs) do
if player then
character = player.Character
-- Left the game
else
if character:FindFirstChild("GameTag") then
-- They are still alive
print(player.Name.."is still in the game!")
else
-- They are dead
table.remove(plrs,x)
end
end
else <------- THE ERROR IS RIGHT HERE AND SAYS "Error: (111,3) Syntax error: Expected 'end' (to close 'do' at line 93), got 'else''.
table.remove(plrs,x)
print(player.Name.."has been removed!")
end
wait(1)
end
end

2 comments
THANK YOU SO MUCH BROOOOOO!!!!!
If it solved your problem, you should accept the answer. It gives us both reputation.