Advertisement
Bugxie_

Untitled

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