Roblox Camera Focus

Hello! I see a lot of features to do with the camera and focusing. So much stuff that honestly it’s confusing me!

I’m looking for a way to manipulate the default Roblox camera. For example, my camera is looking right of my character. I press the E key to aim. I need the camera to look in the direction the firearm is aiming. I’m not looking for a “LockFirstPerson” feature. I simply need to pan the camera in the direction the weapon is facing.

1 Like

Well, you could wrap the barrel’s lookVector in a CFrame.new constructor and make the Camera’s Focus the CFrame constructed.

For example:

local Focus = CFrame.new(barrel.CFrame.LookVector)
camera.Focus = Focus
2 Likes

Have you read this yet? Customizing the Camera | Documentation - Roblox Creator Hub

@return_end1‘s response is one way to go about this, but you I think you could also get away with changing Camera.CFrame to gun.CFrame with maybe a little offset. On top of that, you can use TweenService to smoothly transition the camera where you want.

If you still have problems let us know :slight_smile:

1 Like