Please help me?
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.
01 | Stair 1 = script.Parent.Parent.Stair 1 |
02 | Stair 2 = script.Parent.Parent.Stair 2 |
03 | Stair 3 = script.Parent.Parent.Stair 3 |
04 | Stair 4 = script.Parent.Parent.Stair 4 |
05 | Stair 5 = script.Parent.Parent.Stair 5 |
06 | Stair 6 = script.Parent.Parent.Stair 6 |
07 | Stair 7 = script.Parent.Parent.Stair 7 |
08 | Stair 8 = script.Parent.Parent.Stair 8 |
09 | Support 1 = script.Parent.Parent.Support 1 |
10 | Support 2 = script.Parent.Parent.Support 2 |
11 | Support 3 = script.Parent.Parent.Support 3 |
12 | Support 4 = script.Parent.Parent.Support 4 |
13 | Support 5 = script.Parent.Parent.Support 5 |
14 | Support 6 = script.Parent.Parent.Support 6 |
15 | Support 7 = script.Parent.Parent.Support 7 |
16 | Support 8 = script.Parent.Parent.Support 8 |
19 | value = script.Parent.Value |
22 | function onClicked(playerWhoClicked) |
24 | if value.Value = = false then |
27 | Stair 1. CFrame = Stair 1. CFrame + Vector 3. new( 0 , 0.1 , 0 ) |
28 | Support 1. CFrame = Support 1. CFrame + Vector 3. new( 0 , 0.1 , 0 ) |
29 | Stair 2. CFrame = Stair 2. CFrame + Vector 3. new( 0 , 0.1 , 0 ) |
30 | Support 2. CFrame = Support 2. CFrame + Vector 3. new( 0 , 0.1 , 0 ) |
31 | Stair 3. CFrame = Stair 3. CFrame + Vector 3. new( 0 , 0.1 , 0 ) |
32 | Support 3. CFrame = Support 3. CFrame + Vector 3. new( 0 , 0.1 , 0 ) |
33 | Stair 4. CFrame = Stair 4. CFrame + Vector 3. new( 0 , 0.1 , 0 ) |
34 | Support 4. CFrame = Support 4. CFrame + Vector 3. new( 0 , 0.1 , 0 ) |
35 | Stair 5. CFrame = Stair 5. CFrame + Vector 3. new( 0 , 0.1 , 0 ) |
36 | Support 5. CFrame = Support 5. CFrame + Vector 3. new( 0 , 0.1 , 0 ) |
37 | Stair 6. CFrame = Stair 6. CFrame + Vector 3. new( 0 , 0.1 , 0 ) |
38 | Support 6. CFrame = Support 6. CFrame + Vector 3. new( 0 , 0.1 , 0 ) |
39 | Stair 7. CFrame = Stair 7. CFrame + Vector 3. new( 0 , 0.1 , 0 ) |
40 | Support 7. CFrame = Support 7. CFrame + Vector 3. new( 0 , 0.1 , 0 ) |
41 | Stair 8. CFrame = Stair 8. CFrame + Vector 3. new( 0 , 0.1 , 0 ) |
42 | Support 8. CFrame = Support 8. CFrame + Vector 3. new( 0 , 0.1 , 0 ) |
49 | else if value.Value = = true then |
52 | Stair 1. CFrame = Stair 1. CFrame + Vector 3. new( 0 ,- 0.1 , 0 ) |
53 | Support 1. CFrame = Support 1. CFrame + Vector 3. new( 0 ,- 0.1 , 0 ) |
54 | Stair 2. CFrame = Stair 2. CFrame + Vector 3. new( 0 ,- 0.1 , 0 ) |
55 | Support 2. CFrame = Support 2. CFrame + Vector 3. new( 0 ,- 0.1 , 0 ) |
56 | Stair 3. CFrame = Stair 3. CFrame + Vector 3. new( 0 ,- 0.1 , 0 ) |
57 | Support 3. CFrame = Support 3. CFrame + Vector 3. new( 0 ,- 0.1 , 0 ) |
58 | Stair 4. CFrame = Stair 4. CFrame + Vector 3. new( 0 ,- 0.1 , 0 ) |
59 | Support 4. CFrame = Support 4. CFrame + Vector 3. new( 0 ,- 0.1 , 0 ) |
60 | Stair 5. CFrame = Stair 5. CFrame + Vector 3. new( 0 ,- 0.1 , 0 ) |
61 | Support 5. CFrame = Support 5. CFrame + Vector 3. new( 0 ,- 0.1 , 0 ) |
62 | Stair 6. CFrame = Stair 6. CFrame + Vector 3. new( 0 ,- 0.1 , 0 ) |
63 | Support 6. CFrame = Support 6. CFrame + Vector 3. new( 0 ,- 0.1 , 0 ) |
64 | Stair 7. CFrame = Stair 7. CFrame + Vector 3. new( 0 ,- 0.1 , 0 ) |
65 | Support 7. CFrame = Support 7. CFrame + Vector 3. new( 0 ,- 0.1 , 0 ) |
66 | Stair 8. CFrame = Stair 8. CFrame + Vector 3. new( 0 ,- 0.1 , 0 ) |
67 | Support 8. CFrame = Support 8. CFrame + Vector 3. new( 0 ,- 0.1 , 0 ) |
75 | script.Parent.ClickDetector.MouseClick:connect(onClicked) |