Hey I tried this, i may be doing something wrong but it made everything stay still
i have this running in a renderstepped so that might be affecting it
also i dont know whether to define the time variables inside or out the renderstepped
this is in a renderstepped loop (i tried defining the variables outside aswell)
local startTime = time()
local t = math.clamp( (time() - startTime) * 2, -1,1 )
local zvalue = math.lerp(0, -0.0494765043258667 / math.clamp(AimFactor,1,5) * moveDirectionX,t )
local cvvalue = math.lerp(0 ,math.clamp( ( (Magnitude / Humanoid.WalkSpeed) ) / math.clamp(AimFactor,1,5) ,0 , .2 ) ,t)
local movingOffset = CFrame.Angles(0,0, zvalue ) * CFrame.new( ( moveDirection.X * .05 ) / math.clamp(AimFactor,1,5) , 0 , cvvalue)
ViewModelRoot.CFrame = CF * movingOffset * AIMCFRAME * (CustomViewModelPosition)
this is everything im trying to lerp
local movingOffset = CFrame.new():Lerp( CFrame.Angles(0,0, ( (-0.0494765043258667 / math.clamp(AimFactor,1,5)) * moveDirectionX) ) * CFrame.new( ( moveDirection.X * .05 ) / math.clamp(AimFactor,1,5) , 0 , math.clamp( ( (Magnitude / Humanoid.WalkSpeed) ) / math.clamp(AimFactor,1,5) ,0 , .2 ) ), 1 )