Make a aiming camera slide

So im making a multiplayer fps and i need a way to make it so when a player right clicks the camera slowly zooms in and the gun slowly aims. No clue how to make this but i know how to make it so that when you right click it triggers the function.

Hey @Granted,

I suggest you take a look at lerp (Linear Interpolation) functions. You could simply lerp (Smoothly move) the camera between two positions as the player aims/stops aiming. You can look at this thread where someone made a script for camera lerping.

I will give it a try. Thanks!

1 Like