How do I unlock first person when the player dies?
I have made a script where once the player clicks "Play" on the menu, it makes the menu disappear and locks him in first person (Like in Phantom Forces, kind of.) The only problem I have with this script is that when the player dies, he is still locked into first person and is unable to click any of the buttons. Here is my script so far:
01 | script.Parent.MouseButton 1 Down:connect( function () |
05 | bin.Parent.Visible = false |
07 | bin.MouseButton 1 Down:connect(Clicked) |
08 | game.Players.LocalPlayer.CameraMaxZoomDistance = . 5 |
13 | bin.Parent.Visible = false |
15 | bin.MouseButton 1 Down:connect(Clicked) |
I want it so that when the player dies, he will be unlocked from first person to freely move around the menu.