So, what I want to do is to remove the oof sound when the player dies. But when I run this script, the output says "Died is not a part of head" or something along that line.
1 | game.Players.PlayerAdded:connect( function (player) |
2 | player.CharacterAdded:connect( function (character) |
3 | wait( 1 ) |
4 | character.Head.Died:Remove() |
5 | end ) |
6 | end ) |
Put this in StarterCharacterScripts
:
1 | local OOF = script.Parent:WaitForChild( "HumanoidRootPart" ):WaitForChild( "Died" ) |
2 | OOF.Volume = 0 |
( this was edited )