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

Script Sequencing, how do I fix? [Closed]

I have a block with 3 scripts in it, labeled A, AA, and AAA I'm trying to program AA so it will not work while A is active, so it's Debounce script will not fire while A is still active

A = script.Parent.A
AA = script
AAA = script.Parent.AAA

local debounce = false --Creates a bool value named debounce
AA.Disabled = false
A.Disabled = false
script.Parent.TopSurface = "Studs"
script.Parent.Touched:connect(function(part) 
	if not debounce then --Only runs if debounce is equal to false
		if A.Disabled = true
		debounce = true --Makes debounce true

What should I do?

1 answer

Nevermind, I figured it out.

A = script.Parent.A
AA = script
AAA = script.Parent.AAA

local debounce = false --Creates a bool value named debounce
AA.Disabled = false
A.Disabled = true
script.Parent.Touched:connect(function(part) 
	if not debounce then --Only runs if debounce is equal to false
		debounce = true --Makes debounce true
		wait (1)
		AA.Disabled = true
		AAA.Disabled = false
	end
debounce = false --Makes debounce false again so it can run again.
end)

Sorry if someone was coding a solution.

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