How To Make An Ememy Go Twords A Block And Shoot At It

I’m Trying To Make A Game Where The Enemy (Orange Character) Needs To Go To The Closest Blue Or Regular Floor And Shoot At It To Make It Change To A Orange Floor. I’ve Been Working On Trying To Figure It Out For A Couple Hours Now But Without Luck. Would Anyone Know How To Do This?

Just use a proximity block.