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 » Club Houses » Clans & Guilds
Home Search
 

Re: how to play an audio then as soon as its done, play another

Previous Thread :: Next Thread 
BIoodborne is not online. BIoodborne
Joined: 02 May 2015
Total Posts: 8791
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 is not online. 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 is not online. 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 is not online. 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
BIoodborne is not online. BIoodborne
Joined: 02 May 2015
Total Posts: 8791
24 Mar 2016 10:53 PM
i could do that but im confident theres a better way
Report Abuse
pwnd64 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Club Houses » Clans & Guilds
   
 
   
  • 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