Well if you still use “OnClicked” which is a PlayerController Event (aka executed client side) it won’t work.
You have to unplug it from your “Spawn Actor” and just call “OnServer” which will send the event to the server and execute it there.
Blueprint is linear. Only what happens from the execution line onwards matters. If you have a different event which will execute the same code on the server it will just be ignored because… well that’s not what’s called.