death = game.Players.LocalPlayer.Character.Humanoid.Died:connect(function() script.Parent.Frame.Visible = true script.Parent.Sound:Play() end)
I have this in a local script, and it works fine. Just not in the actual game.
Try this
plr = game.Players.LocalPlayer plr.Character.Humanoid.Died:connect(function() script.Parent.Frame.Visible = true script.Parent.Sound:Play() end)
Also are there any error messages in the dev console?