Multiple instances of function

Okay so the way to do it is to make a custom event. Thanks.