I want players to be able to play music from a player. I do not want to insert a model that was used already. Something fresh and new. I hope you can reply quickly!
COMMUNITY QUESTION
How to make a music player?
2 answers
Localscript in StarterGui.
local soundGET = Instance.new("Sound", script.Parent);
sound.SoundId = "rbxasset://"..0000000;
soundGET:Play()
sounds={ID,ID,ID}
function Cleany(clean)
for _,v in pairs(clean:GetChildren())
if v:IsA("Sound")then
v:Destroy()
end end end
function Soundly(loop,arch,volu,pitch,par,time)
for i=1,#sounds do
m=Instance.new("Sound")
m.Looped=loop
m.archivable=arch
m.Pitch=pitch
m.Volume=volu
m.Parent=par
m.SoundId=sounds[i]
wait(time)
m:Play()
end end
Cleany(workspace) --Checks if there are sound, and cleans them (Destroys them)
Soundly(true,false,1,0.85,workspace,1.25)
Ok, for the last part; The first Value is Looped, the second is Archivable, third is Volume, fourth is Pitch, fifth is the Parent, sixth is the time when the sounds Play.
I hope this helped!
This discussion is preserved as it was. New answers, comments, and votes are closed.
