How to follow proper indentation?
this looks proper to me
if i had to nitpick, i’d say try not to “nest” like you did in the first image
for example:
-- this is an example of nesting
if (something) then
-- some code
if (another check here) then
-- more code
end
-- again, no code here
end
-- no code here
can be turned to this:
if not (something) then return end
-- some code
if not (another check here) then return end
-- more code
-- idk abt you, but this looks better + i don't have to worry as much about code being offscreen
EDIT: i’m seeing a few errors with indentation nvm
for those, you can right click on the script editor, expand on “Format” then click “Format Document”
this gif presses “Format Selection”, but you can click on “Format Document” instead to give the entire script proper indentation
1 Like
Thanks, dude. Lotta help that was
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.