Hey, I don't really see this question brought up commonly so I'm just bringing this up. Thanks if anyone can answer!
local Character = script.Parent local player = Character.Parent local Humanoid = Character:WaitForChild("Humanoid") local sound = script.Parent:WaitForChild("Your sound name here”) -- Sound must be parented to StarterCharacterScripts sound.Parent = script.Parent:WaitForChild("HumanoidRootPart") --// Function Humanoid.Died:Connect(function() -- only when player dies sound:Play() wait(1) end)
Make sure you replace the ‘your sound name here’ with the sound name you want to play and make sure the sound name is one string like: DeathSound well you can still rename the sound
But I don’t know how to make a audio.
Put a plain script into StarterCharacterScripts