Run it
Copy the script and paste it into your executor.
local function FormatScript(Script)
local Formatted = ""
local IndentLevel = 0
local IndentSize = 4
local InComment = false
for Line in Script:gmatch("([^\r\n]+)") do
local TrimmedLine = Line:gsub("^%s*(.-)%s*$", "%1")
if TrimmedLine:find("^%-%-") then
Formatted = Formatted .. string.rep(" ", IndentLevel * IndentSize) .. TrimmedLine .. "\n"
elseif TrimmedLine:find("end") then
IndentLevel = IndentLevel - 1
Formatted = Formatted .. string.rep(" ", IndentLevel * IndentSize) .. TrimmedLine .. "\n"
elseif TrimmedLine:find() TrimmedLine:() TrimmedLine:()
Formatted = Formatted .. .(, IndentLevel * IndentSize) .. TrimmedLine ..
IndentLevel = IndentLevel +
Formatted = Formatted .. .(, IndentLevel * IndentSize) .. TrimmedLine ..
Formatted
Script =
((Script))Open Source Format Lua Script:D It Will More Effectively In glot.io DO NOT USE IT IN ROBLOX APP BECAUSE you just waste your time for can't see printed script cuz it in dev console BTW I Will Upload My Mobile Console Gui(It Obfuscated Btw)

Universal