How do you make your camera revert after shaking it?

I’m a little confused with shaking a camera, only because I want to revert it back to it’s original cframe after shaking it. How do I get the original cframe of the camera?

I’m still sort of new to this type of stuff, so correct me if I’m wrong.

I would suggest grabbing the original CFrame values before your shake effect plays, then use a loop to ease the CFrame back to that position after the shake effect.

Correct me if I am incorrect, but I can safely assume that the Camera.CameraType is set to Enum.CameraType.Scriptable.After the camera has finished the shaking animation, revert it back to Enum.CameraType.Custom in the script. Your post seems similar to the follow post so I just went off of that: Can't seem to set camera back to player

If you are looking to shake the camera then I highly recommend this module by @Crazyman32. I’ve used it and it’s really nice and clean. Great affect!

It will handle all the CFrame stuff for you, you just have to specify what you want.

3 Likes