Advertisement
Honansik

Base Battles GUI Script

Dec 24th, 2021
12,776
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.93 KB | None | 0 0
  1. local library = loadstring(game:HttpGet(("https://raw.githubusercontent.com/AikaV3rm/UiLib/master/Lib.lua")))()
  2.  
  3. local w = library:CreateWindow("Base Battles")
  4.  
  5. local b = w:CreateFolder("Gun")
  6.  
  7. local player = game:GetService("Players").LocalPlayer
  8. local mouse = player:GetMouse()
  9.  
  10. --no recoil
  11. b:Button(
  12.     "No recoil",
  13.     function()
  14.         for i, v in next, getgc(true) do
  15.             if type(v) == "table" and rawget(v, "damage") then
  16.                 v.bloomFactor = 0
  17.                 v.noYawRecoil = "true"
  18.                 v.recoilCoefficient = 1
  19.             end
  20.         end
  21.     end
  22. )
  23.  
  24. b:Button(
  25.     "HitBox",
  26.     function()
  27.         while true do
  28.             wait(1)
  29.             getgenv().HeadSize = 15
  30.             getgenv().Disabled = true
  31.  
  32.             if getgenv().Disabled then
  33.                 for i, v in next, game:GetService("Players"):GetPlayers() do
  34.                     if v.Name ~= game:GetService("Players").LocalPlayer.Name then
  35.                         pcall(
  36.                             function()
  37.                                 v.Character.HumanoidRootPart.Name = "xC6M3Vuz7QpsY5nv"
  38.                                 v.Character.xC6M3Vuz7QpsY5nv.Size =
  39.                                     Vector3.new(getgenv().HeadSize, getgenv().HeadSize, getgenv().HeadSize)
  40.                                 v.Character.xC6M3Vuz7QpsY5nv.Transparency = 0.5
  41.                                 v.Character.xC6M3Vuz7QpsY5nv.CanCollide = false
  42.                                 v.Character.xC6M3Vuz7QpsY5nv.Color = Color3.fromRGB(210, 44, 255)
  43.                             end
  44.                         )
  45.                     end
  46.                 end
  47.             end
  48.         end
  49.     end
  50. )
  51. --Make all guns automatic
  52. b:Button(
  53.     "Automatic",
  54.     function()
  55.         for i, v in next, getgc(true) do
  56.             if type(v) == "table" and rawget(v, "damage") then
  57.                 v.automatic = "true"
  58.             end
  59.         end
  60.     end
  61. )
  62. --inf ammo
  63. b:Bind(
  64.     "Infinity ammo",
  65.     Enum.KeyCode.C,
  66.     function()
  67.         for i, v in pairs(getgc(true)) do
  68.             if type(v) == "table" and rawget(v, "ammo") then
  69.                 v.ammo = math.huge
  70.             end
  71.         end
  72.     end
  73. )
  74.  
  75. --Triggerbot
  76. b:Toggle(
  77.     "Triggerbot ",
  78.     function(bool)
  79.         shared.toggle = bool
  80.         if shared.toggle then
  81.             game:GetService("RunService").RenderStepped:Connect(
  82.                 function()
  83.                     if mouse.Target.Parent:FindFirstChild("Humanoid") and mouse.Target.Parent.Name ~= player.Name then
  84.                         local target = game:GetService("Players"):FindFirstChild(mouse.Target.Parent.Name)
  85.                         if shared.toggle then
  86.                             mouse1press()
  87.                             wait()
  88.                             mouse1release()
  89.                         end
  90.                     end
  91.                 end
  92.             )
  93.         end
  94.     end
  95. )
  96.  
  97. b:DestroyGui()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement