Need Scripting Help

I am currently scripting a door on my map but whenever the door moves, the wall next to the door is being pushed by the door. Both have physics of phased. I am wondering how to make the door go inside the wall instead of pushing it.

Ignore this I found out my problem