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: Sound Error

Previous Thread :: Next Thread 
HeadlessTheo is not online. HeadlessTheo
Joined: 24 Dec 2012
Total Posts: 206
04 Nov 2017 06:01 PM
How to define when the song will end without adding wait() < time that the song ends example 213 seconds for despacito and then another song is 10 seconds but I don't want to enter it all manually.

So I'm thinking
song:ended()
wait(1)
next song?

Please help thank you!

sound.SoundId = "rbxassetid://880612615"
musicgui.Text = "Despacito"
wait(2)


Report Abuse
HeadlessTheo is not online. HeadlessTheo
Joined: 24 Dec 2012
Total Posts: 206
04 Nov 2017 06:02 PM
bump


Report Abuse
HeadlessTheo is not online. HeadlessTheo
Joined: 24 Dec 2012
Total Posts: 206
04 Nov 2017 06:03 PM
bump1


Report Abuse
Santeeisweird9 is not online. Santeeisweird9
Joined: 15 Jan 2015
Total Posts: 735
05 Nov 2017 12:57 AM
if song:Ended() then
song2:Play()
end
Report Abuse
soutenu is online. soutenu
Joined: 09 Dec 2011
Total Posts: 1021
05 Nov 2017 01:31 AM
@OP

sound:Play();
wait(sound.TimeLength);
print'the sound has finished playing';
Report Abuse
Lightning_Dev is not online. Lightning_Dev
Joined: 24 Feb 2016
Total Posts: 380
05 Nov 2017 01:42 AM
A wilf runaredie appears and gets hashtagged on his 4th word.

11:44 PM
Report Abuse
runaredie is not online. runaredie
Joined: 13 Aug 2015
Total Posts: 30
05 Nov 2017 01:44 AM
I go on ####### and search you up and then all i see is meeting headlesstheo and kids screaming in there mic saying "omg omg omg"
Report Abuse
Little_RichKid is not online. Little_RichKid
Joined: 09 Apr 2017
Total Posts: 406
05 Nov 2017 01:50 AM
For a music system. while true do ######################### ? with number of songs if math.random=1 do Find the sound:Play() wait(Find the sound.TimeLength) Find the sound:Stop() end
Report Abuse
bowypenguino is online. bowypenguino
Joined: 18 Sep 2011
Total Posts: 500
05 Nov 2017 01:54 AM
Sound.Ended:Connect(function()
--Fires whenever the song ends
end)

SongLength = Sound.TimeLength
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