Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i make a good working sound play hotkey?

Asked by 4 years ago
Edited 4 years ago

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

Log in to vote
0
Answered by 4 years ago

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.

0
Any help is appreciated, Thanks! finnyboy88 0 — 4y
Ad

Answer this question