Viewmodel Delay

  1. What do you want to achieve? Keep it simple and clear!
    I’m trying to add slight delay to my viewmodel’s rotation movement.
  2. What is the issue? Include screenshots / videos if possible!
    I cannot figure out what I should use to achieve this. Currently I am using ViewModel:PivotTo(CFrame) to move it, however that is instant and I want there to be a slight delay.
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I have tried adding wait to the function that changes the viewmodel’s CFrame, however that just made it more laggy. The function is bound to RenderStep.
1 Like

Can you show an image and or video?

Not much to show really. The Viewmodel stays at the same CFrame as the Camera, however I want it to have a slight amount of delay before it moves to the Camera’s CFrame. I have tried adding wait, but that just lags out the entire function and makes it extremely choppy.

If you want me to help, you must show a image / Vdeo so ik what exactly youre talking about, i may be able to help if you do

@DOGGO_Woo
If youre creating some form of FPS Arms
Use this:

RunService.RenderStepped:Connect(function()
viewmodel.SetPrimaryPartCFrame(Camera.CFrame * CFrame.new(0,1,0))
end)
Ill provide details of arms sway later

By arms sway, do you mean when the camera moves to the left, the arms take some time to move to the left? If so, that is exactly what I am looking for. The arms and their position itself is fine, but I want to give them a bit more of a natural feel.

To create arm sway, you usually make the arms lerp to the CameraOffset of the player

But you most likely need a camera bob for it to function like so