Random sound script not working

So what I am trying to achieve today is where when a player walks over a transparent part, a sound plays from a nearby radio. This collision between the player and the transparent part also enables a proximity prompt which is located inside the radio. Everything works successfully until I try to turn off the sound or to stop playing the sound from the radio. I’ve even tried a clickdetector but nothing seems to work.

local Aria = script.Parent.Parent.Aria
local ProximityPrompt = script.Parent

ProximityPrompt.Triggered:Connect(function(plr)
	script.Parent.Parent:Destroy()
end)

Screenshot_298

1 Like

Try running Sound:Stop() first,

2 Likes

Localscripts can’t run when parented to the workspace. Try setting the Localscript’s parent to the StarterGui

1 Like