maroon_byte
Mega Sage

In the client script you are calling 'hasAttachment' but your script include function name is 'hasAttachments'... 's' is missing in the client script.