|
| 03 Jun 2014 10:35 AM |
I don't know what to do because I made an invisible block that is supposed to make sound. Here's the script
function onTouched(hit) script.Parent.Screech:Play() end script.Parent.Touched:connect(onTouched)
Does this script make it so I have to click it to make the sound? x3 |
|
|
| Report Abuse |
|
|
|
| 03 Jun 2014 10:36 AM |
| no, you step on it, and itll play the sound |
|
|
| Report Abuse |
|
|
|
| 03 Jun 2014 10:39 AM |
| It's on a local script and yeah. The pressure plate is in workspace, the script to activate the pressure plate is in the pressure plate. The sound is also in workspace is that correct? |
|
|
| Report Abuse |
|
|
|
| 03 Jun 2014 10:42 AM |
If you want to play it only one time, then I recommend you to add a debounce here, since you have 5 body parts that may simultaneously touch it and may trigger the function 5 times.
http://wiki.roblox.com/index.php?title=Debounce |
|
|
| Report Abuse |
|
|
|
| 03 Jun 2014 10:44 AM |
not a localscript, regular put the sound into the part |
|
|
| Report Abuse |
|
|