void OnTriggerEnter2D(Collider2D col) { if (!pickedUp && col.gameObject.tag == "Player") { pickedUp = true; this.transform.position = placePos.transform.position; // positions the aniaml on the placePos position this.transform.parent = col.gameObject.transform; // attached the animal to the player waterRiseScript.riseWater = true; lightningScript.FlashLightning(); rainScript2D.RainIntensity = 1f; audio.PlayOneShot(monkeyPickup, 1f); } }