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
|
  |
| Joined: 09 Dec 2011 |
| Total Posts: 3021 |
|
| |
|
FoggedOut
|
  |
| Joined: 09 Dec 2011 |
| Total Posts: 3021 |
|
| |
|
FoggedOut
|
  |
| Joined: 09 Dec 2011 |
| Total Posts: 3021 |
|
| |
|
FoggedOut
|
  |
| Joined: 09 Dec 2011 |
| Total Posts: 3021 |
|
| |
|
FoggedOut
|
  |
| Joined: 09 Dec 2011 |
| Total Posts: 3021 |
|
| |
|
FoggedOut
|
  |
| Joined: 09 Dec 2011 |
| Total Posts: 3021 |
|
| |
|