Can't set variable from anim blueprint to pawn on dedicated server

So I’m easily getting a bool from the pawn as shown bellow.

But I can’t set variable from anim blueprint to pawn

I’m doing this because I’m trying to spawn an actor after certain conditions are met ( turret is in view of pawn)
Spawning actors work fine in anim blueprint but nothing happens on the server so I’m thinking I must spawn it from the pawn for replication?

Inside my pawn waiting for the bool to set

Well after writing this I came to the conclusion that I was creating functionality that’s not even supposed to be in the anim blueprint.