Hi. I have a question about our lua script editor. I have several pretty long scripts and I’d like to split them into collapsible sections. Is there a way to do that?
Thanks
Hi. I have a question about our lua script editor. I have several pretty long scripts and I’d like to split them into collapsible sections. Is there a way to do that?
Thanks
do
-- my super long script
local i_only_exist_in_this_block = true
end
However, variables inside the do
will not exist after then end
You should be able to see these icons along the script’s line numbers, they are used to collapse/expand chunks of code.
Your solution works very well. My entire script is a module script so all the variables are stored in the main return anyways. Thank you.