Facebook
From Morose Stork, 1 Week ago, written in Plain Text.
This paste is a reply to bed wars from CluckSupreme93 - view diff
Embed
Download Paste or View Raw
Hits: 54
  1. getgenv().Main = loadstring(game:HttpGet(“https://raw.githubusercontent.com/SuperGamingBros4/Roblox-HAX/main/Better_UI_Library.lua”))()
  2. local camera = game:GetService(“Workspace”).CurrentCamera
  3. local Plr = game:GetService(“Players”).LocalPlayer
  4. local RS = game:GetService(“RunService”)
  5. local mouse = Plr:GetMouse()
  6. function getclosestplayertomouse()
  7. local Target = nil
  8. for i,v in pairs(game:GetService(“Players”):GetPlayers()) do
  9. if v.Character then
  10. if v.Character:FindFirstChild(“Humanoid”) and v.Character:FindFirstChild(“Humanoid”).Health ~= 0 and v.Character:FindFirstChild(“HumanoidRootPart”) and v.TeamColor ~= Plr.TeamColor then
  11. local pos, vis = camera:WorldToViewportPoint(v.Character.HumanoidRootPart.Position)
  12. local dist = (Vector2.new(mouse.X, mouse.Y) – Vector2.new(pos.X, pos.Y)).Magnitude
  13. if Main.Flags.VisCheck then
  14. if Main.Flags.Size > dist and vis then
  15. Target = v
  16. print(dist)
  17. end
  18. else
  19. if Main.Flags.Size > dist then
  20. Target = v
  21. end
  22. end
  23. end
  24. end
  25. end
  26. return Target
  27. end
  28. local circle = Drawing.new(“Circle”)
  29. circle.Thickness = 0.1
  30. RS.RenderStepped:Connect(function()
  31. local Settings = Main.Flags
  32. if Settings.Aimbot and Settings.FovCircle then — FovCircle
  33. circle.Visible = true
  34. circle.Color = Color3.fromRGB(Settings.FovRed, Settings.FovGreen, Settings.FovBlue)
  35. circle.NumSides = Settings.Smoothing
  36. circle.Radius = Settings.Size
  37. circle.Position = Vector2.new(mouse.X, mouse.Y + 35)
  38. else
  39. circle.Visible = false
  40. end
  41. if Settings.Aimbot then — Aimbot
  42. for i,arrow in pairs(game:GetService(“Workspace”):GetChildren()) do
  43. if arrow.Name == “arrow” or arrow.Name == “crossbow_arrow” then
  44. pcall(function()
  45. arrow:WaitForChild(“Handle”).Position = getclosestplayertomouse().Character.HumanoidRootPart.Position
  46. end)
  47. end
  48. end
  49. end
  50. if Main.Flags.Speed then — Toggle Speed
  51. pcall(function() Plr.Character.Humanoid.WalkSpeed = 22 end)
  52. end
  53. end)
  54. local function InvisPlayer()
  55. getgenv().InvisRunning = false
  56. wait(0.01)
  57. getgenv().InvisRunning = true
  58. pcall(function()
  59. local CFrame = Plr.Character.UpperTorso.CFrame
  60. Plr.Character.HumanoidRootPart:BreakJoints()
  61. while InvisRunning do
  62. Plr.Character.UpperTorso.CFrame = CFrame
  63. wait(0.000001)
  64. end
  65. end)
  66. end
  67. coroutine.wrap(function()
  68. while true do
  69. wait(1)
  70. if Main.Flags.InstantBreak then — InstantBreak
  71. for i,block in pairs(game:GetService(“Workspace”).Map.Blocks:GetChildren()) do
  72. block:SetAttribute(“Health”, 1)
  73. end
  74. end
  75. end
  76. end)()
  77. local Window = Main:CreateWindow(“BedWars”)
  78. local MainTab = Window:AddTab(“Main”) do
  79. MainTab:AddToggle({Name = “Aimbot”, Flag = “Aimbot”})
  80. MainTab:AddToggle({Name = “AimBot Circle”, Flag = “FovCircle”})
  81. MainTab:AddToggle({Name = “VisCheck”, Flag = “VisCheck”})
  82. MainTab:AddSlider({Name = “Aimbot Fov”, Default = 50, Max = 500, Flag = “Size”})
  83. MainTab:AddToggle({Name = “Toggle Sprint”, Flag = “Speed”})
  84. MainTab:AddToggle({Name = “Instant Break”, Flag = “InstantBreak”})
  85. MainTab:AddText(“To get out of invisibility, just reset.”)
  86. MainTab:AddButton({Name = “Invisibility”, Callback = InvisPlayer})
  87. end
  88. local SettingsTab = Window:AddTab(“Settings”) do
  89. SettingsTab:AddText(“Fov Circle Settings”)
  90. SettingsTab:AddSlider({Name = “Red”, Flag = “FovRed”, Default = 255, Max = 255})
  91. SettingsTab:AddSlider({Name = “Green”, Flag = “FovGreen”, Default = 255, Max = 255})
  92. SettingsTab:AddSlider({Name = “Blue”, Flag = “FovBlue”, Default = 255, Max = 255})
  93. SettingsTab:AddSlider({Name = “Smoothness”, Flag = “Smoothing”, Min = 12, Default = 40, Max = 75})
  94. end