Roblox Script Not Auto Indenting?

When ever I create a new line when i’m scripting, it doesn’t automatically indent and it’s driving me crazy and it wastes alot of time. Does anyone know how to fix it?

(Also side note, as you can see in the video when I did the playeradded function how I had to delete the bracket, thats also driving me nuts and I was wondering if there was a fix for that if you know what I’m talking about)

1 Like

This annoys me too, haha, I think the only option would be to tweak your script editing settings.

I agree that an auto-indent feature would be really nice. It can be quite repetitive to have to press the shift button each time, and makes scripting easier to refactor and change things around. Honestly, don’t know if there is an actual feature that auto indents, but you can achieve it by use of plugins.

Is a there a setting for auto indenting ? where abouts?

Settings > Studio, scroll down to Script Editor and set the Auto-Indent to ‘Absolute’

4 Likes

Oh. It happened just as I found it. Thank you :joy: :smile:

No problem, lol.

(30 characters)

For that you could’ve just hit return or the Enter key right before the final bracket after the brackets in function().

Other than that, try running this in the command bar

settings().Studio["Auto Indent"] = true
3 Likes

Thank you your a life saver! :+1::+1:

Thank you so much I really appreciate it