|
| 24 Mar 2016 10:46 PM |
i had to split a fort intro ambient into two because of the 2 minute limit for uploading audio, so im looking for a script that plays one audio, and the next as SOON as it ends as if there is no break between them.
im looking in the free models for one and there's just a bunch that are like
wait(0.1) play music 1 then wait(time first track is) play music 2
which is rly dumb and inefficient imo, so if there is a better way can anyone help a nig out? |
|
|
| Report Abuse |
|
|
sly_marbo
|
  |
| Joined: 07 Jul 2009 |
| Total Posts: 18876 |
|
|
| 24 Mar 2016 10:48 PM |
its probably possible to make a script that recognizes when the audio stops and can begin the next song then pretty much continuously loop it like that
idk ill look into it |
|
|
| Report Abuse |
|
|
BuIky
|
  |
| Joined: 25 Apr 2015 |
| Total Posts: 4567 |
|
|
| 24 Mar 2016 10:49 PM |
gam e.game:FindFirstDude("ChjiLd").Workspace:AudiO("19231"),("128381294")
|
|
|
| Report Abuse |
|
|
Naquadria
|
  |
| Joined: 03 Nov 2010 |
| Total Posts: 11936 |
|
|
| 24 Mar 2016 10:50 PM |
| find out how long the audio is then do a wait(n) then play the next |
|
|
| Report Abuse |
|
|
|
| 24 Mar 2016 10:53 PM |
| i could do that but im confident theres a better way |
|
|
| Report Abuse |
|
|
pwnd64
|
  |
| Joined: 31 May 2011 |
| Total Posts: 620 |
|
|
| 24 Mar 2016 10:55 PM |
something like
Audio1:Play()
repeat wait() until
Audio1.IsPlaying == false
Audio2:Play()
you pizzad when you should have pied |
|
|
| Report Abuse |
|
|
Naquadria
|
  |
| Joined: 03 Nov 2010 |
| Total Posts: 11936 |
|
|
| 24 Mar 2016 10:57 PM |
if you want it to be efficient then do
audio = {360014588,360014010} soundInstance = script.Parent:WaitForChild("music") soundInstance.Ended:connect(function() soundInstance.SoundId = "http://www.roblox.com/asset?id=" .. audio[math.random(1, #audio)] soundInstance:Play() print(tostring(soundInstance.SoundId)) end)
the function does exist but I have not tested it. |
|
|
| Report Abuse |
|
|