Let a Rifle Shoot in Multiplayer

How can I make the client shoot?

Pawn → Has Authority → Replicate from Client to Server to spawn weapon actor.

Client now wants to shoot this weapon with a function inside the weapon actor. (Which would spawn a Projectile).

Hello! You should assign weapon ownership to client’s pawn when spawning the weapon. Call your shoot function to spawn projectile only on the client, then call the server shoot function so it can spawn “it’s” projectile to calculate hit, then multicast the event and spawn the projectile actor for every client locally. Notice that the projectile is not replicated. It really needs to exist only on the server, so it can make hit calculations. For initial client and for others, the projectile is just a visual cosmetic thing. This is by far not the only solution. There are plenty of ways you can make it.

Thank you very much! Solved my problem.