Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I set Camera recoil then returning back to its last normal position?

Asked by 6 years ago
Edited 6 years ago

So lets say I was shooting my gun and the max recoil of the camera would be moving 3 up so kind of like Camera.CFrame=Camera.CFrame*CFrame.Angles(math.rad(1),0,0)) and everytime you tapped fire it would move 1 up and then the camera would stop going up after it moves up 3. -- How would I detect this?

Then how would I return the Camera's position back to the last position before the person shot his gun?

I tried using for loops, counters that stopped camera movement after it moved up 3, and others, but they all failed at the end. Thank you for answering if you did, really appreciate it!

Answer this question