Trigger Only For Player.

Hello, Seem to be having some trouble with a item pickup script, I intend to fly into a pickup item to pick the item up for the Player only. But any object that collides with it seems to pick it up for me, Help me out a little please?

function OnTriggerEnter(other : Collider) 
{
   if(other.collider.tag == Player.tag)
   {
      PickUpItem();
   }
}

You must specify the tag, and assign the same tag to the player. If this function is in the trigger script, it should be like this:

function OnTriggerEnter(other : Collider) 
{
   if (other.tag == "Player") // remember to tag the player as "Player"
   {
      PickUpItem();
   }
}

Your code also could work: set the player tag to “Player” in the Inspector. If the player is untagged, all other untagged objects (default) will pick the object for you.