generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Sound Script - Pitch (Help!)

Previous Thread :: Next Thread 
xXStealthsniper200Xx is not online. xXStealthsniper200Xx
Joined: 30 Nov 2011
Total Posts: 2037
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
xxDARKSTERxx is not online. xxDARKSTERxx
Joined: 02 Nov 2010
Total Posts: 2358
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
xXStealthsniper200Xx is not online. xXStealthsniper200Xx
Joined: 30 Nov 2011
Total Posts: 2037
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
NinjamanJosh is not online. NinjamanJosh
Joined: 13 Jan 2010
Total Posts: 445
01 Jan 2012 04:00 PM
Play()
not play()
Strict.

~NMJ~
Report Abuse
Fl0x is not online. 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
NinjamanJosh is not online. NinjamanJosh
Joined: 13 Jan 2010
Total Posts: 445
01 Jan 2012 04:05 PM
Ah.
Well I have no idea what the problem is.

~NMJ~
Report Abuse
xXStealthsniper200Xx is not online. xXStealthsniper200Xx
Joined: 30 Nov 2011
Total Posts: 2037
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
NinjamanJosh is not online. NinjamanJosh
Joined: 13 Jan 2010
Total Posts: 445
01 Jan 2012 04:07 PM
You probably just cant notice the sound change.
Report Abuse
xXStealthsniper200Xx is not online. xXStealthsniper200Xx
Joined: 30 Nov 2011
Total Posts: 2037
01 Jan 2012 04:51 PM
When I touch it I look at the value, it doesn't change.
Report Abuse
NinjamanJosh is not online. NinjamanJosh
Joined: 13 Jan 2010
Total Posts: 445
01 Jan 2012 05:05 PM
Oh. :\
Report Abuse
NinjamanJosh is not online. NinjamanJosh
Joined: 13 Jan 2010
Total Posts: 445
01 Jan 2012 05:06 PM
get rid of the
'hit' in ontouched(hit)
Report Abuse
xXStealthsniper200Xx is not online. xXStealthsniper200Xx
Joined: 30 Nov 2011
Total Posts: 2037
01 Jan 2012 05:17 PM
...That's it? Then what the it will work?
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
01 Jan 2012 05:18 PM
Removing "hit" won't change anything.
Report Abuse
xXStealthsniper200Xx is not online. xXStealthsniper200Xx
Joined: 30 Nov 2011
Total Posts: 2037
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image