How can I make a sound play when an item is clicked?
//ads -- adsterra.com -- native banner
?>
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 do you play a sound when a button is clicked HTML?
\u201chow to play audio onclick in html\u201d Code Answer'sHow 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'sHow 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
