So I made a script where you can move your mouse when your in first person, and it works. But when your character dies, it stops working for no reason. How can I fix this?
btw here is the script (LocalScript in StarterPlayerScripts):
local plrGui = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui", plrGui)
local txtButton = Instance.new("TextButton")
txtButton.BackgroundTransparency = 1
txtButton.Size = UDim2.new(0, 0, 0, 0)
txtButton.Modal = true
txtButton.Parent = screenGui