Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local speed = 10
- hook.Add("CreateMove",1, function(ucmd)
- local mults = math.sin(CurTime())*50
- local multc = math.cos(CurTime())*50
- ucmd:SetViewAngles(Angle(math.sin(CurTime()*speed), -math.cos(CurTime()*speed), 0)*mults)
- ucmd:SetSideMove(mults*4)
- ucmd:SetForwardMove(multc*4)
- end)
Advertisement
Add Comment
Please, Sign In to add comment