So for some reason when you press a button the camera DOES go into first person. So I made it when you die it goes back into third person mode, but it doesn't work?
local deploy = script.Parent
local pgui = gui.Parent
local player = pgui.Parent
deploy.MouseButton1Down:connect(function()
player.CameraMode = Enum.CameraMode.LockFirstPerson
end
end)
function Death()
if game.Players.LocalPlayer:FindFirstChild("Humanoid").Health <= 0 then
player.CameraMode = Enum.CameraMode.Classic
end
end
So you see that the deploy button does work when you press the camera but when you have < or = to 0 health then it doesn't work?

2 comments
This is obviously not the whole script. If you could show us the whole script that would be awesome. Or at least where you define your variables and call your functions.
You don't have "Death" connected to any event... Also, the Humanoid isn't a part of the player. It's a part of the character