Sound doesn't play for some reason?

I don’t know why, but for some reason, the sound doesn’t play.
Sound properties:
image

Script inside the part (IDK but I think its the script):

script.Parent.Triggered:Connect(function(plr)
	script.Parent.Parent.robux_pickup:Play()
	plr:WaitForChild("moneyAmount").Value += 5
	script.Parent.Parent:Destroy()
	print("gave money")
end)
1 Like

You destroy the part the sound is parented to, meaning it destroys the sound as well and prevents it from playing

You can either wait for the sound to finish playing and then destroy or parent the sound to something that can play the sound globally (Such as in the workspace service, in a folder in workspace, etc)

I forgot PlayOnRemove exists, my bad!

Whoops, could’ve used PlayOnRemove, thanks anyways! I fixed it.

2 Likes