IEnumerator Start()
    {
        yield return(new WaitForSeconds(0.3f));

        if (hasAuthority)
        {
            parent         = GetComponent <PlayerSetupAI>().parent;
            playerMovement = parent.transform.Find("Physics AnimatorAI").GetComponent <PlayerMovementAI>();
            groundForce    = parent.transform.Find("RagdollAI").GetComponent <GroundForceAI>();
            aimShoot       = parent.transform.Find("RagdollAI").GetComponent <AimShootAI>();
        }
    }
 IEnumerator Start()
 {
     while (!GameObject.Find("LocalPlayer") && !GameObject.Find("LoadingPlayer"))
     {
         yield return(null);
     }
     if (GameObject.Find("LocalPlayer"))
     {
         local = GameObject.Find("LocalPlayer").transform;
     }
     else if (GameObject.Find("LoadingPlayer"))
     {
         local = GameObject.Find("LoadingPlayer").transform;
     }
     audioSource.PlayOneShot(grappleSwoosh, SyncData.sfx / 50f * 0.2f * (Mathf.Clamp((200 - Vector3.Distance(transform.position, local.position)), 0, 200) / 200));
     GameObject[] playerParts_ = parent.GetComponent <GroundForceAI>().playerParts;
     StartCoroutine("endTime");
     aimShoot = parent.transform.GetChild(0).gameObject.GetComponent <AimShootAI>();
 }