I want my character first person POV to follow the mouse.
like this but in first person:
I’m having problems locking the camera in first person so it just breaks.
I have searched for solutions but I haven’t found anything.
This is the code for the third person that is in the clip:
local Mouse = Player:GetMouse().Hit.Position
local CharacterPosition = Player.Character.HumanoidRootPart.Position
local ChartoMouse = (Mouse - CharacterPosition).unit * math.clamp( (Mouse - CharacterPosition).Magnitude , 0, 2)
local Lookat = CharacterPosition:Lerp(CharacterPosition+ChartoMouse,0.75)
Camera.CFrame = Camera.CFrame:Lerp(CFrame.new(CharacterPosition + Vector3.new(0, 2, 15),Lookat),0.1)
