function winRound() setInputEnabled(false) for i = 1, 1 do for j = 1, numColours do playColour(j, 0.4, j) print("Stage " .. roundNum .. " completed") cent.SurfaceGui.TextLabel.Text = roundNum * 10 .. " %" pr.SurfaceGui.TextLabel.Text = "Overall Progress" end end wait(timeBetweenRounds) setInputEnabled(true) -- next round startRound() end function startRound() inputIndex = 0 roundNum = roundNum + 1 local pattern = genPattern(roundNum, tick()) currentPattern = pattern playPattern(pattern) end
with these two functions given, which one could i use to either add an if statement, that if roundNum X == X another script will be set to disabled = false OR alternatively make it call on a reward function when roundNum x was reached to set the script to disabled = false?