Why isn't my audio component setting properly?

I’m wanting an audio component to play when I click on the widget button and stop when I press it again. It will play the sound when I use Play Sound at Location, but I can’t make it stop. When I try to set my audio component, it says “Accessed None ‘SoundComponent’ from node Set Sound” after play testing in the editor. From what I can see, and from what I’ve seen on other pages, I am setting it correctly, unless it can’t be set on the fly? My IsPlayingSound bool is defaulted to false, so it should try to set the audio component. I also have SoundComponent set as an audio component reference. I’ve also tried setting the audio component on Event Construct, but that doesn’t seem to work either.

I feel dumb now. I figured out the problem which was the fact that I simply made an audio component reference inside a widget blueprint without making an audio component on my player and using that as the audio component reference.

Having the same issue as you. Could you explain what you mean by “making an audio component on my player”. I am using an audio component for a menu sound.