Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do i make a good working sound play hotkey?

I've been trying to make it so when you press 'e' it will play a sound. I couldn't get it working properly as i wanted, so im here to ask:

  • How do i make it so when i press the button a sound plays out of my character?
  • And is it possible to make this global for everyone to hear?

If anyone could help me with this that would be great!

1 answer

I would like to give a example:

local Sound = game.workspace.Sound
local part = game.workspace.button

button.MouseClick:Connect(function()
    Sound:Play()
end)

Basically you need to script when a player pressed "E" at that area or something like that. Just trying to help buddy.

1 comment

0

Any help is appreciated, Thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.