RBX_pross_fan440872

Bedwars AutoKill

Oct 2nd, 2021
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.70 KB | None | 0 0
  1.     wait(0.1)
  2.     getgenv().Main = loadstring(game:HttpGet("https://raw.githubusercontent.com/SuperGamingBros4/Roblox-HAX/main/Better_UI_Library.lua"))()
  3.  
  4.     local camera = game:GetService("Workspace").CurrentCamera
  5.     local Plr = game:GetService("Players").LocalPlayer
  6.     local RS = game:GetService("RunService")
  7.     local mouse = Plr:GetMouse()
  8.  
  9.     function getclosestplayertomouse()
  10.         local Target = nil
  11.         for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  12.             if v.Character then
  13.                 if v.Character:FindFirstChild("Humanoid") and v.Character:FindFirstChild("Humanoid").Health ~= 0 and v.Character:FindFirstChild("HumanoidRootPart") and v.TeamColor ~= Plr.TeamColor then
  14.                     local pos, vis = camera:WorldToViewportPoint(v.Character.HumanoidRootPart.Position)
  15.                     local dist = (Vector2.new(mouse.X, mouse.Y) - Vector2.new(pos.X, pos.Y)).Magnitude
  16.                     if Main.Flags.VisCheck then
  17.                         if Main.Flags.Size > dist and vis then
  18.                             Target = v
  19.                             print(dist)
  20.                         end
  21.                     else
  22.                         if Main.Flags.Size > dist then
  23.                             Target = v
  24.                         end
  25.                     end
  26.                 end
  27.             end
  28.         end
  29.         return Target
  30.     end
  31.  
  32.     local circle = Drawing.new("Circle")
  33.     circle.Thickness = 0.1
  34.     RS.RenderStepped:Connect(function()
  35.         local Settings = Main.Flags
  36.  
  37.         if Settings.Aimbot and Settings.FovCircle then -- FovCircle
  38.             circle.Visible = true
  39.             circle.Color = Color3.fromRGB(Settings.FovRed, Settings.FovGreen, Settings.FovBlue)
  40.             circle.NumSides = Settings.Smoothing
  41.             circle.Radius = Settings.Size
  42.             circle.Position = Vector2.new(mouse.X, mouse.Y + 35)
  43.         else
  44.             circle.Visible = false
  45.         end
  46.  
  47.         if Settings.Aimbot then -- Aimbot
  48.             for i,arrow in pairs(game:GetService("Workspace"):GetChildren()) do
  49.                 if arrow.Name == "arrow" or arrow.Name == "crossbow_arrow" then
  50.                     pcall(function()
  51.                         arrow:WaitForChild("Handle").Position = getclosestplayertomouse().Character.HumanoidRootPart.Position
  52.                     end)
  53.                 end
  54.             end
  55.         end
  56.         if Main.Flags.Speed then -- Toggle Speed
  57.             pcall(function() Plr.Character.Humanoid.WalkSpeed = 22 end)
  58.         end
  59.     end)
  60.  
  61.     local function InvisPlayer()
  62.         getgenv().InvisRunning = false
  63.         wait(0.01)
  64.         getgenv().InvisRunning = true
  65.         pcall(function()
  66.             local CFrame = Plr.Character.UpperTorso.CFrame
  67.             Plr.Character.HumanoidRootPart:BreakJoints()
  68.             while InvisRunning do
  69.                 Plr.Character.UpperTorso.CFrame = CFrame
  70.                 wait(0.000001)
  71.             end
  72.         end)
  73.     end
  74.  
  75.     coroutine.wrap(function()
  76.         while true do
  77.             wait(1)
  78.             if Main.Flags.InstantBreak then -- InstantBreak
  79.                 for i,block in pairs(game:GetService("Workspace").Map.Blocks:GetChildren()) do
  80.                     block:SetAttribute("Health", 1)
  81.                 end
  82.             end
  83.         end
  84.     end)()
  85.     local Window = Main:CreateWindow("BedWars")
  86.     local MainTab = Window:AddTab("Main") do
  87.         MainTab:AddToggle({Name = "Aimbot", Flag = "Aimbot"})
  88.         MainTab:AddToggle({Name = "AimBot Circle", Flag = "FovCircle"})
  89.         MainTab:AddToggle({Name = "VisCheck", Flag = "VisCheck"})
  90.         MainTab:AddSlider({Name = "Aimbot Fov", Default = 50, Max = 500, Flag = "Size"})
  91.         MainTab:AddToggle({Name = "Toggle Sprint", Flag = "Speed"})
  92.         MainTab:AddToggle({Name = "Instant Break", Flag = "InstantBreak"})
  93.         MainTab:AddText("To get out of invisibility, just reset.")
  94.         MainTab:AddButton({Name = "Invisibility", Callback = InvisPlayer})
  95.     end
  96.     local SettingsTab = Window:AddTab("Settings") do
  97.         SettingsTab:AddText("Fov Circle Settings")
  98.         SettingsTab:AddSlider({Name = "Red", Flag = "FovRed", Default = 255, Max = 255})
  99.         SettingsTab:AddSlider({Name = "Green", Flag = "FovGreen", Default = 255, Max = 255})
  100.         SettingsTab:AddSlider({Name = "Blue", Flag = "FovBlue", Default = 255, Max = 255})
  101.         SettingsTab:AddSlider({Name = "Smoothness", Flag = "Smoothing", Min = 12, Default = 40, Max = 75})
  102.     end
Advertisement
Add Comment
Please, Sign In to add comment