Line 4 is throwing the error Backpack is not a valid member of Player. I can't see anything wrong with it. Can anybody help me?
while true do
players = game.Players:GetChildren()
for p = 1, #players do
if players[p].Backpack.Spawned.Value == true then
if players[p].PlayerGui.AmbienceDay.IsPlaying == false then players[p].PlayerGui.AmbienceDay:Play() end
if players[p].PlayerGui.AmbienceNight.IsPlaying == false then players[p].PlayerGui.AmbienceNight:Play() end
mult = 1
if players[p].PlayerGui.InsideCheck.Inside.Value == true then mult = 0.1 end
players[p].PlayerGui.AmbienceDay.Volume = game.Lighting.Weather.DayVolume.Value * mult
players[p].PlayerGui.AmbienceNight.Volume = game.Lighting.Weather.NightVolume.Value * mult
end
end
wait(0.5)
end

5 comments
Try using Check-Statement after line 3 to see if the backpack is there, you may be calling on the backpack before it even loads.
How would I do that?
use game.Players:GetPlayers()
^ That would do the exact same thing. @Poster if players[p]:FindFirstChild("Backpack") then CODE_HERE end
add this "repeat wait until players[p]:FindFirstChild("Backpack")"