diff --git a/src/server/main/Elevators/Otis1960/init.lua b/src/server/main/Elevators/Otis1960/init.lua index 650869a..e04e128 100644 --- a/src/server/main/Elevators/Otis1960/init.lua +++ b/src/server/main/Elevators/Otis1960/init.lua @@ -210,13 +210,12 @@ local function HookButtons(self: ClassConstructor, ButtonNameType: Enums.ButtonT if self.__MovingConnection and self.__MovingConnection.Connected then self.__MovingConnection:Disconnect() end + self.BoxAlignPosition.MaxVelocity = 0 else (ButtonTree.Inst :: BasePart).Position-=Vector3.new(0,0,.05) - if self.__MovingConnection and self.__MovingConnection.Connected then - self.__MovingConnection:Disconnect() - end self.__MovingConnection = self:__MovingHeartbeat(ElevatorGoingUpDirection(Attributes.CurrentFloor.Value, Attributes.GoalFloor.Value)) + self.BoxAlignPosition.MaxVelocity = Elevator.MaxVelocity end end) elseif ButtonNameType == Enums.ButtonTree.Relays then