Spawn an ai for every player?

Hey, so im making a multiplayer game where every player has a AI friend, i have gotten where every time a player join the game an ai also spawns, but then i need to assign that AI to the player that spawned it. the following code works great for the server, but it doesnt work for the clients, it only assigns all the ai to the host and the clients gets none?

How do i make so every time a player spawns a pawn with an ai they also assign that pawns ai to themself in that variable at the end?

Hey :slight_smile:
Your “SpawnHeroPawn” Event “Executes on Server” … You can try to set it to “Run on owning Client”.

Hi yes i tried all of those settings, they all gave me the same result?