Some help to newbie

So i hope just anyone will explain me that thing:
I’m planning to make an online rpg game. And everyones’ character has his own stats (str, agi int, etc.).
So when a player spawn a projectile, this projectile should get player’s stats to calculate damage.
How can projectile get stats from correct player?

And btw, is there any good guides to make multiplayer games?

Presumably you will code the stats in a script attached to the character’s prefab (say “Stats.js”).

When the player spawns the projectile, link the player to the projectile:

    function spawn()
    {
        projectile = Instantiate(projectilePrefab);
        projectile.GetComponent(ProjectileClass).parent = this;
    }

When you need to compute damage with your projectile class, do something like:

    function damage()
    {
        str = parent.GetStrength();
            ...
    }