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

How would one return a the lookVector of the camera back to its original position?

Asked by 5 years ago

With this I realized you don't actually have to make the players camera type "Scriptable". Instead you can loop/repeat it a multitude of times to give a recoil effect or a "jerking" effect to the camera. However, I am unsure of how to return the camera's view back to where the player or client had their mouse WITHOUT making the camera scriptable. Any ideas or solutions?

This is the line I would loop to create the recoil/jerking effect.

Camera.CFrame = Camera.CFrame * CFrame.Angles(0,math.rad(1),0)
0
Look into CameraOffset, from the player humanoid, a for loop with Vector3’s should accomplish what you want to do, if it’s fired with UIS mouse which I imagine you’re using if you’re talking recoil ABK2017 406 — 5y
0
CameraOffset it always returning as 0,0,0. Stephenthefox 94 — 5y

Answer this question