open = false;
while true do
wait();
local PlayerNear = characterIsInRange();
if PlayerNear == true and open == false then
play("open",1);
play("bars",60);
wait(3)
moveBars(-0.5);
wait(2)
play("door",0.8);
moveDoor(0.0); --move on -z axis
wait(8)
moveDoor(0.9); --moving on +x axis
open = true;
end;
i don't know how to move it back i tried but i don't understand what i am doing wrong
i found out it can only ONLY move on the x axis and not much i can do to make it move on the z axis other then remake the whole script and im not doing that

2 comments
ok buddy, you seriously need to explain your questions a little better, for one, moveDoor is not a method, unless you made a function for it, and if so, edit your ques and add in the moveDoor function
oh yes sorry i was just doing a lot of stuff irl and on my computer and kinda half fasted this