How to modify a Component based on Authority in C++?

This might work for you, but you should be aware of the differences between replication and rpcs. RPCs should be used for gameplay important things. Replicated variables aren’t guaranteed to be replicated to clients within a reasonable timeframe or in any specific order, only that given enough time they should update on the client.

You should still look into why RPCs were not working for you, because if they weren’t it’s probably symptomatic of a larger issue.

You can read more here