How can I make my camera not rotate when I press A,D?

Hello! Im trying to achieve exactly what the title says. To clarify, Ill give an example.

image|690x316

The player first looks right in front. He then moves and his camera changes the direction. I want to make him so the camera stays in front the hole time.

If i read it clear, you dont want the camera to follow the players orientation?

If thats the case, your CameraType may be on Follow. In the ingame menu, theres a Camera Mode called Follow where the camera would follow wherever direction the player is going. Same goes with Studio!

If you want to disable that for all clients, you can do this:

--local script btw

local camera = workspace.CurrentCamera

camera.CameraType = Enum.CameraType.Custom

Custom is basically a camera where you can rotate around and focus on a certain subject. Good for making a simple Spectating system!

2 Likes

Sorry for responding so late. I`ll record a video so you can understand my issue:

nani

I’ve never seen anything like that nor have i encountered this problem. It may have to do with the scripts in your game. Try looking at your local scripts that fiddles with the players camera and try to fix it.

1 Like

Enum.CameraType.Attach causes the issue
there must be a LocalScript setting it or something

1 Like

Nope, the camera is set on scriptable…