Camera locks when standing on part

Hey everyone.
The reason why I have made this topic is because I’m wondering how the heck do I lock the players camera.
Let me bring out the specifics:
So what I’m hoping to make is a block for that, if the player is standing on it, the camera goes to a specific position, you can’t zoom out or look around, and it’s fixed on a certain angle, which would mean it can’t rotate, and if you jump or move around, it still stays where it is. BUT, I want the camera to go back to normal if you AREN’T standing on that specific part. I also want to make it so that it shows a Gui only when standing on it too, but that might be too complicated for ya’ll. I just want an example.

(all of this should be client-sided)
To lock the camera, use Enum.CameraType.Scriptable. Code: workspace.Camera.CameraType=Enum.CameraType.Scriptable
To unlock it, use Enum.CameraType.Custom.
Code: workspace.Camera.CameraType=Enum.CameraType.Custom
(my first reply in almost all forums, don’t expect it to be too good lol)

1 Like

Thank you, this helped explain a lot for me!