I have a play button and whenever I click it I make it so that the characters camera goes into first person. However whenever they die they are stuck in first person and cannot move there mouse. How could I possibly fix this issue?
local Teleports = workspace.Teleports:GetChildren()
local button = script.Parent.MainButtons.PlayText
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local function OnButtonClicked()
local RandomSpawn = Teleports[math.random(1, #Teleports)]
game.Workspace.Click:Play()
local Character = player.Character
local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
HumanoidRootPart.CFrame = CFrame.new(RandomSpawn.Position) + Vector3.new(0,10,0)
script.Parent.Parent.Ammo.Enabled = true
script.Parent.Parent.CH.Enabled = true
script.Parent.Parent.Inventory.Enabled = true
script.Parent.Parent.MainScreen.Enabled = false
script.Parent.Camera.Disabled = true
script.Parent.FirstPerson.Disabled = true
script.Parent.ClassicCamera.Disabled = false
end
button.MouseButton1Click:Connect(OnButtonClicked)