Ability child script not printing when ability is cast

I want the potion prop to destroy when the unarmed_drink ability is in the OnCast phase. The ability and animation work fine but can't seem to make the script work.
Any help would be greatly appreciated.


The destroy code is in the execute listener, not the cast. Either way it can still be destroyed. Do you get any errors?

Edit: See answer.

The bottle is in a client context, whereas the script is in a default context. So it can't access it. You would need to change the way the bottle is accessed, either by moving it to the default context, or handle destroying the object on the client.

Moved the bottle to default. Well done
Thank you very much for your time.

Hi there, I seem to have the opposite problem now where the script requires client context to play the animation. Thanks in advance