Messy Script-------

Is there any Plugins that arrange your script? Please let me know if yes.
Thanks for passing by :wink:

The best way to do this is to arrange your script manually and make it be organised as you script. This will be a good habbit and will make it easy for others to help you way faster if you need any help with your scripts. I do not know of any plugins that can doo this even if they were plugins it could even mess your script more as it would not know how you would want your script to be arranged.

3 Likes

i.e., there arenā€™t currently any formatting plugins that I know of on Roblox. And if I made one, I would sell it for Robux because you would have to run through the entire source and format everything.

There arenā€™t any plugins as of now but you can always use a Lua script beautifier.
Here are some that I use:
Online Beautifer
Rerubiā€™s Beautifier & Minifier

3 Likes

You can use https://www.roblox.com/library/197760456/Stravant-Minify-Beautify to fix your indenting but thatā€™s all.

1 Like

The only plugin that I know of that is sort of similar to what you are asking is the Stravant - Minify&Beautify plugin. With the ā€œBeautifyā€ tab in this plugin it formats and indents your code when you click the button. With that said though I wouldnā€™t recommend only using plugins to indent and format your code as they could do some unexpected changes to your script.

Roblox studio has some studio settings that help you format your code and one of them is an auto indent setting. To find these settings go to File > Settingsā€¦ > Studio and then scroll down until you see the ā€œScript Editorā€ tab:

It is generally a good idea to learn how to format your code by hand instead of relying on plugins and features to do it all for you. There a loads of articles lying around about formatting and some specific to Roblox: Roblox Lua Style guide. Some things explained in this article are very hard to do with plugins.

3 Likes