Need to spawn with a delay

I’m trying to make a canon shot projectiles every 2 seconds
So far I keep getting compiler errors when ever i try to play a wait time before the spawn cannon shot instantiate.

I know its a silly question, but any help would be appreciated

Could you post the script?

InvokeRepeating

Dman, twice today you have helped me . Thank you…