Multiplayer attack animation not running on both clients

variable replication is just one of the types of replication. To have the animations run on both client and server, I would suggest you use an event to call the play animation function. That way you can make it multicast (replicates the function call to all clients). Check out the content examples on function replication.