Here is a script that I used to make 4 parts slide upwards smoothly:
01 | local door 1 = game.Workspace.door 1 |
02 | local door 2 = game.Workspace.door 2 |
03 | local door 1 _ 1 = door 1 :WaitForChild( 'door1' ) |
04 | local door 1 _ 2 = door 1 :WaitForChild( 'door2' ) |
05 | local door 2 _ 1 = door 2 :WaitForChild( 'door1' ) |
06 | local door 2 _ 2 = door 2 :WaitForChild( 'door2' ) |
08 | door 1 _ 1. CFrame = CFrame.new(door 1 _ 1. Position + Vector 3. new( 0 , 0.5 , 0 )) |
09 | door 1 _ 2. CFrame = CFrame.new(door 1 _ 2. Position + Vector 3. new( 0 , 0.5 , 0 )) |
10 | door 2 _ 1. CFrame = CFrame.new(door 2 _ 1. Position + Vector 3. new( 0 , 0.5 , 0 )) |
11 | door 2 _ 2. CFrame = CFrame.new(door 2 _ 2. Position + Vector 3. new( 0 , 0.5 , 0 )) |
I don't think you can use Tweening
for parts. Also, I don't think a Vector3
value is allowed in a table
, just like the error says.