Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Camera Focus doens't work while first person?

Asked by 6 years ago

Hello, So, I tried everything, but CurrentCamera.Focus doesn't work at all while you're in first person? Just try and zoom in to First Person, and run the script, what's the result? nothing. Here is an example:

game.Workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable -- You could use Fixed, but you might still want to move the camera.
game:GetService("RunService").RenderStepped:connect(function()
    game.Workspace.CurrentCamera.CoordinateFrame = CFrame.new(10,50,30) -- You can use a variable if, for example, you want to zoom in or out.
3
    game.Workspace.CurrentCamera.Focus = CFrame.new(0,10,0)
end)

If you have any Idea on how to fix Camera Focus in First person mode, I appreciate your help.

0
i would also include the focus in the CFrame ie CFrame.new(Vector3.new(10, 50, 30), Vector3.new(0, 10, 0)). Also use CFrame not CoordinateFrame as it is deprecated. User#5423 17 — 6y
0
Doesn't work either Sebti23Drives 22 — 6y

Answer this question