I really want to make this script work but it keeps on saying on Line 5164 <eof> expected near else if can someone please help Link: https://pastebin.com/q1ptSngX
This error means that you're missing an end somewhere before the elseif, OR you have too many ends (which is probably the case).
I just looked at your script, and that is what happened. You added the "end" for the if statement that the elseif is referring to, before the if statement completed.
Example to reproduce the error:
for i=1,10 do if i>5 then print("Index is more than 5") end -- End is not needed, get rid of it. elseif i==6 then print("Index is 6") end end
If you were programming in basically any other language except for lua before this, this is actually a pretty common mistake, since most languages refer the "elses" after the if has ended.
Closed as Too Broad by User#24403
This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.
Why was this question closed?