The title sounds odd I know.
I have a camera script and I am trying to make a custom 3rd person camera script. Like the one roblox has when you enable shift lock but I am making my own because theres is a little... Well lets say limiting.
I am trying to figure out how to make the camera rotate with the mouse like in shift lock mode.
Heres my script so far.
local camera = game.Workspace.CurrentCamera
local player = game.Players.LocalPlayer
repeat
wait()
until player.Character
local character = player.Character
local player_Torso = character.Torso
camera.CameraType = Enum.CameraType.Scriptable
camera.CameraSubject = player_Torso
game:GetService("RunService").RenderStepped:connect(function()
camera.CFrame = CFrame.new(player_Torso.CFrame.X + 2, player_Torso.CFrame.Y + 2, player_Torso.CFrame.Z + 4)
camera.FieldOfView = 90
end)
Thank you for your time. :)

2 comments
I mean like, you know how ROBLOX has a shift lock mode. I wanted to lock the characteres lookvector and the cameras look vector the the mouse or center of the screen
Then you could use game.Players.LocalPlayer:GetMouse().Hit.p as the lookAt argument.