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
1 | plr = game.Players.LocalPlayer |
2 | plr.Character.Humanoid.Died:connect( function () |
3 | script.Parent.Frame.Visible = true |
4 | script.Parent.Sound:Play() |
5 | end ) |
Also are there any error messages in the dev console?