Vid_eo
|
  |
| Joined: 30 Jul 2013 |
| Total Posts: 2580 |
|
|
| 05 May 2017 10:29 PM |
It only repeats once.
math.randomseed(tick()) local Songs = script.Parent:WaitForChild("themeSongs"):GetChildren()
function RandomSong() Picked = Songs[math.random(1, #Songs)] Picked:Play() end RandomSong()
Picked.Ended:connect(function() print("repeating!") RandomSong() end)
I suspect it has to do with "RandomSong()" at line 8. |
|
|
| Report Abuse |
|
|
Vid_eo
|
  |
| Joined: 30 Jul 2013 |
| Total Posts: 2580 |
|
| |
|
samy22
|
  |
| Joined: 28 Sep 2008 |
| Total Posts: 2181 |
|
|
| 05 May 2017 10:35 PM |
| Put the second function inside the first |
|
|
| Report Abuse |
|
|
samy22
|
  |
| Joined: 28 Sep 2008 |
| Total Posts: 2181 |
|
| |
|