onClick entity spawn



I was wondering if there is an easy way to combine the createCow tutorial script with some kind of onClick event or even some kind of “entering a zone” event.

I am wanting it where a model will spawn when a user clicks onto another model (let’s say a cube). Can I get some assistance with this?