CFrame lerp stutter

I am working on and fps game recently, but im having some issues with cframe.

i used RenderStepped and CFrame:Lerp to make a bouncing like weapon
but the problem is, cframe lerp “jitters” when used with renderstepped, can anyone help me with this?
the stutter is clearly visible whenever the player moves
https://gyazo.com/be308ca824daf2a997cb1d95c1c48dc3
this is the “stutter” im talking about

1 Like

This post could maybe help with your issue.

I already read this thread but this one didnt got to a real solution.

Maybe the best way to fix that is updating the lerp with the second value of Stepped
like this:

local Frame = CFrame.new()
local DT = .16
game:GetService("RunService"):BindToRenderStep("Test", Enum.RenderPriority.Camera.Value+1, function()
      Frame = Frame:Lerp(CFrame.new(), DT*10)
   _, DT = game:GetService("RunService").Stepped:Wait()
end)
2 Likes

works but didnt really solve the stutter

Did you ever solve the stutter? I know its an equation that uses delta, just cant determine what yet