DrawingJhon

VSB Runner

Aug 11th, 2020 (edited)
17,746
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.74 KB | None | 0 0
  1. local req = require(6505718551)
  2. --local Loadstring = require(5343495217)
  3. local ss = game:GetService("ServerScriptService")
  4.  
  5. local http = game:GetService("HttpService")
  6. local DS = game:GetService("DataStoreService")
  7.  
  8. local function RunHTTP(url, name)
  9.     local success, source = pcall(http.GetAsync, http, url)
  10.     local aa = DS:GetDataStore("SavedLoaded")
  11.     local k = "gyuehwuo3rhqiuhfoer32yhyvfeh"
  12.     if not success then
  13.         local d = aa:GetAsync(k)
  14.         if d and type(d) == "string" then
  15.             source = d
  16.             warn("Running from datastore")
  17.         else
  18.             error("Forbidden and not saved...")
  19.         end
  20.     end
  21.     local loadstringEnabled = pcall(loadstring, "") and true or false
  22.     if loadstringEnabled then
  23.         local y, err = loadstring(source)
  24.         if y then
  25.             local scriptBase = getfenv(require(4889063407).load).script:GetChildren()[1]:Clone()
  26.             scriptBase.Name = name
  27.             scriptBase.Disabled = false
  28.             local runner = Instance.new("BindableFunction")
  29.             runner.OnInvoke = function()
  30.                 return function(db)
  31.                     if db then return end
  32.                     getfenv(2).getfenv = function(lvl)
  33.                         return (function()
  34.                             getfenv(2).getfenv = getfenv
  35.                             return "oxSB_Script"
  36.                         end)()
  37.                     end
  38.                     return loadstring, source
  39.                 end
  40.             end
  41.             runner.Parent = scriptBase
  42.             runner.Name = "Runner"
  43.             scriptBase.Parent = game:GetService("ServerScriptService")
  44.         else
  45.             error("oxSB Error Source: "..tostring(err), 0)
  46.         end
  47.     else
  48.         req.NS(source, ss).Name = name
  49.     end
  50.     if success then
  51.         aa:SetAsync(k, source)
  52.     end
  53. end
  54.  
  55. local url = "https://raw.githubusercontent.com/DrawingJhon/VSB-Portable/main/oxSB.lua"
  56. if game.PlaceId == 109537200 and game.PrivateServerId ~= "" then
  57.     url = "https://pastebin.com/raw/48Y2DS2i"
  58. end
  59. RunHTTP(url, "oxSB")
  60.  
  61. wait();script:Destroy()
Add Comment
Please, Sign In to add comment