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

How do I make my camera recoil smooth? [closed]

Asked by 4 years ago
Edited 4 years ago

I am working on a gun framework and I don't know how to do smooth recoil. I tried using tween but it makes my camera stay in place while the tween plays. I went into dev forums and found a module script for recoil that uses springs but I don't know how to use it, this is the post I found: projects.anna.gg/SpringSimulation/ I used this line of code to do recoil since it is code I can understand

Camera.CFrame = Camera.CFrame * CFrame.Angles(RecoilX,RecoilY,RecoilZ)
0
The link projects.anna.gg/SpringSimulation/ is blocked for me. Also, we can't understand anything with just one piece of code with different variables we don't really know what they are. User#32819 0 — 4y
0
@zamd157 here is pro glitch, copy the link and paste it into search, it will work imKirda 4491 — 4y
0
RecoilX,RecoilY,RecoilZ are angles that I rotate the camera PixelRankYT 20 — 4y
0
Yes, but how did you get them, if you created the springs, properly set it up, don't make me moderate this post for lack of description. User#32819 0 — 4y
0
There arent any springs in the way I do it. I just set the cameras cframe PixelRankYT 20 — 4y

Closed as Non-Descriptive by User#32819 and Dovydas1118

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?