--[[
Simple Deobfuscator for Lua Scripts with ASCII-encoded characters
This script decodes escaped ASCII sequences like "\083\099\114\105\112\116" back into readable strings.
--]]
-- Sample obfuscated script
local obfuscated_script = [[
if not game:IsLoaded() then
(game:GetService("\083\116\097\114\116\101\114\071\117\105")):SetCore(
"\083\101\110\100\078\111\116\105\102\105\099\097\116\105\111\110",
{Title="\083\099\114\105\112\116 \108\111\097\100\105\110\103"; Text="\087\097\105\116\105\110\103 \102\111\114 \116\104\101 \103\097\109\101 \116\111 \102\105\110\105\115\104 \108\111\097\100\105\110\103\033"; Duration=5}
)
game.Loaded:Wait()
end
local U = "End of script"
]]
-- Function to decode ASCII-encoded characters (e.g., "\083" -> "S")
local function decodeASCII(encoded_script)
-- Replace sequences of \ followed by 3-digit numbers with corresponding characters
local decoded_script = encoded_script:gsub("\\(%d%d%d)", function(code)
return string.char(tonumber(code))
end)
return decoded_script
end
-- Deobfuscate and print the result
local deobfuscated_script = decodeASCII(obfuscated_script)
print(deobfuscated_script)