Advertisement
ExploiterLOL

Untitled

Mar 3rd, 2021
978
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.27 KB | None | 0 0
  1.  
  2. local unpack = table.unpack or unpack
  3. local RS = game:GetService("RunService")
  4. repeat RS.RenderStepped:Wait() until game:IsLoaded()
  5.  
  6. local StarterGui = game:GetService("StarterGui")
  7. local function InvokeCore(...)
  8.     local Args = {...}
  9.     local ErrMsg;
  10.     local Err;
  11.  
  12.     repeat
  13.         Err, ErrMsg = pcall(function()
  14.             StarterGui:SetCore(unpack(Args)) -- wth i cant use varargs in a function
  15.         end)
  16.        
  17.         if not ErrMsg then ErrMsg = "" end
  18.         RS.RenderStepped:Wait()
  19.     until not string.match(ErrMsg, "has not been registered")
  20. end
  21.  
  22. local Players = game:GetService("Players")
  23. local Player = Players.LocalPlayer
  24.  
  25. local gethiddenprop = gethiddenproperty or get_hidden_property or gethiddenprop or get_hidden_prop
  26. local sethiddenprop = sethiddenproperty or set_hidden_property or sethiddenprop or set_hidden_prop
  27. local setsimrad = setsimulationradius or set_simulation_radius or function(Radius) sethiddenprop(Player, "SimulationRadius", math.huge) end
  28. local function ClaimOwnership()
  29.     sethiddenprop(Player, "MaximumSimulationRadius", math.huge)
  30.     setsimrad(math.huge)
  31. end
  32.  
  33. local function RevokeOwnership(Other)
  34.     sethiddenprop(Other, "MaximumSimulationRadius", 0.1)
  35.     sethiddenprop(Other, "SimulationRadius", 0.1)
  36. end
  37.  
  38. coroutine.wrap(function() -- New thread
  39.     if not isPrimaryOwner then
  40.         if gethiddenprop and (setsimrad or sethiddenprop) then
  41.             local UHaveOwnership = "[NetworkService]: Claimed ownership."
  42.             local ThereNoHoggers = "[NetworkService]: Great! No users are hogging the network."
  43.             local ThereArHoggers = "[NetworkService]: There are %s users hogging the network:\n%s."
  44.  
  45.             getgenv().isPrimaryOwner = true
  46.             settings().Physics.AllowSleep = false
  47.             settings().Physics.PhysicsEnvironmentalThrottle = Enum.EnviromentalPhysicsThrottle.Disabled
  48.            
  49.             -- Perform Network Scan
  50.             local Result = ""
  51.             local ContaminatedPlayers = 0
  52.             local Players = game:GetService("Players")
  53.             for _, _Player in pairs(Players:GetChildren()) do
  54.                 if _Player ~= Player then
  55.                     local TheirRadius = gethiddenprop(_Player, "SimulationRadius")
  56.                     if TheirRadius >= math.huge then
  57.                         ContaminatedPlayers = ContaminatedPlayers + 1
  58.                         Result = Result..Player.Name..", "
  59.                     end
  60.                 end
  61.             end
  62.  
  63.             if ContaminatedPlayers > 0 then
  64.                 Result = Result:sub(1, -3)
  65.             end
  66.  
  67.             InvokeCore("ChatMakeSystemMessage", {
  68.                 ["Text"] = (ContaminatedPlayers > 0) and string.format(ThereArHoggers, ContaminatedPlayers, Result) or ThereNoHoggers
  69.             })
  70.            
  71.             Player.ReplicationFocus = workspace
  72.             InvokeCore("ChatMakeSystemMessage", {
  73.                 ["Text"] = UHaveOwnership
  74.             })
  75.            
  76.             while RS.Stepped:Wait() do
  77.                 for _, Other in pairs(Players:GetChildren()) do
  78.                     if Other ~= Player then
  79.                         RevokeOwnership(Other)
  80.                     end
  81.                 end
  82.            
  83.                 ClaimOwnership()
  84.             end
  85.         else
  86.             InvokeCore("ChatMakeSystemMessage", {
  87.                 ["Text"] = "[NetworkService]: Exploit not supported."
  88.             })
  89.         end
  90.     end
  91. end)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement