I want to change the camera type for when the character dies, or when health is at 0, but return back to the normal camera view when respawned. I am trying to do that in this script, but for some reason, it's not working. Any thing I am doing wrong, or is it correct?
Player = script.Parent.Parent.Parent.Parent.Character
s = Player.Humanoid
while true do
if s.Health == 0 then
script.Parent.Visible = true
game.Workspace.Camera.CameraType = "Scriptable" --This doesn't work
wait(4)
end
if s.Health >= 0 then
script.Parent.Visible = false
game.Workspace.Camera.CameraType = "Custom" --This, also, doesn't work
end
wait()
end
