How to make a sound play when a gui button is clicked

I feel really dumb writing this as a scripter with 3 years of experience, but how do you make a sound play when a gui button is pressed?
here is my current code
image
and here are the properties of the sound

3 Likes

Are you sure the sound itself works? I don’t see why your script wouldn’t work.

yea the script looks fine to me, maybe make a new sound instance and test again.

I hope that the button is an actual button though.

I believe more context would be needed for a proper diagnosis.
Console information and a picture of the explorer would help.
As for my suggestion, check that the preview of the sound plays, and add a print within the function. If either doesn’t work the issue will be clear.

I forgot to parent the sound to the workspace…

1 Like