Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why isnt my pause and play script not working?

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.

3 comments

0

Give us the error via F9 or the Output.

0

there are no errors for this script

0

I can't find a syntax error for this script. Please provide more infomation about how it stopped working.

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.