Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 KB | None | 0 0
  1. print("Loading AimBot 1.0")
  2.  
  3. local NoKillList={treyreynolds=true,xXxMoNkEyMaNxXx=true,zimbabwe0=true}
  4. local AimBotting=false
  5. local AimAtTorso=false
  6. local RayCasting=true
  7. local TeamCheck=true
  8.  
  9. local cast=workspace.FindPartOnRayWithIgnoreList
  10. local ray=Ray.new
  11. local MAX_ITERATIONS=25
  12. local function PiercingCast(p0,p1,ignore)
  13. local Part
  14. local i=0
  15. repeat
  16. i=i+1
  17. local cond=(p1-p0).magnitude<999
  18. Part,p0=cast(workspace,ray(p0,cond and p1-p0 or (p1-p0).unit*999),ignore)
  19. if Part then
  20. if Part.CanCollide==false or Part.Transparency==1 then
  21. ignore[#ignore+1]=Part
  22. Part=nil
  23. end
  24. elseif cond or i>MAX_ITERATIONS then
  25. break
  26. end
  27. until Part
  28. return Part,p0
  29. end
  30.  
  31. local Camera=Workspace.CurrentCamera
  32. local Player=game.Players.LocalPlayer
  33.  
  34. game:GetService("RunService").RenderStepped:connect(function()
  35. if AimBotting or AutoAimBot then
  36. local p=game.Players:GetPlayers()
  37. local d,t=-1
  38. local c=Camera.CoordinateFrame
  39. for i=1,#p do
  40. local ch=p[i].Character
  41. if p[i]~=Player
  42. and ch:FindFirstChild("Humanoid")
  43. and ch:FindFirstChild("Torso")
  44. and ch.Humanoid.Health>0
  45. and not (TeamCheck and Player.TeamColor==p[i].TeamColor or NoKillList[p[i].Name] or ch:FindFirstChild'ForceField') then
  46. local tp=AimAtTorso and ch.Torso.Position or ch.Torso.CFrame*Vector3.new(0,1.5,0)
  47. local HitPart=PiercingCast(c.p,tp,{Camera,Player.Character})
  48. if not (RayCasting and HitPart) or ch:IsAncestorOf(HitPart) then
  49. local m=(tp-c.p).unit:Dot(c.lookVector)
  50. if m==m and m>d then
  51. d,t=m,tp
  52. end
  53. end
  54. end
  55. end
  56. if t then
  57. Camera.CoordinateFrame=CFrame.new(Camera.Focus.p,t)*CFrame.new(0,0,0.5)
  58. end
  59. end
  60. end)
  61.  
  62. local Hint=Camera:FindFirstChild("Message") or Instance.new("Hint",Camera)
  63.  
  64. local m=Player:GetMouse()
  65. m.Button2Down:connect(function()
  66. AimBotting=true
  67. print("AimBotting")
  68. end)
  69. m.Button2Up:connect(function()
  70. AimBotting=false
  71. print("Idle")
  72. end)
  73.  
  74. m.KeyDown:connect(function(k)
  75. if k=="b" then
  76. AimAtTorso=not AimAtTorso
  77. print("Aiming for:",AimAtTorso and "Torso" or "Head")
  78. elseif k=="n" then
  79. RayCasting=not RayCasting
  80. print("RayCastCheck:",RayCasting)
  81. elseif k=="m" then
  82. TeamCheck=not TeamCheck
  83. print("TeamCheck:",TeamCheck)
  84. elseif k=="k" then
  85. AutoAimBot=not AutoAimBot
  86. print("AutoAimBot:",AutoAimBot)
  87. elseif k=="h" and Player.Character:FindFirstChild("Humanoid") then
  88. local h=Player.Character.Humanoid
  89. h.Health=h.MaxHealth
  90. end
  91. Hint.Parent=Camera
  92. Hint.Text="Aiming for: "..(AimAtTorso and "Torso" or "Head").." RayCastCheck: "..tostring(RayCasting).." TeamCheck: "..tostring(TeamCheck).." AutoAimBot: "..tostring(AutoAimBot)
  93. end)
  94.  
  95. print("Loaded AimBot 1.0")
  96.  
  97. return true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement