How do I lock my camera In place?

Hello, I need some help with the camera in workspace.

So, my camera, in workspace, I want it to be locked when someone enters the game, It’s what they see. They can’t move the camera or their Character. I’ve looked for this but I didn’t seem to find anything similar to my case.

This is the camera angle and position I want to be locked.

Feel free to help me in the replies down below

2 Likes

You can try going to StarterPlayer and switching the CameraMode property to “LockFirstPerson.”

1 Like

You could try unbinding RMB and then rebinding it again once the player leaves the gui.

1 Like

LocalScript → StarterCharacterScripts

local Camera = workspace.CurrentCamera
-- what is the full z position
local CameraCFrame = CFrame.new(-1305.053, 4.835, 166) * CFrame.Angles(
	math.rad(0.325),
	math.rad(-38.022),
	0
)

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

is this what you want?

3 Likes

What is math.rad? I don’t know if It is what i need but first i need to know what math.rad does

1 Like

math.rad turns degrees to radians

math.rad(45) -> 0.7853981633974483
math.deg(0.7853981633974483) -> 45
1 Like

It’s orientation right?
image
image

1 Like

Alright, worked pretty good, but my field of view is wayy off, how do I fix that?

1 Like

you can make the background part bigger

1 Like

Alright, I fixed the field of view thanks! This worked out great.

1 Like

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