Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Simple Triggerbot by DeVo
- local toggle = true
- concommand.Add("triggerbot",function()
- toggle = not toggle
- end)
- hook.Add("Think","aimbot", function()
- if toggle then
- local ply = LocalPlayer()
- local trace = util.GetPlayerTrace( ply )
- local traceRes = util.TraceLine( trace )
- if traceRes.HitNonWorld then
- local target = traceRes.Entity
- if target:IsPlayer() then
- local targethead = target:LookupBone("ValveBiped.Bip01_Head1")
- local targetheadpos,targetheadang = target:GetBonePosition(targethead)
- ply:SetEyeAngles((targetheadpos - ply:GetShootPos()):Angle())
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment