Simple Module Script Decompiler
Key RequiredUniversal

Simple Module Script Decompiler

Universal Scriptberiberiberiberi 25K views 95 executesUpdated Jan 14, 2024
5.0/ 5(5 votes)
50100% Positive
Lua Script•101 lines (2476 chars)
local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()

_G.Debug = false

if not _G.Debug then
    _G.Window = OrionLib:MakeWindow({Name = "Beat your meat", HidePremium = false, SaveConfig = true, ConfigFolder = "OrionTest"})
elseif _G.Debug then
	_G.Window = OrionLib:MakeWindow({Name = "DebugMode", HidePremium = false, SaveConfig = true, ConfigFolder = "OrionTest"})
end

local Tab = _G.Window:MakeTab({
	Name = "Tab 1",
	Icon = "rbxassetid://4483345998",
	PremiumOnly = false
})

function SimpleDecompile(module)
    local Module = require(module)
    local DecompiledModule = ""

    local function processTable(tab, indent)
        for key, value in pairs(tab) do
            if typeof(value) == "table" then
                DecompiledModule = DecompiledModule .. ("\t"):rep(indent) .. key .. " = {\n"
                processTable(value, indent + 1)
                DecompiledModule = DecompiledModule .. ("\t"):rep(indent) .. "}\n"
            elseif typeof(value) == "function" then
                DecompiledModule = DecompiledModule .. ("\t"):rep(indent) .. key .. " = function()\n\t\t-- function body\n\tend,\n"
            else
                DecompiledModule = DecompiledModule .. ("\t"):rep(indent) .. key .. " = " .. tostring(value) .. ",\n"
            end
        end
    end

    processTable(Module, 0)
    
    return DecompiledModule
end


local CopyDecompiled = false

Tab:AddTextbox({
	Name = "Enter Script Path",
	TextDisappearing = true,
	Callback = function(v)
		local a = (v)
		local b = SimpleDecompile(a)
		print(b)
		if CopyDecompiled then
			setclipboard(b)
		end
	end
})

local Tab2 = _G.Window:MakeTab({
	Name = "Script Locations",
	Icon = "rbxassetid://4483345998",
	PremiumOnly = false
})


Tab2:AddToggle({
	Name = "Copy decompiled script",
	Default = false,
	Callback = function(v)
		CopyDecompiled = v
	end
})

local function Label(text, text2)
	Tab2:AddButton({
		Name = text,
		Callback = function()
			local a = text2
			local b = SimpleDecompile(a)
			print(b)
			if CopyDecompiled then
				setclipboard(b)
			end
		end
	})
end

for i,v in pairs(game.ReplicatedStorage:GetDescendants()) do
	if v:IsA"ModuleScript" then
		Label(v.Name, v)
	end
end

for i,v in pairs(game.ReplicatedFirst:GetDescendants()) do
	if v:IsA"ModuleScript" then
		Label(v.Name, v)
	end
end

for i,v in pairs(game.Workspace:GetDescendants()) do
	if v:IsA"ModuleScript" then
	    Label(v.Name, v)
	end
end

Features & Information

Didn't make the original , found this on scrptblox and after a while of research made it so that it can decompile full tables and functions, may have some errors

Community Comments (14)

beriberiberiberiJan 14, 2024(edited)

@REDz ???

roblox_gamingroblox_gamingJan 14, 2024(edited)

can you do a script Decompiler

lookpass12lookpass12Jan 15, 2024(edited)

How to use?

beriberiberiberiJan 15, 2024(edited)

@roblox_gaming step 1: stop skidding and make your own decompiler

beriberiberiberiJan 15, 2024(edited)

@lookpass12 Usage: local a = (script location) local b = SimpleDecompile(a) print(b)

roblox_gamingroblox_gamingJan 15, 2024(edited)

@nixelpixel ??? how im i skidding broo :/

roblox_gamingroblox_gamingJan 15, 2024(edited)

@nixelpixel i was justing asking you to help me with your codes so you can make a script decomplier :/

beriberiberiberiJan 15, 2024(edited)

@roblox_gaming you're editing my code and trying to make a script decompiler, you can't even decompile a regular script

beriberiberiberiJan 16, 2024(edited)

@Guelgamesbr It has to be a module script but yes

GuelgamesbrGuelgamesbrJan 16, 2024(edited)

oh ok (I'm dumb enough to know what are module scripts so i will continue to epic hack games with rspy)

LitSobiLitSobiJan 23, 2024(edited)

W script

Mr_PoopyPantsMr_PoopyPantsMar 11, 2024(edited)

I can't copy some modules?!

beriberiberiberiMar 16, 2024(edited)

@F_hub99 while i would fix the issue, i'm on a break from releasing scripts as a whole right now

kelvinlopes8000kelvinlopes8000Jul 10, 2024(edited)

What do i put in path? Sorry, i'm beginner and noob at this.

More Scripts for Universal Scripts