Advertisement
stinkpotato

aimb0t

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