i made a script that if the number value in workspace is set to "0" then it will play and loop it, if not, it will not play, but it seems the sound will play and loop everytime even when when the number value is "2" or "15"
game.Workspace:WaitForChild("planet") -- the number value
local planetnumber = game.Workspace.planet.Value
local sound = game.Workspace.jupiter.jupitersound -- the sound is named "jupitersound" inside a model called "jupiter"
while planetnumber == 0 do
if planetnumber == 0 then
sound.Looped = false
sound.Playing = true
else
sound.Playing = false
end
wait()
end
