--I have been having much trouble trying to figure out what's wrong --Here is some of my code
for i = GameLength,0,-1 do
for x, player in pairs(plrs) do
if player then
character = player.Character
if not character then
else
if character:FindFirstChild("GameTag") then
print(player.Name.."is still in the game")
else
table.remove(plrs,x)
print(player.Name.." has died")
end
end
else
table.remove(plrs,x)
print(player.Name.." has died")
end
end
wait(1)
end
Status.Value = "there are "..i.." seconds remaining, and"..#plrs.."players left"
if #plrs == 1 then
Status.Value = "the winner is "..plrs[1].Name
plrs[1].leaderstats.bucks.Value = plrs[1].leaderstats.bucks.Value + reward
break
elseif #plrs == 0 then
Status.Valuue = "you all died lol"
elseif i == 0 then
Status.Value = "times up haha"
break
end
wait(1)
end
wait(1)
end
print("game has ended")
Some of the End's don't have a end) it needs it so It knows what it has to do.
EOF = End of File I think you might have added an extra end. Try removing the last end at the EOF and tell me if it works or not. If it does work, please mark this question as "Solved" to let other people know this question has been solved.
Thanks,
OldBo5.