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

Scripts are not working in Soundscape? Please look at my code and tell me what's wrong.

So I was trying to make a list of songs that would play, I have all of the id's (they all work)

songs = {"525278589","485217894","459903232","1038773573","525279596"}
a = 0

script.Parent.Sound.Ended:Connect(function()
	if a == 5 then
		a = 0
	end
	a = a + 1
	script.Parent.Sound.SoundId = "rbxassetid://"..songs[a]
	script.Parent.Sound.Playing = true
end) 

Anyways, I have a sound object inside the Soundscape with this script, (the script is in the Soundscape). The script works perfectly if I put it in a regular part in the workspace, but not in the Soundscape. I am absolutely confused, and after a very long time of messing around with this, I want to smash my computer. Thanks in advance if you can help me.

1 comment

0

I do not see any work that has SoundScape in it, so of course it is not playing.

1 answer

Scripts don't run in all places. Such as ServerStorage, scripts will not run. I think this is another one of those services.

4 comments

0

What do you suggest?

0

Well?

0

Moving the script to another place.

1

Why would you put scripts in it anyways? It is for handling SOUNDS, not scripts.

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