I have been trying to make this sound play on death. I have tried everything with my meager knowledge of scripting and come up short. Does anyone have any ideas? The code block is the on death function, but i cannot understand anything related to sound. Anyone mind helping me add the play sound function?
game:GetService('Players').PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
character:WaitForChild("Humanoid").Died:connect(function()
print(player.Name .. " has died!")
end)
end)
end)

3 comments
Alright I am going to try this
You need a medal trytoeatme
Thanks! Glad it worked, happy to help you.