What does this error mean, also thank you if you responded. It may seem so simple to some of you, but I just got into scripting, so yeah.
"Expected <eof>, got [somthing or other]" means that you probably have an extra "end" somewhere in your code, which is ending the function before you probably want it to.
function lol() if true == false then print("This is impossible :P") end --1 end --2 print("If you see this, I'm fixed!") end --3
In this example, the function lol() ends at "end" number 2, instead of "end" number 3 like we want it to. The problem is "end" number 1, which might of been left over from some previous code. To fix the error, go through your code and make sure each of your if, for, while, etc... statements has only 1 matching "end" statement. Keeping code correctly indented really helps with this.
Do this:
function lol() if true == true then print("Always true") for i = 1, 10 do print(i) end elseif true == false then print("IMPOSSIBLE!") end end
Not this:
function lol() if true == true then print("Always true") for i = 1, 10 do print(i) end elseif true == false then print("IMPOSSIBLE!") end end
Good code organization habits will really pay off in the long run, when you have hundreds of lines all blending together. Good luck!
If I've solved your problem, be sure to mark my answer correct :)