Mr_3242

QuantumX Hub V2.0!

Jun 16th, 2026 (edited)
946
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.56 KB | Gaming | 0 0
  1. local success, Rayfield = pcall(function()
  2.     return loadstring(game:HttpGet("https://sirius.menu/rayfield"))()
  3. end)
  4.  
  5. if not success or not Rayfield then
  6.     warn("Rayfield failed to load")
  7.     return
  8. end
  9.  
  10. ---------------------------------------------------
  11. -- WINDOW
  12. ---------------------------------------------------
  13. local Window = Rayfield:CreateWindow({
  14.     Name = "QuantumX Hub",
  15.     LoadingTitle = "Loading scripts...",
  16.     LoadingSubtitle = "Follow me on TikTok Mr_3242",
  17.     ConfigurationSaving = { Enabled = false }
  18. })
  19.  
  20. ---------------------------------------------------
  21. -- CONFIG
  22. ---------------------------------------------------
  23. local PRIMARY_INDEX = "https://pastebin.com/raw/Vh6abGBP"
  24. local PROFILE_URL = "https://pastebin.com/u/Mr_3242"
  25.  
  26. ---------------------------------------------------
  27. -- NOTIFY
  28. ---------------------------------------------------
  29. local function Notify(t, c)
  30.     pcall(function()
  31.         Rayfield:Notify({
  32.             Title = tostring(t),
  33.             Content = tostring(c),
  34.             Duration = 3,
  35.             Image = 4483362458
  36.         })
  37.     end)
  38. end
  39.  
  40. ---------------------------------------------------
  41. -- BLACKLIST
  42. ---------------------------------------------------
  43. local blacklist = {
  44.     "tools","faq","login","sign up","public pastes", "contact", "Quiz bot script (the question about how to custom quiz here’s the answer this isn’t the script)","Fake loading progress", "⚠️this is not a script ⚠️ Daycare 💥 virus combinations", "QuantumX Script list",
  45.     "syntax languages","archive","news","pro","dmca",
  46.     "QuantumX Hub V2.0!","This isn’t a script its a Ui Library i made","How to use loadstring",
  47.     "rayfield made by sirius"
  48. }
  49.  
  50. local function isBlocked(name)
  51.     name = tostring(name or ""):lower()
  52.  
  53.     for i = 1, #blacklist do
  54.         local bad = tostring(blacklist[i] or ""):lower()
  55.         if bad ~= "" and name:find(bad, 1, true) then
  56.             return true
  57.         end
  58.     end
  59.  
  60.     return false
  61. end
  62.  
  63. ---------------------------------------------------
  64. -- CATEGORY SETUP
  65. ---------------------------------------------------
  66. local categoryOrder = {
  67.     "Admin",
  68.     "Hub",
  69.     "Exploits",
  70.     "Tools",
  71.     "Games",
  72.     "Misc"
  73. }
  74.  
  75. local categories = {}
  76. local tabs = {}
  77.  
  78. for _, name in ipairs(categoryOrder) do
  79.     categories[name] = {}
  80. end
  81.  
  82. ---------------------------------------------------
  83. -- HTTP
  84. ---------------------------------------------------
  85. local function httpGet(url, retries)
  86.     retries = retries or 2
  87.  
  88.     for i = 1, retries do
  89.         local ok, res = pcall(function()
  90.             return game:HttpGet(url)
  91.         end)
  92.  
  93.         if ok and type(res) == "string" and #res > 20 then
  94.             return res
  95.         end
  96.  
  97.         task.wait(0.15 * i)
  98.     end
  99.  
  100.     return nil
  101. end
  102.  
  103. ---------------------------------------------------
  104. -- CLEAN TEXT
  105. ---------------------------------------------------
  106. local function clean(text)
  107.     return (text or "")
  108.         :gsub("&", "&")
  109.         :gsub("<.->", "")
  110.         :gsub("%s+", " ")
  111.         :match("^%s*(.-)%s*$")
  112. end
  113.  
  114. ---------------------------------------------------
  115. -- CATEGORY DETECTION
  116. ---------------------------------------------------
  117. local function getCategory(name)
  118.     local n = name:lower()
  119.  
  120.     if n:find("admin") then
  121.         return "Admin"
  122.     elseif n:find("hub") then
  123.         return "Hub"
  124.     elseif n:find("fly") or n:find("esp") or n:find("teleport") then
  125.         return "Exploits"
  126.     elseif n:find("tool") or n:find("gui") then
  127.         return "Tools"
  128.     elseif n:find("game") or n:find("obby") or n:find("simulator") then
  129.         return "Games"
  130.     end
  131.  
  132.     return "Misc"
  133. end
  134.  
  135. ---------------------------------------------------
  136. -- STORAGE
  137. ---------------------------------------------------
  138. local seen = {}
  139.  
  140. local function addScript(name, url)
  141.     if isBlocked(name) then return end
  142.     if seen[url] then return end
  143.  
  144.     seen[url] = true
  145.  
  146.     local cat = getCategory(name)
  147.     table.insert(categories[cat], {
  148.         name = name,
  149.         url = url
  150.     })
  151. end
  152.  
  153. ---------------------------------------------------
  154. -- PARSERS
  155. ---------------------------------------------------
  156. local function parsePrimary(data)
  157.     for line in data:gmatch("[^\r\n]+") do
  158.         local name, url = line:match("^(.-)%s*=%s*(https://pastebin%.com/raw/%w+)")
  159.         if name and url then
  160.             addScript(clean(name), url)
  161.         end
  162.     end
  163. end
  164.  
  165. local function parseProfile(html)
  166.     for id, name in html:gmatch('href="/(%w+)"[^>]*>([^<]+)</a>') do
  167.         local url = "https://pastebin.com/raw/" .. id
  168.         addScript(clean(name), url)
  169.     end
  170. end
  171.  
  172. ---------------------------------------------------
  173. -- RUN SCRIPT
  174. ---------------------------------------------------
  175. local function runScript(url)
  176.     local content = httpGet(url, 3)
  177.  
  178.     if not content or content:lower():find("<html") then
  179.         Notify("Error", "Failed to load script")
  180.         return
  181.     end
  182.  
  183.     pcall(function()
  184.         Rayfield:Destroy()
  185.     end)
  186.  
  187.     task.wait(0.1)
  188.  
  189.     local ok, err = pcall(function()
  190.         loadstring(content)()
  191.     end)
  192.  
  193.     if not ok then
  194.         Notify("Execution Error", err or "Unknown error")
  195.     end
  196. end
  197.  
  198. ---------------------------------------------------
  199. -- BUILD UI
  200. ---------------------------------------------------
  201. local function buildUI()
  202.     for _, catName in ipairs(categoryOrder) do
  203.         local list = categories[catName]
  204.  
  205.         if #list > 0 then
  206.             local tab = Window:CreateTab(catName, 4483362458)
  207.             tabs[catName] = tab
  208.  
  209.             for _, script in ipairs(list) do
  210.                 tab:CreateButton({
  211.                     Name = script.name,
  212.                     Callback = function()
  213.                         runScript(script.url)
  214.                     end
  215.                 })
  216.             end
  217.         end
  218.     end
  219. end
  220.  
  221. ---------------------------------------------------
  222. -- LOAD EVERYTHING
  223. ---------------------------------------------------
  224. task.spawn(function()
  225.     local primary = httpGet(PRIMARY_INDEX, 2)
  226.     if primary then parsePrimary(primary) end
  227.  
  228.     local profile = httpGet(PROFILE_URL, 2)
  229.     if profile then parseProfile(profile) end
  230.  
  231.     buildUI()
  232.  
  233.     ---------------------------------------------------
  234.     -- STATIC TABS
  235.    ---------------------------------------------------
  236.     local CreditsTab = Window:CreateTab("Credits", 4483362458)
  237.  
  238.     CreditsTab:CreateParagraph({
  239.         Title = "Credits",
  240.         Content = "QuantumX Hub created by Mr_3242\nThanks for using the hub!"
  241.     })
  242.  
  243.     local function copy(txt)
  244.         if typeof(setclipboard) == "function" then
  245.             pcall(function()
  246.                 setclipboard(txt)
  247.             end)
  248.         end
  249.     end
  250.  
  251.     CreditsTab:CreateButton({
  252.         Name = "Copy TikTok",
  253.         Callback = function() copy("https://www.tiktok.com/@Mr_3242") end
  254.     })
  255.  
  256.     CreditsTab:CreateButton({
  257.         Name = "Copy YouTube",
  258.         Callback = function() copy("https://www.youtube.com/@Mr_3242.") end
  259.     })
  260.  
  261.     CreditsTab:CreateButton({
  262.         Name = "Copy Twitch",
  263.         Callback = function() copy("https://m.twitch.tv/quantumx_42/home") end
  264.     })
  265.  
  266. ---------------------------------------------------
  267. -- UNLOAD
  268. ---------------------------------------------------
  269.     local UnloadTab = Window:CreateTab("Unload", 4483362458)
  270.     UnloadTab:CreateButton({
  271.         Name = "Unload Script",
  272.         Callback = function()
  273.             pcall(function()
  274.                 Rayfield:Destroy()
  275.             end)
  276.         end
  277.     })
  278. end)
Tags: delta
Advertisement
Add Comment
Please, Sign In to add comment