Used Local script only
local sound = Instance.new("Sound", game.Workspace)
sound.SoundId = "rbxassetid://2830837614"
sound.Looped = true
sound:Play()
sound.Playing = true
local bool = script.Parent.Changer
bool.Value = true
if bool.Value == true then
script.Parent.Activated:Connect(function()
bool.Value = false
sound.Playing = false
end)
end
if bool.Value == false then
script.Parent.Activated:Connect(function()
bool.Value = true
sound.Playing = true
end)
end

2 comments
what's the error?
no error