# Can't execute on server

**URL:** <https://forums.unrealengine.com/t/cant-execute-on-server/563150>\
**Category:** Multiplayer & Networking\
**Tags:** client-to-server, unreal-engine, UE5-0, Multiplayer, question, replicating\
**Created:** [May 22, 2022, 3:24am UTC](https://forums.unrealengine.com/t/cant-execute-on-server/563150 "2022-05-22T03:24:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GameExp](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gameexp/32/1046494_2.png) [@GameExp](https://forums.unrealengine.com/u/GameExp)\
**Post date:** [May 22, 2022, 3:24am UTC](https://forums.unrealengine.com/t/cant-execute-on-server/563150/1 "2022-05-22T03:24:37Z")

</div>

When I’m trying to use the “Executes On Server” event after interacting with an object on the client-side.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/3/8/4380a9d1a769c1fea5e94922e324452d4b5952ae.png)  
_Interaction blueprint_  
Debugging shows that it’s being skipped (“Using for Server” on the picture above.)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/9/f/19f091343d19f1c1b0f70fe796a3f072b7088645.png)  
_Server event_  
How can I fix it?

PS: **I’ve already tried to use the “Switch Has Authority” node with a second custom event with “Executes On All” replication.**

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [May 22, 2022, 9:25am UTC](https://forums.unrealengine.com/t/cant-execute-on-server/563150/2 "2022-05-22T09:25:41Z")

</div>

What is this blueprint class?  
Not all classes can call server functions. E.g. Player Controllers and possessed Characters can, but regular actors cannot.

---

<div class="post-metadata">

**Author:** ![GameExp](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gameexp/32/1046494_2.png) [@GameExp](https://forums.unrealengine.com/u/GameExp)\
**Post date:** [May 22, 2022, 9:55am UTC](https://forums.unrealengine.com/t/cant-execute-on-server/563150/3 "2022-05-22T09:55:10Z")

</div>

Yep, that’s an actor. What should I do to change this variable on the server from the client?

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [May 22, 2022, 10:06am UTC](https://forums.unrealengine.com/t/cant-execute-on-server/563150/4 "2022-05-22T10:06:48Z")

</div>

If you interact with it from the Character BP or the Controller BP, you can call the server function directly.
