Making a little sound stage thing for a friend, however it's a bit glitchy after a player dies. No errors though. This is a local script placed in StarterGui
Problem: After player once or more, the sound stops and won't play.
Sounds = script:WaitForChild'SongFolder'
Player = game.Players.LocalPlayer
PlayerGui = Player.PlayerGui
Leaderstats = Player:WaitForChild'leaderstats'
Stage = Leaderstats:WaitForChild'Stage'
Song1 = Sounds:WaitForChild'Sound1'
Song2 = Sounds:WaitForChild'Sound2'
Song3 = Sounds:WaitForChild'Sound3'
Song4 = Sounds:WaitForChild'Sound4'
if Stage.Value == 1 and Song1.IsPlaying ~= true then
Song1:Play()
end
Stage.Changed:connect(function(NewValue)
if NewValue == 2 and Song2.IsPlaying ~= true then
Song2:Play()
Song1:Stop()
end
end)
Stage.Changed:connect(function(NewValue)
if NewValue == 3 and Song3.IsPlaying ~= true then
Song3:Play()
Song2:Stop()
end
end)
Stage.Changed:connect(function(NewValue)
if NewValue == 4 and Song4.IsPlaying ~= true then
Song4:Play()
Song3:Stop()
end
end)

3 comments
I think line 37 is wrong, it's seems incomplete
oops, for i,v = 1,4 do See if that works? I'm not good with i,v.
I see