For example, like in "TMM" when you die you make a dying sound. Can someone please tell me the script?
game:GetService('Players').PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) character:WaitForChild("Humanoid").Died:connect(function() --PLAY SOUND HERE end) end) end)
Something like this. Use the .Died event