Blueprint Replication Issue

Problem Description:

I have a character blueprint (BP) defined that when F key is pressed it toggles between two different character meshes; assigns a different mesh for a 2 player multiplayer spawn.

This works but the replication aspect is not.

Here is BP setup:

Here is settings of variables:

Here are the related functions:

Hi, AFAIK SetSkeletalMesh does not replicate. Meaning in your second image, if you press F, then it will only locally swap the mesh, it won’t replicate.

What you would need to do, is locally execute SetSkeletalMesh on the server and all clients. For example, from the ‘F’ → RunOnServer RPC → Server sets some skeletal mesh variable (e.g. NewMesh) which is repnotify → inside the OnRepNewMesh function you then do SetSkeletalMesh with the NewMesh variable as NewMesh.