Sliding Door Script

Hi guys!
I wanted to make sliding doors like those in this tutorial and the first door i made is working, but next when i did a script for the second one it doesn’t work, becouse when i walk close to the second doors they apprear in the XYZ 000 location, i don’t know why the "get actor location’ function doesn’t work properly, please help.