Here is the script piece that makes my arms follow where I look in game. I had someone help me with the math cause I am not the best at it. I am trying to add a sway to the arms after each mouse movement. I know about springs and lerping but I dont know how to apply them to my code.
local headCf = Head.CFrame local BodyAttCf = tool.GlockFrame.CFrame local pitchAngle = math.asin(CamZ.CFrame.LookVector.Y) local UpDoMov = CFrame.Angles(pitchAngle, 0, 0) * CFrame.Angles(0, math.rad(180), 0) charac.Head.ToolGrip.C0 = UpDoMov
This script is rederstepped to update every frame. Please help me understand how I can add weapon sway to a system like this. Thanks.