Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

moving my big door? (cant solve)

Asked by 9 years ago
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

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 dragonkeeper467 453 — 9y
0
oh yes sorry i was just doing a lot of stuff irl and on my computer and kinda half fasted this SupperBurnout280 2 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

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?

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 SupperBurnout280 2 — 9y
0
Are they sliding doors? One moves left and the other moves right? LearnToSkript 10 — 9y
0
it complcated huh XD SupperBurnout280 2 — 9y
Ad

Answer this question