Need help stopping objects at Player Controller Position

Hi,

I am having trouble scripting an Object to stop at the First Person Controllers location, stay there for around ~ 10 seconds, and then perform other actions.

I believe that it would be something along the lines of :

 if (Object.position.x || Object.position.y == Player.position.x) {
Translate.transform??
}

I’m rather new to Unity and Scripting so any help would be appreciated.

Thank you.

I like to use distance rather than compare points as they may never equal exactly.

void Update(){
float dist = Distance(transform.position, player.position);
If (dist < 0.1f){
if (!atPlayerPos)
return;
atPlayerPos = true;
Invoke(moveAway, 10);

My syntax is terrible, here but hopefully it gives you an idea of the parts you can use.