Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

moving my big door? (cant solve)

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

0

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

0

oh yes sorry i was just doing a lot of stuff irl and on my computer and kinda half fasted this

1 answer

Um, I agree with Dragon, But also I saw in the script you have "Sideways" and "Backwards". Well, if doors are moving sideways by 0.9 , then wouldn't you want them to move BACK again -0.9?

3 comments

0

yes i have something like that i just dont want to give my script away what i mean is say it moves on the x axis i wanted to also move it on the z axis i just dont see what i did wrong on it

0

Are they sliding doors? One moves left and the other moves right?

0

it complcated huh XD

This discussion is preserved as it was. New answers, comments, and votes are closed.