Barrel Stop Sound

hi there i seek some help here :smiley:

i got this script with a green Barrel That Emit The Sound Ravebreak.mp3
but when i delete The Barrel The Sound Dosnt Stop So emh
How Do i do So That When i Delete The Barrel Then It Stop the Song

function RaveBarrel( ply )
barrel=ents.Create(“prop_physics”)
barrel:SetModel(“models/props_c17/oildrum001.mdl”)
barrel:SetPos(ply:GetEyeTrace().HitPos)
barrel:Spawn()
barrel:EmitSound(“Ravebreak.mp3”,100,100)
barrel:SetColor(0, 255, 0, 255)
end
concommand.Add(“Barrel”, RaveBarrel)

G.CreateSound is what you’re looking for.

This is also what you should be looking for :smile: