Advertisement
ProScripter29

Lucky Block Battlegrounds Script

Dec 16th, 2022
533
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.68 KB | None | 0 0
  1. local Library = loadstring(game:HttpGet("https://pastebin.com/raw/jNS157AK"))()
  2.  
  3. local Players = game:GetService("Players")
  4.  
  5. local Player = Players.LocalPlayer
  6.  
  7. -- Variables --
  8.  
  9. _G.LuckyBlocksBattlegroundSpeed = 16 -- Speed
  10. _G.LuckyBlocksBattlegroundJumpPower = 50 -- Jump Power
  11.  
  12. _G.HitboxExpansionEnabled = false
  13.  
  14. _G.InfiniteJumpsEnabled = false
  15.  
  16. -- Functions --
  17.  
  18. local function UpdateSpeed()
  19.     while task.wait() do
  20.         if (Player.Character ~= nil) then
  21.             local Humanoid = Player.Character:FindFirstChildOfClass("Humanoid")
  22.             if Humanoid then
  23.                 Humanoid.WalkSpeed = _G.LuckyBlocksBattlegroundSpeed
  24.             end
  25.         end
  26.     end
  27. end
  28.  
  29. local function UpdateJumpPower()
  30.     while task.wait() do
  31.         if (Player.Character ~= nil) then
  32.             local Humanoid = Player.Character:FindFirstChildOfClass("Humanoid")
  33.             if Humanoid then
  34.                 Humanoid.UseJumpPower = true
  35.                 Humanoid.JumpPower = _G.LuckyBlocksBattlegroundJumpPower
  36.             end
  37.         end
  38.     end
  39. end
  40.  
  41. local function HitboxExpansion()
  42.     while task.wait() do
  43.         if (_G.HitboxExpansionEnabled == true) then
  44.             for _, Target in pairs(game.Players:GetPlayers()) do
  45.                 if (Target ~= Player) and (Target.Character ~= nil) and (Target.Character:FindFirstChild("HumanoidRootPart") ~= nil) then
  46.                     local HumanoidRootPart = Target.Character:FindFirstChild("HumanoidRootPart")
  47.                     HumanoidRootPart.Size = Vector3.new(50, 50, 50)
  48.                     HumanoidRootPart.CanCollide = false
  49.                     HumanoidRootPart.Transparency = 0.85
  50.                     HumanoidRootPart.Material = Enum.Material.Neon
  51.                     HumanoidRootPart.BrickColor = Target.TeamColor
  52.                 end
  53.             end
  54.         else
  55.             for _, Target in pairs(game.Players:GetPlayers()) do
  56.                 if (Target ~= Player) and (Target.Character ~= nil) and (Target.Character:FindFirstChild("HumanoidRootPart") ~= nil) then
  57.                     local HumanoidRootPart = Target.Character:FindFirstChild("HumanoidRootPart")
  58.                     HumanoidRootPart.Size = Vector3.new(2, 2, 1)
  59.                     HumanoidRootPart.CanCollide = false
  60.                     HumanoidRootPart.Transparency = 1
  61.                 end
  62.             end
  63.         end
  64.     end
  65. end
  66.  
  67. -- Create GUI --
  68.  
  69. local Window = Library:CreateWindow("Lucky Blocks Battlegrounds", "...")
  70.  
  71. local Main = Window:addPage("Main", 2, true, 7.5)
  72.  
  73. Main:addLabel("Weapons Giver", "Get OP Weapons INSTANTLY!")
  74.  
  75. Main:addButton("Give Weapons 1x", function()
  76.     game.ReplicatedStorage.SpawnGalaxyBlock:FireServer()
  77. end)
  78.  
  79. Main:addButton("Give Weapons 3x", function()
  80.     for Repeat = 1, 3 do
  81.         game.ReplicatedStorage.SpawnGalaxyBlock:FireServer()
  82.     end
  83. end)
  84.  
  85. Main:addButton("Give Weapons 10x", function()
  86.     for Repeat = 1, 10 do
  87.         game.ReplicatedStorage.SpawnGalaxyBlock:FireServer()
  88.     end
  89. end)
  90.  
  91. Main:addLabel("Miscellaneous", "Other Actions")
  92.  
  93. Main:addTextBox("Speed", "...", function(Value)
  94.     if (tonumber(Value) ~= nil) then
  95.         _G.LuckyBlocksBattlegroundSpeed = tonumber(Value)
  96.     end
  97. end)
  98.  
  99. Main:addTextBox("Jump Power", "...", function(Value)
  100.     if (tonumber(Value) ~= nil) then
  101.         _G.LuckyBlocksBattlegroundJumpPower = tonumber(Value)
  102.     end
  103. end)
  104.  
  105. Main:addToggle("Expand Hitbox", function(Toggle)
  106.     _G.HitboxExpansionEnabled = Toggle
  107. end)
  108.  
  109. local Credits = Window:addPage("Credits", 1, false, 7.5)
  110.  
  111. Credits:addLabel("Credits", "Hud created by HappyH0lidays2021")
  112.  
  113. -- Start Functions --
  114.  
  115. task.spawn(UpdateSpeed)
  116. task.spawn(UpdateJumpPower)
  117. task.spawn(HitboxExpansion)
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement