Swep RunningPos

Hello everyone, I’ve been trying to add a running pos to my SWEP base(Personal use), and I can’t seem to get it to work. I’ve tried doing this:
[lua]function SWEP:GetViewModelPosition( pos, ang )

if self.Owner:KeyDown(IN_SPEED) then

ang:RotateAroundAxis( ang:Forward(), 90 )

return pos, ang
 
end

end
[/lua]
But it creates issues with my ironsights.
So I was wondering if anyone could make the code for me, I would be very grateful.
Thanks!