Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

'<eof>' expected near 'end' What does that mean?

--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")

3 comments

0

please put the code in the code tags so i can see it better, and tell me what the error is

0

you forgot an enclosing end for a block.

0

if you're making questions, put code between `` marks.

2 answers

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.

2 comments

0

Lull

0

As some other people said, eof stands for end of file. It means the end of the script.

This discussion is preserved as it was. New answers, comments, and votes are closed.