Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Music script doesn't work anymore since yesterday?

2 days ago this was working just fine but yesterday it stopped.It's a music script.


local currentSong = Instance.new("Model")
currentSong.Name = "CurrentSong"
currentSong.Parent = game:GetService("ReplicatedStorage")

function playSong(song)
	local c = currentSong:GetChildren()
	for i = 1, #c do
		if c[i]:IsA("Sound") then
			c[i]:Destroy()
		end
	end
	local newsong = song:clone()
	newsong.Parent = currentSong
	local hint = Instance.new("Hint")
	hint.Text = "Now playing: "..song.Name
	hint.Parent = game.Workspace
	game.Debris:AddItem(hint, 5.5)
	newsong.Playing = true
	if song:FindFirstChild("Length") then
		wait(song:FindFirstChild("Length").Value)
	else
		wait(120)
	end
end

4 comments

0

Have you done anything to the script what so ever since yesterday?

0

No

0

Not nearly enough information is given to provide an accurate answer.

0

When I go to ReplicatedStorgae and in the model, if I click the sound and go to properties it shows me that playing is true, volume is good but it won't play it

2 answers

If your sound in gui is broken make sure its in a local script!

Roblox has updatingsound alot.. take a look at this link it may can help be sure to read to comments too their helpfull too.

My sound was broken too a couple of days ago but I already fixed it by reading this.

I hope this helps you too.

ROBLOX usually does this, the best option would be to insert a sound in the explorer, and then do a script like this to see if it is truly broken:

script.Parent:Play()

If nothing plays, wait until the next patch :)

This discussion is preserved as it was. New answers, comments, and votes are closed.