Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by
JMC0077 -4
5 years ago
Edited 5 years ago

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

0
please put the code in the code tags so i can see it better, and tell me what the error is User#21527 0 — 5y
0
you forgot an enclosing `end` for a block. EpicMetatableMoment 1444 — 5y
0
if you're making questions, put code between `` marks. diamindhunter82 0 — 5y

2 answers

Log in to vote
0
Answered by 5 years ago

Some of the End's don't have a end) it needs it so It knows what it has to do.

Ad
Log in to vote
0
Answered by
OldBo5 30
5 years ago

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.

0
Lull AizakkuZ 226 — 5y
0
As some other people said, eof stands for end of file. It means the end of the script. ScriptsALot 91 — 5y

Answer this question