025110
|
  |
| Joined: 23 Nov 2012 |
| Total Posts: 57661 |
|
|
| 18 Dec 2014 04:16 PM |
while true do x = math.random(1,3) if x == 1 then script.Parent.Track1:Play() wait(3) elseif x == 2 then script.Parent.Track2:Play() elseif x == 3 then script.Parent.Track3:Play() end end
issue is that the chances are that it will be playing 5000 of each song at once |
|
|
| Report Abuse |
|
|
Ruinable
|
  |
| Joined: 14 Sep 2014 |
| Total Posts: 8903 |
|
|
| 18 Dec 2014 04:17 PM |
what
Mr. Mustachio | ( ͡°╭͜ʖ╮͡° ) |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 18 Dec 2014 04:19 PM |
probably wouldnt fix anything but you could do this
x = math.random(1, 3) y = math.random(1, 3) z = math.random(1, 3) if x == 1 and y == 1 and z == 1 then |
|
|
| Report Abuse |
|
|
025110
|
  |
| Joined: 23 Nov 2012 |
| Total Posts: 57661 |
|
|
| 18 Dec 2014 04:22 PM |
@chim
I only want 1 audio playing at a time |
|
|
| Report Abuse |
|
|
parkiet3
|
  |
| Joined: 16 Jul 2011 |
| Total Posts: 832 |
|
|
| 18 Dec 2014 04:24 PM |
--place the tracks inside the script
script:GetChildren()[math.random(1,#GetChildren())]:Play() |
|
|
| Report Abuse |
|
|