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

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

Asked by 6 years ago

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.

0
I do not see any work that has SoundScape in it, so of course it is not playing. hiimgoodpack 2009 — 6y

1 answer

Log in to vote
0
Answered by
H4X0MSYT 536 Moderation Voter
6 years ago

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

0
What do you suggest? Your_Momdotcom 91 — 6y
0
Well? Your_Momdotcom 91 — 6y
0
Moving the script to another place. H4X0MSYT 536 — 6y
1
Why would you put scripts in it anyways? It is for handling SOUNDS, not scripts. hiimgoodpack 2009 — 6y
Ad

Answer this question