2 Price Is Right doors need to be combined?
I have two doors, each with 8 panels. The first door opens halfway, for host entry. The second door opens fully, to present a prize. Each door has 4 separate scripts, controlling 2 panels.
Here is what I have so far:
Door 1, Panel set 1 (This is repeated to the other panel sets with different timings and different names):
01 | DoorParts = script.Parent.DoorParts 1 |
09 | DoorParts.B 1. CFrame = DoorParts.B 1. CFrame*CFrame.new(. 15 , 0 , 0 ) |
10 | DoorParts.B 2. CFrame = DoorParts.B 2. CFrame*CFrame.new(-. 15 , 0 , 0 ) |
24 | DoorParts.B 1. CFrame = DoorParts.B 1. CFrame*CFrame.new(-. 15 , 0 , 0 ) |
25 | DoorParts.B 2. CFrame = DoorParts.B 2. CFrame*CFrame.new(. 15 , 0 , 0 ) |
35 | script.Parent.Button.ClickDetector.MouseClick:connect(onClick) |
Door 2:
01 | DoorParts = script.Parent.DoorParts 1 |
09 | DoorParts.B 1. CFrame = DoorParts.B 1. CFrame*CFrame.new(. 4 , 0 , 0 ) |
10 | DoorParts.B 2. CFrame = DoorParts.B 2. CFrame*CFrame.new(-. 4 , 0 , 0 ) |
24 | DoorParts.B 1. CFrame = DoorParts.B 1. CFrame*CFrame.new(-. 4 , 0 , 0 ) |
25 | DoorParts.B 2. CFrame = DoorParts.B 2. CFrame*CFrame.new(. 4 , 0 , 0 ) |
35 | script.Parent.Button.ClickDetector.MouseClick:connect(onClick) |
I need help fusing these two together, so I can have two buttons on one door, one opening halfway, and one opening fully.