PLEASE READ THIS, I DONT WANT THE THITLE TO BE TOO LONG.
Okay, hey everyone, im trying to do a gun animation, i have this CameraBone on my viewmodel, i animate the orientation of it on my anim.
I want to be able to match that rotaion of the CameraBone, but with being able to move my camera freely (As you would normally do).
Im very bad at camera scripting and AI isnt a solution, please help.
Thanks!
Also, i forgot to mention im using a viewmodel script so it follows my camera, i cant make the camera to follow the bone because, as the CameraBone is in the viewmodel, and the viewmodel follows the camera, it would be an infinite loop [ViewModel follows Camera > Camera follows ViewModel], so yeah.
My question is, are you using the default Roblox camera or your own? If the default Roblox camera then this really isn’t possible.
You need to make your own basic camera manipulation script and then you can add the CameraBone offset accordingly.
Oh, so i would need to script the whole camera movement (on Scriptable CameraType) for it to work?
If yeah, is there any other solution to make the camera move without having to script the whole camera?
I mean you could ish.
Basically what you’ll do is add the offset just once to the camera. If it is a lerped value then you would need to add the delta value to the camera CFrame. That is:
Camera CFrame (for simplicity sake) is 2.
We have an offset that goes from 0 to 1 in 2 seconds.
We set the camera CFrame like so: CameraCF + (new offset - old offset)
Then set oldOffset to newOffset.
If it’s not lerped then just add the offset.
Hope this made sense, I really can’t explain much because I do not have access to my computer.
1 Like