Disabling player's camera control using CameraType

I saw people recommend to change the CameraType to Scriptable to disable the players control over it, got any idea what I’m doing wrong here?


local player = game:GetService("Players").LocalPlayer
local camera = workspace.CurrentCamera

print(camera.CameraType)
camera.CameraType = Enum.CameraType.Scriptable
print(camera.CameraType)
1 Like

There’s nothing wrong with your script, is there another script that change the CameraType value?

There isn’t, also im putting the script in StaterPlayerScript, does that change anything?

Yes it does, put the script inside the StarterCharacterScripts folder.
https://create.roblox.com/docs/reference/engine/classes/StarterCharacterScripts
https://create.roblox.com/docs/reference/engine/classes/StarterPlayerScripts

1 Like

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