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 » Game Creation and Development » Scripting Helpers
Home Search
 

How do I find the length of an Audio?

Previous Thread :: Next Thread 
L0cky2013 is not online. L0cky2013
Joined: 30 Jul 2012
Total Posts: 1446
09 May 2014 06:41 PM
eh
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
09 May 2014 06:43 PM
before = tick()
audio:Play()
repeat wait() until audio.IsPlaying == false
after = tick()
time = (after - before)

print(time)
Report Abuse
L0cky2013 is not online. L0cky2013
Joined: 30 Jul 2012
Total Posts: 1446
09 May 2014 06:45 PM
isPlaying doesn't seem to change when the song is done
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
09 May 2014 06:46 PM
Or...

before = tick()
audio:Play()
(audio.IsPlaying = false):wait()
after = tick()
time = (after - before)

print(time)
Report Abuse
L0cky2013 is not online. L0cky2013
Joined: 30 Jul 2012
Total Posts: 1446
09 May 2014 06:47 PM
How do you plan on using isPlaying if it doesn't change?
Report Abuse
Durfungus is not online. Durfungus
Joined: 07 Feb 2009
Total Posts: 15988
09 May 2014 06:56 PM
it does change just not while u have it selected

[HELP, DURFUNGUS IS SPREADING] Twitter - @Durfungus
Report Abuse
L0cky2013 is not online. L0cky2013
Joined: 30 Jul 2012
Total Posts: 1446
09 May 2014 07:05 PM
No, when a song is done it doesn't change.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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