Attempt to call field 'performWithDelay' (a nil value)..... Why am I getting this error?

Here is the code 

spawner = function (event) cat = { image = "cat.png" } cat2 = { image = "cat2.png" } end timer.perfomWithDelay(1000,spawner)

When I remove the bottom line “timer.perfomWithDelay(1000,spawner)” it works but I need to be able to delay it.

Because you have put perfom, not perform. Missing an ‘r’.

Holy freaking gosh I am such an idiot. Ok I know how to spell haha. For some reason I have got into a habit of typing perfom instead of perform jeez embarrassing…

Because you have put perfom, not perform. Missing an ‘r’.

Holy freaking gosh I am such an idiot. Ok I know how to spell haha. For some reason I have got into a habit of typing perfom instead of perform jeez embarrassing…