Hi, I have a mute music script it works fine (Mutes and unmutes) but on mobile it only mutes and does not unmute here is my script (Local Script)
local button = script.Parent
local soundGroup = workspace:WaitForChild('SoundGroup')
local toggle = false
local function click()
if toggle == false then
soundGroup.Volume = 0
else
soundGroup.Volume = 6.5
end
toggle = not toggle
end
button.TouchTap:Connect(click)
button.MouseButton1Click:Connect(click)
Thanks.