Home   Search   Register  
Help Center  > Scripting Help  > randomized music player  
 
Display using:  
Previous Thread :: Next Thread 
 Author  Thread: randomized music player
Luigi is offline. Last active: 1/31/2021 11:49:42 AM Luigi
Joined: 19 Dec 2019
Total Posts: 6
 
randomized music player
Posted: 18 Jun 2020 07:02 AM
Is there a way to do it in 2010?
Report Abuse
Luigi is offline. Last active: 1/31/2021 11:49:42 AM Luigi
Joined: 19 Dec 2019
Total Posts: 6
 
Re: randomized music player
Posted: 18 Jun 2020 19:15 PM
this post is now irrelevant
Report Abuse
155 is offline. Last active: 7/1/2020 7:27:23 PM 155
Joined: 25 Jun 2020
Total Posts: 96
 
Re: randomized music player
Posted: 28 Jun 2020 19:10 PM
why
Report Abuse
Robloeii1 is offline. Last active: 6/11/2024 1:25:32 AM Robloeii1
Joined: 12 May 2020
Total Posts: 38
 
Re: randomized music player
Posted: 26 Aug 2020 01:57 AM
I think it is possible but I don't know how to make them.
Report Abuse
liz is offline. Last active: 2/21/2021 4:56:01 PM liz
Joined: 16 Aug 2020
Total Posts: 8
 
Re: randomized music player
Posted: 06 Oct 2020 15:57 PM
I have a script for it in current roblox, but basically, rng (random number generator) 1 to [however many songs you have]. each number will correspond with a song, and it'll play the number when picked (plays the song).
Report Abuse
PeacefulPikachu is offline. Last active: 8/1/2024 9:20:35 AM PeacefulPikachu
Joined: 04 May 2020
Total Posts: 111
 
Re: randomized music player
Posted: 03 Nov 2020 11:28 AM
there is in the free model i think
Report Abuse
boomix is offline. Last active: 2/19/2021 4:19:56 AM boomix
Joined: 18 Jan 2021
Total Posts: 39
 
Re: randomized music player
Posted: 21 Jan 2021 12:48 PM
There is a way, I don't exactly know how though.
I'd assume you can still change the SoundID property of audio just like any normal script.

-- table of audios
local soundT = {
mus1 = 9018315
mus2 = 9209147
mus3 = 9827198
}

while true do -- loop
local Sound = game.workspace.Sound
Sound.Playing = true
Sound.Looped = false
Sound.SoundID = soundT.mus1

wait(60)

Sound.SoundID = soundT.mus2
wait(60)

Sound.SoundID = soundT.mus3
print("Playlist has been ran through, playing sounds again.")
end
(sorry if the script is bad or incorrect im not the best at scripting)
Report Abuse
boomix is offline. Last active: 2/19/2021 4:19:56 AM boomix
Joined: 18 Jan 2021
Total Posts: 39
 
Re: randomized music player
Posted: 21 Jan 2021 12:50 PM
EDIT:

-- table of audios
local soundT = {
mus1 = 9018315
mus2 = 9209147
mus3 = 9827198
}

while true do -- loop
local Sound = game.workspace.Sound
Sound.Playing = true
Sound.Looped = false
Sound.SoundID = soundT.mus1

wait(60)

Sound.SoundID = soundT.mus2
wait(60)

Sound.SoundID = soundT.mus3
wait(60) -- added this wait timer because it would go back to first audio super fast
print("Playlist has been ran through, playing sounds again.")
end
(sorry if the script is bad or incorrect im not the best at scripting)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
GoodBlox Forum  > Help Center  > Scripting Help  > randomized music player