|
| 01 Jan 2012 03:28 PM |
function onTouched(hit) script.Parent.Sound:play() script.Parent.Sound.Pitch = 0.8 end script.Parent.Touched:connect(onTouched) ----------------------------------------------------------------------------------------- I tried it with "Pitch.new", "0.8", and it won't work. What am I doing wrong here? |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2012 03:38 PM |
You need a double precision floating point. http://wiki.roblox.com/index.php/Number
~^~xxDARKSTERxx,creator of the pyramid generator,elite licker of armpits.~^~ |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2012 03:57 PM |
They didn't help even a little bit...
I know what they all mean, I don't see what it has to do with this! |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2012 04:00 PM |
Play() not play() Strict.
~NMJ~ |
|
|
| Report Abuse |
|
|
Fl0x
|
  |
| Joined: 06 Aug 2010 |
| Total Posts: 5169 |
|
|
| 01 Jan 2012 04:01 PM |
@NinjamanJosh :play() worked for me today, as I was testing some sounds. |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2012 04:05 PM |
Ah. Well I have no idea what the problem is.
~NMJ~ |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2012 04:05 PM |
| ...The play works, it's only the pitch I want to make it change once you touch it... |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2012 04:07 PM |
| You probably just cant notice the sound change. |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2012 04:51 PM |
| When I touch it I look at the value, it doesn't change. |
|
|
| Report Abuse |
|
|
| |
|
|
| 01 Jan 2012 05:06 PM |
get rid of the 'hit' in ontouched(hit) |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2012 05:17 PM |
| ...That's it? Then what the it will work? |
|
|
| Report Abuse |
|
|
zars15
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 9999 |
|
|
| 01 Jan 2012 05:18 PM |
| Removing "hit" won't change anything. |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2012 05:36 PM |
| Figured, because I don't see a difference between "hit" and "part" for the onTouch function. This is really annoying, couldn't it be changed just like a color value? "new.Color3" or is it "Color3.new"? |
|
|
| Report Abuse |
|
|
br45entei
|
  |
| Joined: 06 Nov 2010 |
| Total Posts: 1058 |
|
|
| 01 Jan 2012 06:27 PM |
Sound.Pitch isn't a special property, just a number value property, although if you are having problems with it, you can use:
`sound.Pitch = script.Pitch.Value` |
|
|
| Report Abuse |
|
|