EditorTabWidth (Property)

EditorTabWidth
Property Integer TabWidth
Description How many spaces a tab takes up in the Roblox script editor.
Member of Authoring


Example
If using the Command Bar or a CoreScript...
settings().Authoring.EditorTabWidth = 5
If using a Script or LocalScript...
settings().Authoring.EditorTabWidth = 5 --> Unknown exception

Note: This can also be changed in settings.