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: Help Please

Previous Thread :: Next Thread 
FoggedOut is not online. FoggedOut
Joined: 09 Dec 2011
Total Posts: 3021
06 Aug 2013 07:31 PM
(NOTE: THIS IS FOR A PLUGIN!)

I want it so that #50, in the Table that I will show u, will create a sound. Like... um.. Here, I'll show you:


local a = 1
soundProvider = game:findFirstChild("Soundscape") or game:findFirstChild("SoundService")
local funnysound2 = Instance.new("StockSound",soundProvider)
funnysound2.Name = "Yum"
funnysound2.SoundId = "http://www.roblox.com/asset/?id=12544690"
funnysound2.Volume = 0.5
funnysound2.Pitch = 1
local myArray = {"1 - 49 NUMBERS LATER...","Pretend I'm the 50th"}

repeat
print(myArray[math.random(1,50)])
a = a + 0.00001
wait(35)
until a == 26
if print(myArray[5]) then <--HERE I DONT GET
soundProvider.Yum:Play()


As you can see, it will repeat prints until.. well, forever at that speed. Anyways, I want it so that when it chooses #50 for the print for that 35seconds, it will make a sound.
Report Abuse
FoggedOut is not online. FoggedOut
Joined: 09 Dec 2011
Total Posts: 3021
06 Aug 2013 07:41 PM
Bump
Report Abuse
FoggedOut is not online. FoggedOut
Joined: 09 Dec 2011
Total Posts: 3021
06 Aug 2013 07:50 PM
Bump2 qq
Report Abuse
FoggedOut is not online. FoggedOut
Joined: 09 Dec 2011
Total Posts: 3021
06 Aug 2013 07:53 PM
Bump3 qqx2
Report Abuse
FoggedOut is not online. FoggedOut
Joined: 09 Dec 2011
Total Posts: 3021
06 Aug 2013 07:58 PM
Bump4 Plz help
Report Abuse
FoggedOut is not online. FoggedOut
Joined: 09 Dec 2011
Total Posts: 3021
06 Aug 2013 08:01 PM
qq y u no help qq
Report Abuse
FoggedOut is not online. FoggedOut
Joined: 09 Dec 2011
Total Posts: 3021
06 Aug 2013 08:03 PM
qq
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