Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How Do I Fix My Music Client Script And Make It Repeat?

Asked by 6 years ago

**My Music Client Script Won't Work I Am Trying To Make It Make The Sound In Workspace So Every Player Can Hear It And I Am Also Trying To Make It So The Song Playing Displays On The Screen, No I'm Not Going To Use Free Models Because They Are Filled With Viruses. Help Would Be Very Much Appreciated **

Here Is My Code:


local GUI = game.Players.LocalPlayer.PlayerGui.Music_Client.Frame --[[ Music_Client Version 1.3.2 --]] --[[ Made By JamiethegreatQ777 -- ]] --[[ For Info On How To Use This Please Read The Info Section --]] --[[ For Tweaking Please Read The Tweaking Section --]] -- IMPORTANT INFO -- -- [[ THIS SCRIPT MUST NOT BE CLAIMED BY ANYONE BUT ME -- -- If Your Game Has Viruses This May Not Work -- -- Do Not Rename This Script Or Else It Wont Work -- -- You Also Need To Have This Script In Workspace -- -- This Script MUST Be Modified Or Else It Wont Work -- ]] -- [[ Tweaking ]] -- local Sound1ID = 257341751 -- [TheFatRat - Unity] local Sound2ID = 296407498 -- [TheFatRat - Time Lapse] local Sound3ID = 216318362 -- [TheFatRat - Xenogenesis] local Sound4ID = 396579167 -- [TheFatRat - Monody] local Volume.Value = 2 -- Put Volume Level Here local Sound.Pitch = 0 -- Put Pitch Level Here local Volume.Speed = 1 -- Put Speed Level Here local TimeForNextSong = 120 -- Put How Long The Song Will Last Before Switching --[[ Main Script ]] -- local Music = Instance.new("Sound") Music.Parent = workspace Music.Volume = Volume.Value Music.Pitch = Sound.Pitch Music.SoundID = math.random(Sound1ID,Sound2ID,Sound3ID,Sound4ID) Music.Speed = Volume.Speed Music:Play() wait(TimeForNextSong) Music.SoundID = math.random(Sound1ID,Sound2ID,Sound3ID,Sound4ID) repeat until game.Players.NumPlayers = 0 -- Continues The Script Over And Over Until All Players Are Gone. elseif Music.SoundID = Sound1ID then GUI.Songname.Text = "TheFatRat - Unity" elseif Music.SoundID = Sound2ID then GUI.Songname.Text = "TheFatRat - Time Lapse" elseif Music.SoundID = Sound3ID then GUI.Songname.Text = "TheFatRat - Xenogenesis" elseif Music.SoundID = Sound4IF then GUI.Songname.Text = "TheFatRat - Monody" end -- jamiethegreatQ777
0
I don't understand. Are you really asking for help or not? User#21908 42 — 6y
0
I Am I Am Wondering Why It's Not Working. JamiethegreatQ777 16 — 6y

Answer this question