Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why isnt my pause and play script not working?

Asked by
Nump4d 5
3 years ago
stop = true
play = false




script.Parent.ClickDetector.MouseClick:Connect(function()
    if stop then
        stop = false
        if play == false then
            script.Parent.music:Resume()
            wait()
        end
        play = true
    else
        play = false
        script.Parent.music:Pause()
        wait()
    end
        stop = true
end)

The script seemed to have been working fine, and all of a sudden stopped working. I may have just deleted something without realizing, any help would be greatly appreciated.

0
Give us the error via F9 or the Output. Qariter 110 — 3y
0
there are no errors for this script Nump4d 5 — 3y
0
I can't find a syntax error for this script. Please provide more infomation about how it stopped working. GGwody 0 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

May You Create A boolValue of Play and stop and edit script. May it work...

Ad

Answer this question