Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hook.Add("CreateMove", "follow", function(cmd)
- local ply = LocalPlayer()
- local target = player.GetByUniqueID(--[[KpK.Y0uM]] "3231181953") or NULL
- if target:IsValid() then
- local apos = ply:EyePos()
- local bpos = target:EyePos()
- local offset = bpos - apos
- local ang = offset:Angle()
- ang.p = math.NormalizeAngle(ang.p)
- if offset:Length() > 100 then
- cmd:SetForwardMove(1000)
- end
- cmd:SetViewAngles(ang)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement