Advertisement
VillZox

Untitled

Dec 6th, 2021
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.70 KB | None | 0 0
  1. -- default settings
  2. _G.AutoBlock = false -- blocks most incoming hits but may also block your hits.
  3. _G.InfEnergy = true
  4. _G.NoCooldown = false -- works for some things like you can spam ryan's right click.
  5.  
  6. spawn(function()
  7. a = hookfunction(wait, function(b) if b ~= 0 and tostring(getcallingscript(a)) ~= "nil" and tonumber(b) < 2.5 and _G.NoCooldown == true then return a() end return a(b) end)
  8. end)
  9.  
  10. spawn(function()
  11. local function CreateInstance(cls,props)
  12. local inst = Instance.new(cls)
  13. for i,v in pairs(props) do
  14. inst[i] = v
  15. end
  16. return inst
  17. end
  18.  
  19. local ScreenGui = CreateInstance('ScreenGui',{DisplayOrder=0,Enabled=true,ResetOnSpawn=true,Name='ScreenGui', Parent=game.CoreGui})
  20. local Frame = CreateInstance('Frame',{Style=Enum.FrameStyle.Custom,Active=true,AnchorPoint=Vector2.new(0, 0),BackgroundColor3=Color3.new(0, 0, 0),BackgroundTransparency=1,BorderColor3=Color3.new(0.105882, 0.164706, 0.207843),BorderSizePixel=1,ClipsDescendants=false,Draggable=false,Position=UDim2.new(0.717395179, 0, 0.219242901, 0),Rotation=0,Selectable=false,Size=UDim2.new(0, 531, 0, 267),SizeConstraint=Enum.SizeConstraint.RelativeXY,Visible=true,ZIndex=1,Name = 'Frame',Parent = ScreenGui})
  21.  
  22. local InfEnergy = CreateInstance('TextButton',{Font=Enum.Font.SourceSans,FontSize=Enum.FontSize.Size14,Text='Toggle Infinite Energy (Default)',TextColor3=Color3.new(0.792157, 0.792157, 0.792157),TextScaled=false,TextSize=0,TextStrokeColor3=Color3.new(0, 0, 0),TextStrokeTransparency=1,TextTransparency=1,TextWrapped=false,TextXAlignment=Enum.TextXAlignment.Center,TextYAlignment=Enum.TextYAlignment.Center,AutoButtonColor=true,Modal=false,Selected=false,Style=Enum.ButtonStyle.Custom,Active=true,AnchorPoint=Vector2.new(0, 0),BackgroundColor3=Color3.new(0, 0, 0),BackgroundTransparency=1,BorderColor3=Color3.new(0.105882, 0.164706, 0.207843),BorderSizePixel=0,ClipsDescendants=false,Draggable=false,Position=UDim2.new(0, 0, 0, 105),Rotation=0,Selectable=true,Size=UDim2.new(0, 170, 0, 50),SizeConstraint=Enum.SizeConstraint.RelativeXY,Visible=true,ZIndex=1,Name='Script2',Parent = Frame})
  23.  
  24. spawn(function()
  25. wait(0.2)
  26. if _G.AutoBlock then AutoBlock.Text = "Toggle Auto Block (On)" else AutoBlock.Text = "Toggle Auto Block (Off)" end
  27. if _G.InfEnergy then InfEnergy.Text = "Toggle Infinite Energy (On)" else InfEnergy.Text = "Toggle Infinite Energy (Off)" end
  28. if _G.NoCooldown then NoCooldown.Text = "Toggle No Cooldown (On)" else NoCooldown.Text = "Toggle No Cooldown (Off)" end
  29. end)
  30.  
  31. AutoBlock.MouseButton1Click:Connect(function()
  32. if _G.AutoBlock == true then _G.AutoBlock = false AutoBlock.Text = "Toggle Auto Block (Off)" elseif _G.AutoBlock == false then _G.AutoBlock = true AutoBlock.Text = "Toggle Auto Block (On)" end
  33. end)
  34.  
  35. InfEnergy.MouseButton1Click:Connect(function()
  36. if _G.InfEnergy == true then _G.InfEnergy = false InfEnergy.Text = "Toggle Infinite Energy (Off)" elseif _G.InfEnergy == false then _G.InfEnergy = true InfEnergy.Text = "Toggle Infinite Energy (On)" end
  37. end)
  38.  
  39. NoCooldown.MouseButton1Click:Connect(function()
  40. if _G.NoCooldown == true then _G.NoCooldown = false NoCooldown.Text = "Toggle No Cooldown (Off)" elseif _G.NoCooldown == false then _G.NoCooldown = true NoCooldown.Text = "Toggle No Cooldown (On)" end
  41. end)
  42. end)
  43.  
  44. name = tostring(game.Players.LocalPlayer.Name)
  45. game:GetService("RunService").Heartbeat:Connect(function()
  46. spawn(function()
  47. if _G.AutoBlock == true then
  48. wait()
  49. game:GetService("ReplicatedStorage").RemoteEvents.ReplicateGuardOn:FireServer()
  50. game:GetService("Workspace")[name].Guarding.Value = false
  51. wait()
  52. game:GetService("ReplicatedStorage").RemoteEvents.ReplicateGuardOff:FireServer()
  53. end
  54. end)
  55.  
  56. spawn(function()
  57. if _G.InfEnergy then
  58. game:GetService("Workspace")[name].Energy.Value = 97
  59. end
  60. end)
  61. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement