So I just made this as an example, but the concept is the same.
How would I break this while loop without an error??
while true do
if 2 > 1 then --Always True
break
end
wait(1)
end
This concept is in my game script. The output says "end" expected near "if" at line [LINENUMBER], [LINENUMBER] being the line number of my if statement.
The problem is, there ARE enough ends. There are 2 ends; 1 for the if statement, 1 for the while loop. I will have to remake my entire game script if I can't find out a way. In the game script, the if statement is actually needed, and the break HAS to be inside of the if statement.

2 comments
Here is the script. The breaks are at line 220.
http://pastebin.com/yuwgGWya