Advertisement
iceboi868

aim boiii

Jan 13th, 2021
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. local Headshot_Key = Enum.KeyCode.E
  2. local Torsoshot_Key = Enum.KeyCode.K
  3.  
  4. local plr = game.Players.LocalPlayer
  5. local Gui = Instance.new("ScreenGui",game.CoreGui)
  6. Gui.Name = "AimbotGui"
  7. local version = "1.0.1"
  8.  
  9. HDown = false
  10. TDown = false
  11. mouse = game.Plalocal Headshot_Key = Enum.KeyCode.E
  12. local Torsoshot_Key = Enum.KeyCode.K
  13.  
  14. local plr = game.Players.LocalPlayer
  15. local Gui = Instance.new("ScreenGui",game.CoreGui)
  16. Gui.Name = "AimbotGui"
  17. local version = "1.0.1"
  18.  
  19. HDown = false
  20. TDown = false
  21. mouse = game.Players.LocalPlayer:GetMouse()
  22. cam = game.Workspace.CurrentCamera
  23. Players = game:service("Players")
  24.  
  25. function onKeyPress(inputObject, gameProcessedEvent)
  26. if inputObject.KeyCode == Headshot_Key then
  27. if HDown == false and TDown == false then
  28. HDown = true
  29. print("[AIMBOT] Calculating closest player")
  30. local targetpoint = mouse.Hit
  31. local p = game.Players:GetChildren()
  32. local lowestdist = 99999999999
  33. local lowestplayer = nil
  34. for i=1,#p do
  35. if p[i]~=game.Players.LocalPlayer and p[i].Character~=nil and p[i].Character~=nil and p[i].TeamColor~=game.Players.LocalPlayer.TeamColor and p[i].Character.Humanoid.Health >0 and p[i].TeamColor~=BrickColor.new("White") then
  36. local dist = p[i]:DistanceFromCharacter(Vector3.new(targetpoint.X,targetpoint.Y,targetpoint.Z))
  37. if dist < lowestdist then
  38. lowestdist = dist
  39. lowestplayer = p[i]yers.LocalPlayer:GetMouse()
  40. cam = game.Workspace.CurrentCamera
  41. Players = game:service("Players")
  42.  
  43. function onKeyPress(inputObject, gameProcessedEvent)
  44. if inputObject.KeyCode == Headshot_Key then
  45. if HDown == false and TDown == false then
  46. HDown = true
  47. print("[AIMBOT] Calculating closest player")
  48. local targetpoint = mouse.Hit
  49. local p = game.Players:GetChildren()
  50. local lowestdist = 99999999999
  51. local lowestplayer = nil
  52. for i=1,#p do
  53. if p[i]~=game.Players.LocalPlayer and p[i].Character~=nil and p[i].Character~=nil and p[i].TeamColor~=game.Players.LocalPlayer.TeamColor and p[i].Character.Humanoid.Health >0 and p[i].TeamColor~=BrickColor.new("White") then
  54. local dist = p[i]:DistanceFromCharacter(Vector3.new(targetpoint.X,targetpoint.Y,targetpoint.Z))
  55. if dist < lowestdist then
  56. lowestdist = dist
  57. lowestplayer = p[i]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement