Looping sounds

I have a custom entity i made that emits a sound when you press e on it, after 6 seconds the entity does self:Remove() but the sound stays. How would i fix this?

function ENT:StartSound()

Use CreateSound() and call :Stop() on the object CreateSound() returns in ENT:OnRemove()

ill try if i need help ill ask for an example

[editline]2nd October 2015[/editline]

Yea i need an example