Camera is tilted in-game

  1. What do you want to achieve? lock the camera into this position

  2. What is the issue? when i test, the camera is tilted and zoomed out

  3. What solutions have you tried so far? i checked devforum and creator hub, and tried using CFrame.lookAt

this is the code, its a local script in startercharacterscripts

local Camera = workspace.CurrentCamera

local CameraCFrame = CFrame.new(-183.395, -213.097, 68.222) * CFrame.Angles(
math.rad(-5.996),
math.rad(86.934),
-0
)

repeat
	Camera.CameraType = Enum.CameraType.Scriptable
	Camera.CFrame = CameraCFrame
	task.wait(1)
until Camera.CameraType == Enum.CameraType.Scriptable

why is the view different? is there a setting for this or is it something with the script?

It is the script i think, tell me if this works for you:

local Camera = workspace.CurrentCamera

local CameraCFrame = CFrame.new(0,0,0) * CFrame.Angles(
0, -- Replaced "math.rad(-5.996)" with 0
math.rad(86.934),
0
)

repeat
	Camera.CameraType = Enum.CameraType.Scriptable
	Camera.CFrame = CameraCFrame
	task.wait(1)
until Camera.CameraType == Enum.CameraType.Scriptable
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.