Using end confuses me as I don't understand when to put the bracket at the end of the script and it always gives me errors saying unexpected symbol near ')'
--end closes "if" blocks
if (something) then
end
--end closes "if-else" blocks
if (something2) then
else
end
--end closes function blocks
local function test()
print("henlo stinky")
end
--end closes for-loops
for val in pairs(sometable) do
end
Just make sure you're matching every "block" you start with exactly one "end"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.