I want there to be a deathscreen when the player dies and it works fine in studio but does not show up in the actual game.
game.Players.LocalPlayer.Character:WaitForChild("Humanoid").Died:Connect(function() script.Parent.Visible = true end)