Camera stuck in first person

Hello! I know the title of this is off putting but I’m struggling with making my script change the player not have first person anymore so the mouse can move around the screen.

script i have:
script.Parent.Triggered:Connect(function()

game.StarterPlayer.CameraMode = Enum.CameraMode.Classic

end)

Be sure that your script is LocalScript. LocalScripts doesn’t work in workspace. Also I have script here, which should working.
This is LocalScript in StarterPlayerScripts.
I hope this helps!

local prompt = workspace.Part.ProximityPrompt -- your proximityprompt
local plr = game.Players.LocalPlayer 

prompt.Triggered:Connect(function()
	plr.CameraMode = Enum.CameraMode.Classic
end)

It didn’t work for some reason.

local prompt = workspace[“Old PC”].monitor02.View – your proximityprompt

local plr = game.Players.LocalPlayer

prompt.Triggered:Connect(function()

plr.CameraMode = Enum.CameraMode.Classic

end)

Did you tried to zoom out player’s camera to 3rd person?

Yes but it didn’t let me move my mouse again.

It’s a bit weird, because it works for me. Maybe try use UserInputService to make mouse move.

local UserInputService = game:GetService("UserInputService")

local prompt = workspace["Old PC"].monitor02.View -- your proximityprompt

local plr = game.Players.LocalPlayer

prompt.Triggered:Connect(function()

	plr.CameraMode = Enum.CameraMode.Classic
	UserInputService.MouseBehavior = Enum.MouseBehavior.Default

end)

robloxapp-20220604-1105481.wmv (1.3 MB)
Not sure what I’m doing wrong because it still doesn’t want to work.

Maybe this will work?

local prompt = workspace.Part.ProximityPrompt -- your proximityprompt

local Player = game.Players.LocalPlayer

prompt.Triggered:Connect(function()
	if Player.CameraMode == Enum.CameraMode.LockFirstPerson then
		Player.CameraMode = Enum.CameraMode.Classic
	end
end)

Try check, that player’s camera mode is LockFirstPerson. Honestly, I don’t know why it didn’t work for you.

You sure it is meant to be a local script or that I put it in the right place?

Yes, I’m sure. This script should be LocalScript in StarterPlayerScripts(you can get Local player only in LocalScript). Maybe try move script to StarterGui?

It’s still very much broken but no errors. It doesn’t let me zoom out or anything.