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 » Scripters
Home Search
 

Re: How to make music play for certain amount of time?

Previous Thread :: Next Thread 
hair2cool4u is not online. hair2cool4u
Joined: 15 Dec 2011
Total Posts: 31
24 Dec 2014 07:46 PM
When you enter the game, it automatically plays for a certain amount of seconds, then stops.

For example, I'm creating an entrance scene, and I only want the music to play for 30 seconds, which is how long the entrance is.
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
24 Dec 2014 07:47 PM
Try these when you make it.

wait
Sound.Play
Sound.Stop
Report Abuse
hair2cool4u is not online. hair2cool4u
Joined: 15 Dec 2011
Total Posts: 31
24 Dec 2014 07:48 PM
I've already made the entrance, all I need is the sound to play for 30 seconds when you enter.
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
24 Dec 2014 07:50 PM
http://wiki.roblox.com/index.php?title=Function_dump/Functions_specific_to_ROBLOX#Wait
http://wiki.roblox.com/index.php?title=API:Class/Sound/Stop
http://wiki.roblox.com/index.php?title=API:Class/Sound/Play
http://wiki.roblox.com/index.php?title=API:Class/Sound/Pause


That is literally all you need.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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