---- Create motors

local rightMotor = Instance.new("Motor")
rightMotor.Name = "rightMotor"
rightMotor.Parent = cabinet.RightWall
rightMotor.Part0 = cabinet.RightWall
rightMotor.Part1 = cabinet.RightDoor
rightMotor.C0 = CFrame.new(0,0,-cabinet.RightWall.Size.Z/2-cabinet.RightDoor.Size.Z/2) * CFrame.Angles(math.pi/2,0,0)
rightMotor.C1 = CFrame.new(cabinet.RightDoor.Size.X/2-cabinet.RightWall.Size.X/2,0,0) * CFrame.Angles(-3*math.pi/2,0,0)
rightMotor.MaxVelocity = .1

local leftMotor = Instance.new("Motor")
leftMotor.Name = "leftMotor"
leftMotor.Parent = cabinet.LeftWall
leftMotor.Part0 = cabinet.LeftWall
leftMotor.Part1 = cabinet.LeftDoor
leftMotor.C0 = CFrame.new(0,0,-cabinet.LeftWall.Size.Z/2-cabinet.LeftDoor.Size.Z/2) * CFrame.Angles(-math.pi/2,0,0)
leftMotor.C1 = CFrame.new(-cabinet.LeftDoor.Size.X/2+cabinet.LeftWall.Size.X/2,0,0) * CFrame.Angles(3*math.pi/2,0,0)
leftMotor.MaxVelocity = .1
