Multiplayer duplication in mouse onclick action

Hi there

I created a simple show and hid an object by mouse clicking on a box for online multiplayer.

The object is supposed to be shown and hidden for all the clients. and I’m having a hard time getting the duplication to work in multiplayer using my mouse onclick function.
The strange part is it works when I use begin overlap function but doesn’t work with my onclick function.

The object settings are always relevant checked as well as the duplicate option.

I appreciate any help I can get.

I added some changes to the task suggested by a good developer who replied to my question in another forum but it didn’t work.

here are the changes that I made.