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

expected <eof> got end?

I tried making a timer script...

if timertime == timerdefault then
	repeat timertime = timertime - 1
	text = timertime
	wait(1)	
	until
	timertime == 0 and text == 0
elseif mappicked == true then
	repeat timertime = timertime - 1
	text = timertime
	wait(1)	
	until
	timertime == 0 and text == 0
	end
end

and the last end says expected , got 'end' Help please?

2 answers

✓ Accepted answer

Your second repeat had an end on it

if timertime == timerdefault then
    repeat timertime = timertime - 1
    text = timertime
    wait(1) 
    until
    timertime == 0 and text == 0
elseif mappicked == true then
    repeat timertime = timertime - 1
    text = timertime
    wait(1) 
    until
    timertime == 0 and text == 0
end

1 comment

0

Grrr you win this one, I was just about to post D:<

You have an extra end on line 13. Until is the end for a repeat loop, you do not need another one.

if timertime == timerdefault then
    repeat timertime = timertime - 1
    text = timertime
    wait(1) 
    until
    timertime == 0 and text == 0
elseif mappicked == true then
    repeat timertime = timertime - 1
    text = timertime
    wait(1) 
    until
    timertime == 0 and text == 0
end


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