How do I make a lever script to open a curtain?
Asked by
4 years ago Edited 4 years ago
For real, I had trouble with this. Can anyone help me make a lever script? I'm not sure how to do it.. It's supposed to open a curtain.
02 | script.Parent.ClickDetector.MouseClick:Connect( function () |
03 | Lever 1 = script.Parent.Parent.Lever 1 |
04 | Lever 1 B = script.Parent |
05 | Blink = script.Parent.Parent.Blink |
06 | Curtain = game.Workspace.Curtain |
07 | Lever 1. Orientation = Vector 3. new( 0 , - 90 , - 30 ) |
08 | Lever 1. Position = Vector 3. new( 160.664 , 13.88 , 21.692 ) |
09 | Lever 1 B.Position = Vector 3. new( 160.664 , 14.223 , 21.212 ) |
10 | Blink.BrickColor = BrickColor.new( "Lime green" ) |
11 | Curtain.Transparency = 0 |
15 | script.Parent.ClickDetector.MouseClick( function () |
16 | Lever 1 = script.Parent.Parent.Lever 1 |
17 | Lever 1 B = script.Parent |
18 | Blink = script.Parent.Parent.Blink |
19 | Curtain = game.Workspace.Curtain |
20 | Lever 1. Orientation = Vector 3. new( 0 , - 90 , 45 ) |
21 | Lever 1 B.Position = Vector 3. new( 160.664 , 12.853 , 21.212 ) |
22 | Blink.BrickColor = BrickColor.new( "Really red" ) |
23 | Curtain.Transparency = 1 |
Could anyone show me a script using these? (Also, when tested it only activates the on script. )