Universal Script 📌
1.3k Views
337 Executions

Script Decompiler

Universal Script 📌
Ximmy1234
Ximmy123410K executions
7 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Decompiles all scripts in the game, saves them to executors workspace as .lua.

View Raw
local scanDelay = 0.05
local decompileTimeout = 1

local HttpService = game:GetService("HttpService")
local Players = game:GetService("Players")

local gameName = "UnknownGame"
pcall(function()
	gameName = game:GetService("MarketplaceService"):GetProductInfoAsync(game.PlaceId).Name
end)

local function sanitize(name)
	return string.gsub(tostring(name), '[<>:"/\\|?*%c]', "_"):sub(1, 50)
end

local FOLDER_NAME = "decompile_" .. sanitize(gameName) .. "_" .. tostring(game.PlaceId) .. "_" .. HttpService:GenerateGUID(false):sub(1, 6)
local BRAND = "Ximmy's Sexy Script Decompiler"

local hasDecompiler = false
pcall(function()
	if decompile then
		local t = Instance.new("LocalScript")
		t.Parent = game:GetService("ReplicatedStorage")
		local ok, r = pcall(decompile, t)
		t:Destroy()
		hasDecompiler = ok and r ~= nil
	end
end)

local getgenv = getgenv or function() return _G end
local env = getgenv()

local function makeGui()
	local gui = Instance.new("ScreenGui")
	gui.ResetOnSpawn = false
	gui.DisplayOrder = 2e9
	local ok = false
	pcall(function()
		local f = env.gethui or function() return game:GetService("CoreGui") end
		gui.Parent = f()


Comments

1
Log in to join the conversation. Login
katze7500's profile picture
katze75007 months ago

could you make it save it as a single txt file

1

More universal scripts

See all