How to make players not be able to move their camera

so i am a new dev and i could not figure out how to do this, if you know how that would be great!

You could change the CameraType to Fixed for example.

and how do i do that?(idk how i know im a noob)

Put this in a LocalScript

local camera = workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Fixed

i did that but it did not work, where does the local script need to be?

The LocalScript must be in StarterGui for example.

Put the local script inside of starterpack or startercharacter scripts and do.

local camera = workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Fixed
if you’d like it to be fixed ona position do
camera.CFrame = fixed position u wamt