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

Please help me?

Asked by 9 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

I edited the code from last time to make it work better Why doesnt the button work to make the stairs come down? It makes the value true when its finished.

For some reason i cant use block code.

01Stair1 = script.Parent.Parent.Stair1 --All the variables
02Stair2 = script.Parent.Parent.Stair2
03Stair3 = script.Parent.Parent.Stair3
04Stair4 = script.Parent.Parent.Stair4
05Stair5 = script.Parent.Parent.Stair5
06Stair6 = script.Parent.Parent.Stair6
07Stair7 = script.Parent.Parent.Stair7
08Stair8 = script.Parent.Parent.Stair8
09Support1 = script.Parent.Parent.Support1
10Support2 = script.Parent.Parent.Support2
11Support3 = script.Parent.Parent.Support3
12Support4 = script.Parent.Parent.Support4
13Support5 = script.Parent.Parent.Support5
14Support6 = script.Parent.Parent.Support6
15Support7 = script.Parent.Parent.Support7
View all 75 lines...
0
I don't believe you can make a variable with a number in it. Try using StairOne = and StairTwo = so the script doesn't get confused and try to do math. bloxxyz 274 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

Bloxxyz is right, you can't name a part with a number at the end it messes up the whole code. like bloxxyz said, what I do is name it 'PartOne';'PartTwo' and so on...

Ad

Answer this question