Board Thread:Lua Help/@comment-24473195-20140813090251/@comment-11733175-20140813124402

It looks like you've miscounted your arguments in invoke:

You're passing n as the argument for frame.args[3] rather than a number so when it attempts to look up the colour in backColor it's returning nil which is throwing the error.