The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Hero Simulator GUI script pastebin roblox
By LINK GAME on 2024-09-21 08:00 am | Syntax: LUA | Views: 12



New Script | Raw | Show/Hide line no. | Copy text to clipboard
  1. pcall(function()
  2. local library = loadstring(game:HttpGet(('https://pastebin.com/raw/FsJak6AT')))()
  3. local w = library:CreateWindow("Hero Simulator")
  4. local b = w:CreateFolder("AutoFarm")
  5. local f = w:CreateFolder("AutoBuy")
  6. local e = w:CreateFolder("Mix")
  7. local u = w:CreateFolder("Credits")
  8.  
  9. b:Toggle("AutoKillMobs",function(bool)
  10.     shared.toggle = bool
  11.     AutoKillMobs = bool
  12. end)
  13.  
  14. b:Toggle("AutoAttack",function(bool)
  15.     shared.toggle = bool
  16.     AutoAttack = bool
  17. end)
  18.  
  19. f:Toggle("AutoPower",function(bool)
  20.     shared.toggle = bool
  21.     AutoPower = bool
  22. end)
  23.  
  24. e:Toggle("AntiAfk",function(boosl)
  25.     shared.toggle = bool
  26.     AntiAfk = bool
  27. end)
  28.  
  29. e:Button("Fps Boost",function()
  30.     local decalsyeeted = true
  31.     local g = game
  32.     local w = g.Workspace
  33.     local l = g.Lighting
  34.     local t = w.Terrain
  35.     t.WaterWaveSize = 0
  36.     t.WaterWaveSpeed = 0
  37.     t.WaterReflectance = 0
  38.     t.WaterTransparency = 0
  39.     l.GlobalShadows = false
  40.     l.FogEnd = 9e9
  41.     l.Brightness = 0
  42.     settings().Rendering.QualityLevel = "Level01"
  43.     for i, v in pairs(g:GetDescendants()) do
  44.         if v:IsA("Part") or v:IsA("Union") or v:IsA("CornerWedgePart") or v:IsA("TrussPart") then
  45.             v.Material = "Plastic"
  46.             v.Reflectance = 0
  47.         elseif v:IsA("Decal") or v:IsA("Texture") and decalsyeeted then
  48.             v.Transparency = 1
  49.         elseif v:IsA("ParticleEmitter") or v:IsA("Trail") then
  50.             v.Lifetime = NumberRange.new(0)
  51.         elseif v:IsA("Explosion") then
  52.             v.BlastPressure = 1
  53.             v.BlastRadius = 1
  54.         elseif v:IsA("Fire") or v:IsA("SpotLight") or v:IsA("Smoke") or v:IsA("Sparkles") then
  55.             v.Enabled = false
  56.         elseif v:IsA("MeshPart") then
  57.             v.Material = "Plastic"
  58.             v.Reflectance = 0
  59.             v.TextureID = 10385902758728957
  60.         end
  61.     end
  62.     for i, e in pairs(l:GetChildren()) do
  63.         if e:IsA("BlurEffect") or e:IsA("SunRaysEffect") or e:IsA("ColorCorrectionEffect") or e:IsA("BloomEffect") or e:IsA("DepthOfFieldEffect") then
  64.             e.Enabled = false
  65.         end
  66.     end
  67. end)
  68.  
  69. --Credits
  70. u:Button("maxgat5#8395",function()
  71.     setclipboard("maxgat5#8395")
  72. end)
  73.  
  74. u:Button("Discord Server",function()
  75.     setclipboard("https://discord.gg/K4txdRSVfq")
  76. end)
  77.  
  78. u:Button("MaGiXx#2325",function()
  79.     setclipboard("MaGiXx#2325")
  80. end)
  81.  
  82. u:Button("Discord Server",function()
  83.     setclipboard("https://discord.gg/K2SA5BUQnq")
  84. end)
  85.  
  86. u:Button("awdas#8777",function()
  87.     setclipboard("awdas#8777")
  88. end)
  89.  
  90. while wait() do
  91.     if AutoKillMobs == true then
  92.         game.workspace.Gravity = 0
  93.         hrp = game.Players.LocalPlayer.Character.PrimaryPart
  94.         for i,v in pairs(workspace.NPCs:GetChildren()) do
  95.             if AutoKillMobs == true then
  96.                 if v:FindFirstChild('Head') and v:FindFirstChild('HumanoidRootPart') then
  97.                     oldtime = tick()
  98.                     repeat
  99.                         hrp.CFrame = v:FindFirstChild('HumanoidRootPart').CFrame *CFrame.new(0,9,11)
  100.                         game:GetService("RunService").RenderStepped:wait()
  101.                         local args = {
  102.                             [1] = "attack0Hit",
  103.                             [2] = v,
  104.                             [3] = CFrame.new(v:FindFirstChild('HumanoidRootPart').Position, Vector3.new(-1, -1, -1)),
  105.                             [4] = CFrame.new(v:FindFirstChild('HumanoidRootPart').Position, Vector3.new(-1, -1, -1)),
  106.                             [5] = CFrame.new(v:FindFirstChild('HumanoidRootPart').Position, Vector3.new(-1, -1, -1))
  107.                         }
  108.                         spawn(function()
  109.                             game:GetService("ReplicatedStorage").Services.Communication.event.serverRf:InvokeServer(unpack(args))
  110.                         end)
  111.                     until not v or v:FindFirstChild('HumanoidRootPart') == nil or v:FindFirstChild('Head') == nil or v:FindFirstChild('Humanoid') == nil or v:FindFirstChild('Humanoid').Health <=1 or tick()-oldtime >=15
  112.                 end
  113.             end
  114.         end
  115.     else
  116.         game.workspace.Gravity = 196.5
  117.     end
  118.    
  119.     if AutoAttack == true then
  120.         spawn(function()
  121.             local args = {
  122.                 [1] = "attack0"
  123.             }
  124.             game:GetService("ReplicatedStorage").Services.Communication.event.serverRf:InvokeServer(unpack(args))
  125.         end)
  126.     end
  127.    
  128.     if AutoPower == true then
  129.         spawn(function()
  130.             game:GetService("ReplicatedStorage").Services.Communication.event.serverRf:InvokeServer("increaseMultiplier","Power",1)
  131.         end)
  132.     end
  133.    
  134.     if AntiAfk == true then
  135.         local bb=game:service'VirtualUser'
  136.         bb:CaptureController()
  137.         bb:ClickButton2(Vector2.new())
  138.     end
  139. end
  140. end)