Moving Camera in first person

hey everyone, today I saw my friend has added a cool camera feature to his weapons, Im trying to fingure out what this is so I can try it out. Any ways on how I can do this or what he used?

https://gyazo.com/8c017baafb0eed482c9897bf6a32b78d

Thanks

Hey NinjazBeast!

This effect can be accomplished by tweening the camera, it doesn’t matter if it’s first person.
However, one thing to think about is if you want the player to be able to also control their camera while this animation plays.

local TweenService = game:GetService("TweenService")
local Camera = workspace.CurrentCamera
Camera.CameraType = Enum.CameraType.Scriptable -- Note that the player won't be able to move their camera while this is going on.

local Tween = TweenService:Create(Camera, TweenInfo.new(1), {CFrame = Camera.CFrame * CFrame.Angles(math.rad(0), math.rad(45), math.rad(0))})
Tween:Play()

wait(1)
Camera.CameraType = Enum.CameraType.Custom -- Allows the player to move on their own again.
1 Like