Any ideas on how to make a leaning system?

I want to make a leaning system similar to R6 Siege, but…

I have tried to tween the camera, but it stays in place, and I have tried to lerp it, but it snaps instead of smoothly leaning.

Lean as in, camera rotates, and an offset?

For that you should manipulate the camera’s rotation, then use the property of Humanoid called, “CameraOffset”.

Camera
CameraOffset (Property of Humanoid)

Those two should suffice for the general idea of a Lean mechanic.

1 Like

Well, I tried to use that, but I couldn’t find a way to smoothly interpolate between leaning and not leaning.

You didn’t use the Lerp function?

That’s what I tried, but it would snap back into place when un-leaning.

Can I see a snippet of your code?

This was for an old project, but I remember I had it bind to renderstep, and it detected if a boolean was false or not, then it lerped the camera CFrame and Offset, and when it was false, it lerped back.