Function returns not valid on client

Here’s the function I try to call:

Here’s where I try to call it in a different class:

Edit: to add more context, it tries to get the HUD skill in order to set the cooldown on the ability. it works fine just fine on the server, but doesn’t work at all on clients.

Which client?

There is no UI on the actual server in a dedicated server setup.

Are you trying to read the HUD of the non-local player on the local client? That also won’t work.

In general, HUDs should keep no state, they should just display state. PlayerState is a good place to keep per-player state.