I know this might sound silly, since it's such a simple script. But I was trying to create "Toggle Radio" like After the Flash, and I thought this code would work, but it doesn't stop the sound or show any errors in the Developer Console. Here's my code:
local Sound1 = script.Parent.TimeAndTimeAgain -- References the sound
script.Parent.MouseButton1Down:Connect(function() -- Detects when clicked, if so commences these events
if Sound1.Playing == false then -- If the sound isn't playing, it plays the sound
Sound1:Play()
else
Sound1:Stop() -- If the sound is playing, it stops the sound
end
end)
Thanks!

5 comments
Try if Sound1.IsPlaying == false then
Doesn't work
either your asset ID is invalid or your sound isn't called 'TimeAndTimeAgain' because there's no problems with the code, an invalid AssetID is most likely the problem.
Nope, the asset ID isn't invalid and it isn't showing errors. The sound is named TimeAndTimeAgain. It's in the script
script's parent.