From 99dc3fb92d5022ce4bef6944820d26bf7acef669 Mon Sep 17 00:00:00 2001 From: unittensor Date: Tue, 14 May 2024 18:15:28 -0400 Subject: [PATCH] elevator stop button MaxVelocity --- src/server/main/Elevators/Otis1960/init.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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