How can I change cameratype after death

I was preparing a game starter gui and then I saw that the camera was scriptable again after I died, how can I fix this

1 Like

If you wanna reset the CameraType after respawning, try setting the CameraType back to Custom when your character gets added.

Example:

-- Local Script
local Player = game.Players.LocalPlayer
local function characterAdded(character)
	workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
end

if Player.Character then
	characterAdded(Player.Character)
end
Player.CharacterAdded:Connect(characterAdded)
1 Like