diff --git a/src/server/main/Elevators/Otis1960/init.luau b/src/server/main/Elevators/Otis1960/init.luau index 8e5c4a2..2cad9ea 100644 --- a/src/server/main/Elevators/Otis1960/init.luau +++ b/src/server/main/Elevators/Otis1960/init.luau @@ -197,68 +197,7 @@ end function Elevator.constructor(TagsConstructor, ButtonsTags, LanternsTags, LandingDoors) local self = {} :: Constructor_Return_Props - self.__Connections = {} - self.MachineRoom = {_CFrame = {}} :: MovingObjects.MachineRoom - self.ElevatorBox_1960 = TagsConstructor:Request("ElevatorMover_1960") :: UnionOperation - self.ElevatorDoor1 = TagsConstructor:Request("ElevatorDoor_1960_1") :: BasePart - self.ElevatorDoor2 = TagsConstructor:Request("ElevatorDoor_1960_2") :: BasePart - self.ElevatorDoorSensor = TagsConstructor:Request("ElevatorDoor_Sensor_1960") :: Folder - self.Ropes = TagsConstructor:Request("1960_ElevatorPulleyRope") :: {Instance} - self.HallDisplays = TagsConstructor:Request("Otis1960_LandingFloorDisplay") :: {Instance} - - self.MachineRoom.Pulley = TagsConstructor:Request("Otis1960_Pulley") :: UnionOperation - self.MachineRoom.Pulley2 = TagsConstructor:Request("Otis1960_Pulley2") :: UnionOperation - self.MachineRoom.Governor = TagsConstructor:Request("Otis1960_Governor") :: UnionOperation - self.MachineRoom.GovernorFlyballs = TagsConstructor:Request("Otis1960_GovernorFlyballs") :: Part - self.MachineRoom.PiePlatePulley = TagsConstructor:Request("Otis1960_PieplatePulley") :: UnionOperation - self.MachineRoom.PiePlatePlates = TagsConstructor:Request("Otis1960_PiePlatePlates") :: UnionOperation - self.MachineRoom.PiePlateSelector = TagsConstructor:Request("Otis1960_PiePlateSelector") :: UnionOperation - - local LanternDisplay = TagsConstructor:Request("Otis1960_LanternDisplayMain") :: UnionOperation - - self.MOConstructor = MovingObjects.constructor({MachineRoom = self.MachineRoom} :: MovingObjects.InstanceTree) - - --Start the hall displays - self.HallDisplaysConstructor = HallDisplays.constructor(Attributes.CurrentFloor, self.HallDisplays) - - --Init the doors - self.ElevatorDoorsConstructor = Doors.constructor(LandingDoors, self.ElevatorBox_1960, self.ElevatorDoor1, self.ElevatorDoor2, self.ElevatorDoorSensor) - - --Init the ropes - self.TractionRopesConstructor = TractionRopes.constructor(self.Ropes, self.ElevatorBox_1960, LevelingModule.Leveling) - - --Init the lanterns - self.LanternsConstructor = Lanterns.constructor(LanternDisplay, LanternsTags, Elevator.Sounds, Elevator.Colors) - - local ButtonsTagsConstructor = ButtonTags.constructor(TagsConstructor, ButtonsTags, Elevator.Name) - local Otis1960_Buttons = ButtonsTagsConstructor:CreatePromptButtons() - - self.ButtonsConstructor = Buttons.constructor(Elevator.Attributes, Elevator.Colors) - - self.HallDisplaysConstructor:BindHallDisplays() - - self.BoxAttachment, - self.BoxAlignPosition, - self.BoxAlignOrientation = ElevatorMover( - self.ElevatorBox_1960, - Vector3.new(self.ElevatorBox_1960.Position.X, LevelingModule.Leveling[Attributes.Goal.Value] or LevelingModule.Leveling[1], self.ElevatorBox_1960.Position.Z), - Elevator.Responsiveness, - Elevator.MaxVelocity - ) - - --Relays - self.PhysicalRelays = PhysicalRelays.constructor(Elevator.Name, ButtonsTagsConstructor.Buttons[Elevator.Name].Relays) - self.RelayAlgorithmConstructor = RelayAlgorithm.constructor(self.BoxAlignPosition, Attributes, Doors.Attributes) - self.RelayConstructor = Relay.constructor( - self.PhysicalRelays, - self.RelayAlgorithmConstructor, - Attributes, - Doors.Attributes, - LevelingModule, - self.BoxAlignPosition, - self.ElevatorBox_1960 - ) --self.RelayConstructor:BulkConnect()