greykell
|
  |
| Joined: 08 Feb 2013 |
| Total Posts: 4195 |
|
|
| 19 Oct 2015 08:20 PM |
i need to make a brick, where when it is touched a sound plays. how would i do that?
~Science is okay I guess~ |
|
|
| Report Abuse |
|
|
12904
|
  |
| Joined: 29 Oct 2012 |
| Total Posts: 441 |
|
|
| 19 Oct 2015 08:35 PM |
| I think all you need to do is add a audio inside of the brick and a click detector take the audio id is the audio and you might need to link the click detector to the audio |
|
|
| Report Abuse |
|
|
|
| 19 Oct 2015 08:36 PM |
^
Do you even know what you are talking about. |
|
|
| Report Abuse |
|
|
|
| 19 Oct 2015 08:37 PM |
| WTF, would you use a ClickDetector... |
|
|
| Report Abuse |
|
|
sal212
|
  |
| Joined: 11 Apr 2010 |
| Total Posts: 2929 |
|
|
| 19 Oct 2015 08:43 PM |
Put this script in the brick, put a sound in the brick as well.
function Touch() script.Parent.SOUNDNAME:Play() end
script.Parent.Touched:connect(Touch) |
|
|
| Report Abuse |
|
|
|
| 19 Oct 2015 09:00 PM |
local Brick = script.Parent
local Music = Brick:WaitForChild("MusicNameHere")
Brick.Touched:connect(function()
Music:Play()
end) |
|
|
| Report Abuse |
|
|