I Need A Script That A Sounds Play Once It Is Pressed

I need a script that play a sound once a key is pressed i don’t like the tutorial it dose not make much sense just need a script that plays once a key is pressed to for the player to either have voice dialogue or for a sound effect

Is the period on your keyboard broken? :yum:

Perhaps this thread will help you: