How can I make a sound play when an item is clicked?

How can I make a sound play when an item is clicked? - Retro turntable playing vinyl disc in living room

I'm trying to make a Flappy Bird minigame using the plugin Create Your Own Menus, otherwise known as CYOM.

To play, you click a feather and it goes into another menu showing that it went forward, and so on.

I need it so when the user clicks the feather, it plays a sound.

I've used the command:

/playsound entity.experience_orb.pickup master @p

And I used the plugin to implement that command into the feather, so when clicked, the sound plays. Problem is, an error message shows:

Server: Player ThePinoyPlayer is too far away to hear the sound






Pictures about "How can I make a sound play when an item is clicked?"

How can I make a sound play when an item is clicked? - Multicolored Mixing Console
How can I make a sound play when an item is clicked? - Young woman watching movie in headphones in messy room
How can I make a sound play when an item is clicked? - Grayscale Photography of Person Playing Turntable



How do you play a sound when a button is clicked HTML?

\u201chow to play audio onclick in html\u201d Code Answer's
  • var audio = new Audio("soundfile.wav");
  • \u200b
  • document. onclick = function() {
  • audio. play();
  • }


  • How do you make a button press sound?

    An easy way to embed audio on a website is by using a sound hosting site, such as SoundCloud or Mixcloud. All you need to do is upload the file and receive an HTML embed code. Then copy and paste the embed code into the web page's code or WYSIWYG site editor. This works for most CMS platforms and website builders.

    How do I add a click sound to my website?

    \u201chow to trigger audio samples in javascript\u201d Code Answer's
  • //play audio with from html audio element:
  • document. getElementById('myAudioTagID'). play();
  • \u200b
  • //play audio with out html audio tag.
  • var myAudio = new Audio('my_great_song.mp3');
  • myAudio. play();




  • How to make a sound play when clicked on a part | Roblox Studio Tutorial




    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Matthias Groeneveld, Lukas, Andrea Piacquadio, Aleksandr Neplokhov