reddanger
|
  |
| Joined: 27 May 2009 |
| Total Posts: 38075 |
|
|
| 28 Nov 2014 06:12 PM |
function onTouched(part) local h = part.Parent.findFirstChild("Humanoid") if h then script.Freezing:play() end
This should be working as I read a Wiki and did everything it said but the sound isn't working at all, could someone help? Also, what would a script look like if I were to automatically insert sounds into a player and have them play once they touched a certain part? |
|
|
| Report Abuse |
|
|
reddanger
|
  |
| Joined: 27 May 2009 |
| Total Posts: 38075 |
|
| |
|
reddanger
|
  |
| Joined: 27 May 2009 |
| Total Posts: 38075 |
|
| |
|
|
| 28 Nov 2014 07:19 PM |
Connect the function.
function Touched(Hit) --Do stuff end
Part.Touched:connect(Touched) --Make sure you change "Part" to wherever the part is. |
|
|
| Report Abuse |
|
|
reddanger
|
  |
| Joined: 27 May 2009 |
| Total Posts: 38075 |
|
| |
|
reddanger
|
  |
| Joined: 27 May 2009 |
| Total Posts: 38075 |
|
|
| 28 Nov 2014 07:48 PM |
| Never mind, I found a music playing script and edited it a bit to work for mine. |
|
|
| Report Abuse |
|
|