Guest User

Untitled

a guest
Feb 13th, 2015
434
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. -- Simple Triggerbot by DeVo
  2. local toggle = true
  3.  
  4. concommand.Add("triggerbot",function()
  5. toggle = not toggle
  6. end)
  7.  
  8. hook.Add("Think","aimbot", function()
  9. if toggle then
  10. local ply = LocalPlayer()
  11. local trace = util.GetPlayerTrace( ply )
  12. local traceRes = util.TraceLine( trace )
  13. if traceRes.HitNonWorld then
  14. local target = traceRes.Entity
  15. if target:IsPlayer() then
  16. local targethead = target:LookupBone("ValveBiped.Bip01_Head1")
  17. local targetheadpos,targetheadang = target:GetBonePosition(targethead)
  18. ply:SetEyeAngles((targetheadpos - ply:GetShootPos()):Angle())
  19. end
  20. end
  21. end
  22. end)
Advertisement
Add Comment
Please, Sign In to add comment