Advertisement
kingmohamed

arsenal

Jun 26th, 2022 (edited)
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.28 KB | None | 0 0
  1. local Settings = {
  2. Aimbot = false,
  3. Smoothness = 50,
  4. TeamCheck = false,
  5. FovUsed = false,
  6. Fov = 100,
  7. Boxes = false,
  8. Names = false,
  9. Walkspeed = 16,
  10. Jumppower = 50,
  11. CtrlClickTP = false
  12. }
  13. local RunService = game:GetService("RunService")
  14. local UserInputService = game:GetService("UserInputService")
  15. local Camera = game:GetService("Workspace").CurrentCamera
  16. local Players = game:GetService("Players")
  17. local Player = Players.LocalPlayer
  18. local Mouse = Player:GetMouse()
  19.  
  20. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/main/source.lua"))()
  21. local Window = Library.CreateLib("Bye mohamed", "Ocean")
  22.  
  23. local Main = Window:NewTab('Main')
  24. local MainSection = Main:NewSection("Main")
  25.  
  26. local Circle = Drawing.new("Circle")
  27. Circle.Color = Color3.new(1, 1, 1)
  28. Circle.Thickness = 1
  29. Circle.Radius = Settings.Fov
  30. Circle.Visible = Settings.FovUsed
  31. Circle.NumSides = 1000
  32. Circle.Filled = false
  33. Circle.Transparency = 1
  34.  
  35. MainSection:NewToggle('Use Fov', "fov", function(Bool)
  36. Settings.FovUsed = Bool
  37. Circle.Visible = Bool
  38. end)
  39.  
  40. MainSection:NewToggle('Aimbot', "aim player at the head", function(Bool)
  41. Settings.Aimbot = Bool
  42. end)
  43.  
  44. MainSection:NewSlider('Smoothness', "smoothnees", 1, 250, function(Number)
  45. Settings.Smoothness = Number
  46. end)
  47.  
  48. MainSection:NewSlider('Fov', "hmm", 1, 1000, function(Number)
  49. Settings.Fov = Number
  50. Circle.Radius = Number
  51. end)
  52.  
  53. MainSection:NewToggle('Box Esp', "box around players", function(Bool)
  54. Settings.Boxes = Bool
  55. end)
  56.  
  57. MainSection:NewToggle('Name Esp', "gives name of the players", function(Bool)
  58. Settings.Names = Bool
  59. end)
  60.  
  61. local Char = Window:NewTab('Character')
  62. local CharSection = Char:NewSection("Char")
  63.  
  64. CharSection:NewLabel("Warning! Some features may be detected depending on the game.")
  65.  
  66. CharSection:NewSlider('Walk Speed', "walk speed", 16, 100, function(Number)
  67. Settings.Walkspeed = Number
  68. if Player.Character ~= nil and Player.Character:FindFirstChild("Humanoid") then
  69. Player.Character.Humanoid.WalkSpeed = Number
  70. end
  71. end)
  72.  
  73. CharSection:NewSlider('Jump Power', "hmm", 50, 250, function(Number)
  74. Settings.Jumppower = Number
  75. if Player.Character ~= nil and Player.Character:FindFirstChild("Humanoid") then
  76. Player.Character.Humanoid.JumpPower = Number
  77. end
  78. end)
  79.  
  80. CharSection:NewKeybind("Keybind", "KeybindInfo", Enum.KeyCode.P, function()
  81. Library:ToggleUI()
  82. end)
  83.  
  84. CharSection:NewButton("Fly", "bird mode", function()
  85. loadstring(game:HttpGet("https://cdn.wearedevs.net/scripts/Fly.txt"))()
  86. end)
  87.  
  88. CharSection:NewButton("Rejoin", "Rejoins you to the same server", function()
  89. game:GetService("TeleportService"):Teleport(game.PlaceId, game:GetService("Players").LocalPlayer)
  90. end)
  91.  
  92. CharSection:NewToggle('Ctrl Click TP', "hold ctrl to tp somewhere", function(Bool)
  93. Settings.CtrlClickTP = Bool
  94. end)
  95.  
  96. function DrawText()
  97. local Text = Drawing.new("Text")
  98. Text.Color = Color3.fromRGB(190, 190, 0)
  99. Text.Size = 20
  100. Text.Outline = true
  101. Text.Center = true
  102. return Text
  103. end
  104.  
  105. function DrawSquare()
  106. local Box = Drawing.new("Square")
  107. Box.Color = Color3.fromRGB(190, 190, 0)
  108. Box.Thickness = 0.5
  109. Box.Filled = false
  110. Box.Transparency = 1
  111. return Box
  112. end
  113.  
  114. function IsPlayerAlive(player)
  115. if player.Character ~= nil and player.Character:FindFirstChild("HumanoidRootPart") then
  116. return true
  117. end
  118. return false
  119. end
  120.  
  121. function GetOffset(part, pos)
  122. local FarPosition = Camera:WorldToViewportPoint(Vector3.new(part.Position.X, part.Position.Y + (part.Size.Y / 2), part.Position.Z))
  123. return FarPosition.Y - pos.Y
  124. end
  125.  
  126. function GetCorners(player)
  127. local TopY = math.huge
  128. local BottomY = -math.huge
  129. local RightX = -math.huge
  130. local LeftX = math.huge
  131. local Offsets
  132. local Positions = {}
  133. for i, v in next, player.Character:GetChildren() do
  134. if v.ClassName == "MeshPart" or v.Name == "Head" then
  135. local Position, OnScreen = Camera:WorldToViewportPoint(v.Position)
  136. Positions[v.Name] = Position
  137. Offsets = GetOffset(v, Position)
  138. if OnScreen then
  139. if Position.Y < TopY then
  140. TopY = Position.Y
  141. end
  142. if Position.Y > BottomY then
  143. BottomY = Position.Y
  144. end
  145. if Position.X < LeftX then
  146. LeftX = Position.X
  147. end
  148. if Position.X > RightX then
  149. RightX = Position.X
  150. end
  151. end
  152. end
  153. end
  154. return {TopLeft = Vector2.new(LeftX + Offsets, TopY + Offsets), TopRight = Vector2.new(RightX - Offsets, TopY + Offsets), BottomLeft = Vector2.new(LeftX + Offsets, BottomY - Offsets), BottomRight = Vector2.new(RightX - Offsets, BottomY - Offsets), Positions = Positions}
  155. end
  156.  
  157. function GetClosest()
  158. local Closest = nil
  159. local Magnitude = math.huge
  160. for i, v in next, Players:GetPlayers() do
  161. if v ~= Player and IsPlayerAlive(v) then
  162. if not Settings.TeamCheck or Settings.TeamCheck and v.Team ~= LocalPlayer.Team then
  163. local Position, Visible = Camera:WorldToScreenPoint(v.Character["HumanoidRootPart"].Position)
  164. if Visible then
  165. local Mouse = Player:GetMouse()
  166. local Distance = (Vector2.new(Mouse.X, Mouse.Y) - Vector2.new(Position.X, Position.Y)).Magnitude
  167. if not Settings.FovUsed and Distance < Magnitude or Settings.FovUsed and Distance < Magnitude and Distance < Settings.Fov then
  168. Closest = v
  169. Magnitude = Distance
  170. end
  171. end
  172. end
  173. end
  174. end
  175. return Closest
  176. end
  177.  
  178. function AddEsp(player)
  179. local Box = DrawSquare()
  180. local Name = DrawText()
  181. RunService.Stepped:Connect(function()
  182. IsAlive = IsPlayerAlive(player)
  183. if IsAlive and player.Character:FindFirstChild("HumanoidRootPart") then
  184. local Corners = GetCorners(player)
  185. local Positions = Corners.Positions
  186. local xDist = Corners.BottomRight.X - Corners.TopLeft.X
  187. local yDist = Corners.BottomRight.Y - Corners.TopLeft.Y
  188. local RootPosition, OnScreen = Camera:WorldToViewportPoint(player.Character.HumanoidRootPart.Position)
  189. if Settings.Boxes then
  190. Box.Visible = OnScreen
  191. Box.Size = Vector2.new(xDist, yDist)
  192. Box.Position = Corners.TopLeft
  193. else
  194. Box.Visible = false
  195. end
  196. if Settings.Names then
  197. Name.Visible = OnScreen
  198. Name.Position = Vector2.new(Corners.BottomRight.X - (xDist / 2), Corners.TopLeft.Y - 45)
  199. Name.Text = player.Name
  200. else
  201. Name.Visible = false
  202. end
  203. else
  204. Box.Visible = false
  205. Name.Visible = false
  206. end
  207. end)
  208. end
  209.  
  210. for i, v in pairs(Players:GetPlayers()) do
  211. if v ~= Player then
  212. AddEsp(v)
  213. end
  214. end
  215.  
  216. Players.PlayerAdded:Connect(function(player)
  217. if v ~= Player then
  218. AddEsp(player)
  219. end
  220. end)
  221.  
  222. Mouse.Button1Down:Connect(function()
  223. if Settings.CtrlClickTP and Player.Character ~= nil then
  224. if UserInputService:IsKeyDown(Enum.KeyCode.LeftControl) or UserInputService:IsKeyDown(Enum.KeyCode.RightControl) then
  225. Player.Character:MoveTo(Mouse.Hit.Position)
  226. end
  227. end
  228. end)
  229.  
  230. RunService.RenderStepped:Connect(function()
  231. local Mouse = UserInputService:GetMouseLocation()
  232. Circle.Position = Vector2.new(Mouse.X, Mouse.Y)
  233. end)
  234.  
  235. while wait(0.05) do
  236. if Settings.Aimbot and UserInputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton2) then
  237. local Target = GetClosest()
  238. if Target ~= nil then
  239. local Position = Camera:WorldToViewportPoint(Target.Character.Head.Position)
  240. local Mouse = UserInputService:GetMouseLocation()
  241. mousemoverel((Position.X - Mouse.X) / (Settings.Smoothness / 10), (Position.Y - Mouse.Y) / (Settings.Smoothness / 10))
  242. end
  243. end
  244. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement