---
title: "SimpleDecompile V2 | Universal Roblox Script - ScriptBlox"
description: "SimpleDecompile V2 for any Roblox game: An amazingly improved version of SimpleDecompile! This script can: Read Functions, Scripts, Protos, Upvalues &..."
canonical_url: "https://scriptblox.com/script/Universal-Script-SimpleDecompile-V2-12641"
meta:
  "og:description": "SimpleDecompile V2 for any Roblox game: An amazingly improved version of SimpleDecompile! This script can: Read Functions, Scripts, Protos, Upvalues &..."
  "og:image": "https://scriptblox.com/images/script/1956239-1714294713390.webp"
  "og:title": "SimpleDecompile V2 | Universal Roblox Script - ScriptBlox"
  "twitter:description": "SimpleDecompile V2 for any Roblox game: An amazingly improved version of SimpleDecompile! This script can: Read Functions, Scripts, Protos, Upvalues &..."
  "twitter:image": "https://scriptblox.com/images/script/1956239-1714294713390.webp"
  "twitter:title": "SimpleDecompile V2 | Universal Roblox Script - ScriptBlox"
---

> Index of every page on this site: [llms.txt](https://scriptblox.com/llms.txt)

![Universal Script 📌](https://scriptblox.com/images/script/1956239-1714294713390.webp)

# ![Script Verified](https://scriptblox.com/_ipx/_/images/verified.webp)** SimpleDecompile V2**

[**Universal Script 📌**](https://scriptblox.com/game/universal)**![vxsty](https://scriptblox.com/images/photo/64cb81f82512701e9a163c00-1699804719964.gif) [vxsty](https://scriptblox.com/u/vxsty) ![Verified Badge](https://scriptblox.com/_ipx/_/images/verified.webp)OGLv 19 [Hall of Fame](https://scriptblox.com/trending?period=all&board=creators&metric=views)10M views**

3 years ago

[**Get an executor**](https://scriptblox.com/executors?kind=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

An amazingly improved version of SimpleDecompile! This script can: Read Functions, Scripts, Protos, Upvalues & Constants, Decompile scripts (Some functions may be named NO\_NAME\_FOUND, If you're a bit experienced with luau you might be able to understand what it says), Read tables, constants, instance paths, metamethods AND buffers much, much better, Better indentation, Works for mobile (CODEX, DELTA, NOT TESTED ON VEGAX), Will give unknown functions random names (NO\_NAME\_FOUND1960, NO\_NAME\_FOUND3591, proto19, proto10, proto86, ...) Reads upvalues with no problem. TODO: Add renv checks, Checks if a function has roblox libraries or functions in constants. v1.0.1: Added the renv check. USAGE: \`\`\`lua local decompile = loadstring(game:HttpGet("https://scriptblox.com/raw/Universal-Script-SimpleDecompile-V2-12641"))() local Path = -- your script path setclipboard(decompile(Path)) \`\`\`

## **Updates **

1. Mar 27, 2025

   ****Script edited:**** Update script
2. May 13, 2024

   ****Script edited:**** Update script
3. May 13, 2024

   ****Script edited:**** Update script
4. May 2, 2024

   ****Script edited:**** Update script
5. May 2, 2024

   ****Script edited:**** Update script

[View Raw](https://scriptblox.com/raw/Universal-Script-SimpleDecompile-V2-12641)

```
if not debug.getupvalues or not debug.getprotos or not debug.getconstants then
return nil
end
local Numbers = {}
local Properties = {}
local HttpService = game:GetService('HttpService');
function keyF(a)
return typeof(a) == 'number' and ('[%d] = '):format(a) or ('[\'%s\'] = '):format(tostring(a))
end
function keyE(a, b)
if typeof(b):lower() == 'instance' then
  return b.Name:gsub(' ', '_')
elseif typeof(b) == 'boolean' then return 'bool' .. tostring(a) elseif typeof(b) == 'string' then return 'str' .. tostring(a) elseif typeof(b) == 'number' then return 'num' .. tostring(a) elseif typeof(b) == 'table' then return 'tbl' .. tostring(a) else return typeof(b) .. tostring(a) end
end
function rnum(min, max)
local a;
repeat a = math.random(min, max) until not table.find(Numbers, a)
table.insert(Numbers, a)
return a
end
local _RENV = getrenv()
function inrenv(func)
 name = typeof(func) == 'string' and func or typeof(func) == 'function' and debug.getinfo(func).name
for i, v in _RENV do
  if typeof(v) == 'function' then
   if i == name then return true end
  end
end
return false
end
function buffermain(buff, indent, identifier)
 identifier = tostring(identifier)
local str = 'buffer.create(' .. tostring(buffer.len(buff)) .. ');'
for i = 1, buffer.len(buff) - 1 do
  local a = buffer.readi8(buff, i)
  if a ~= 0 then -- null (empty cell)
   local e = ''
   pcall(function()
    e = string.char(a)
   end)


```

## **Comments **

**17**

Log in to join the conversation. [**Login **](https://scriptblox.com/login?redirect=/script/Universal-Script-SimpleDecompile-V2-12641)

![SkireScripts's profile picture](https://scriptblox.com/images/photo/630d86359541ae5f4eaeb204-1742286952028.png)

[**SkireScripts**](https://scriptblox.com/u/SkireScripts)3 years ago(edited)

does it work good on functions and upvalues?

2

![vxsty's profile picture](https://scriptblox.com/images/photo/64cb81f82512701e9a163c00-1699804719964.gif)

[**vxsty**](https://scriptblox.com/u/vxsty)OG

OG

![Verified Badge](https://scriptblox.com/_ipx/_/images/verified.webp)

Lv 19 [Hall of Fame](https://scriptblox.com/trending?period=all&board=creators&metric=views)**Uploader**1 year ago

[@afernandoveiga](https://scriptblox.com/u/afernandoveiga) Are you trolling 💔

1

![afernandoveiga's profile picture](https://scriptblox.com/images/user-default.webp)

[**afernandoveiga**](https://scriptblox.com/u/afernandoveiga)1 year ago

[@vxsty](https://scriptblox.com/u/vxsty) can this decompile for and while loops?

1

![SMGN's profile picture](https://scriptblox.com/images/photo/67d89f4ca30623be5bda13e4-1742249954027.png)

[**SMGN**](https://scriptblox.com/u/SMGN)2 years ago(edited)

where does it belong to when its decompiled?

1

![behindhackeyes's profile picture](https://scriptblox.com/images/user-default.webp)

[**behindhackeyes**](https://scriptblox.com/u/behindhackeyes)2 years ago(edited)

when i execute with path it just returns path in a local script variable

1

![Partner's profile picture](https://scriptblox.com/images/photo/62198155e4291301fc87e228-1747309609782.png)

[**Partner**](https://scriptblox.com/u/Partner)Lv 132 years ago(edited)

hey man i didnt understand that well, will it decompile scripts so i can see on dark dex or decompile the script im executing?

1

![DenzTheCoolMan's profile picture](https://scriptblox.com/images/photo/668164d73d3049d879b53f34-1719756123570.jpg)

[**DenzTheCoolMan**](https://scriptblox.com/u/DenzTheCoolMan)2 years ago(edited)

Very useful and very good

1

```json
{"@context":"https://schema.org","@type":"SoftwareSourceCode","@id":"https://scriptblox.com/script/Universal-Script-SimpleDecompile-V2-12641#script","url":"https://scriptblox.com/script/Universal-Script-SimpleDecompile-V2-12641","name":"SimpleDecompile V2","programmingLanguage":"Lua","runtimePlatform":"Roblox","author":{"@type":"Person","name":"vxsty","url":"https://scriptblox.com/u/vxsty"},"datePublished":"2024-04-28T08:58:33.565Z","image":"https://scriptblox.com/images/script/1956239-1714294713390.webp","isAccessibleForFree":true}
```

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://scriptblox.com/#website","@type":"WebSite","description":"Search free Roblox scripts uploaded by the community, with live status for every major executor. Browse by game, copy the loadstring and run it in your executor.","inLanguage":"en","name":"ScriptBlox","url":"https://scriptblox.com/"},{"@id":"https://scriptblox.com/script/Universal-Script-SimpleDecompile-V2-12641#webpage","@type":"WebPage","description":"SimpleDecompile V2 for any Roblox game: An amazingly improved version of SimpleDecompile! This script can: Read Functions, Scripts, Protos, Upvalues &...","name":"SimpleDecompile V2 | Universal Roblox Script - ScriptBlox","url":"https://scriptblox.com/script/Universal-Script-SimpleDecompile-V2-12641","breadcrumb":{"@id":"https://scriptblox.com/script/Universal-Script-SimpleDecompile-V2-12641#breadcrumb"},"isPartOf":{"@id":"https://scriptblox.com/#website"},"mainEntity":{"@id":"https://scriptblox.com/script/Universal-Script-SimpleDecompile-V2-12641#script"},"potentialAction":[{"@type":"ReadAction","target":["https://scriptblox.com/script/Universal-Script-SimpleDecompile-V2-12641"]}]},{"@id":"https://scriptblox.com/script/Universal-Script-SimpleDecompile-V2-12641#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://scriptblox.com","position":1},{"@type":"ListItem","name":"Universal","item":"https://scriptblox.com/game/universal","position":2},{"@type":"ListItem","name":"SimpleDecompile V2","position":3}]}]}
```

## Sitemap

See the full [sitemap](https://scriptblox.com/sitemap.md) for all pages.
