elevator stop button MaxVelocity

This commit is contained in:
2024-05-14 18:15:28 -04:00
parent 490a002d5c
commit 99dc3fb92d

View File

@@ -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