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 » Scripters
Home Search
 

Re: Random Sound Pitch

Previous Thread :: Next Thread 
preztonizer is not online. preztonizer
Joined: 22 Oct 2008
Total Posts: 375
28 Dec 2015 01:39 AM
x = math.random(0.6,1.2)
sound.Pitch = x

I know this doesn't work. Just gets 1 every time...
Halp?
Report Abuse
indeimaus is not online. indeimaus
Joined: 01 Sep 2014
Total Posts: 4285
28 Dec 2015 01:42 AM
it might need something to base it off of
Report Abuse
preztonizer is not online. preztonizer
Joined: 22 Oct 2008
Total Posts: 375
28 Dec 2015 01:50 AM
https://www.youtube.com/watch?v=Xrne2-gOoqU
tried printing x. Just says 1.
Report Abuse
DiamondBladee is not online. DiamondBladee
Joined: 24 Feb 2013
Total Posts: 3527
28 Dec 2015 01:51 AM
math.random(6,12)/10

random is whole numbers only
Report Abuse
iiEpikAlt1 is not online. iiEpikAlt1
Joined: 19 May 2015
Total Posts: 2155
28 Dec 2015 02:40 AM
pitches = {1,6,4,2,.1,.6,.19}
sound.Pitch = pitches[math.random(1,#pitches)]
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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