From what I can see, you are creating a poorly designed music system. Use the following:
local songIDs = {} -- A table to insert your music IDs!
local sound = pathToYourSoud
while wait() do
for i = 1, #songIDs do
local finalIndex = "rbxassetid://" .. songIDs[i]
sound.SoundId = finalIndex
sound:Play()
sound.Finished:Wait()
end
end
Nope, it should work on the client assuming it’s parented to one of the instances that can run localscripts (backpack, character, playergui, playerscripts, replicatedfirst). Other players won’t be able to see it though.
No, it doesn’t really matter, make sure the values are either true or false, (no quotation marks or anything), change it to astring value if you’d like to store a string.
I found the solution actually. I tried putting the script in workspace and I changed it into a server script. Then the value started changing. Thanks for all the help!