Use __GoToFloor instead of __MovingHeartbeat for the stop button

This commit is contained in:
2024-05-14 20:14:21 -04:00
parent a06734ec29
commit 0735c4f967

View File

@@ -214,7 +214,7 @@ local function HookButtons(self: ClassConstructor, ButtonNameType: Enums.ButtonT
else
(ButtonTree.Inst :: BasePart).Position-=Vector3.new(0,0,.05)
self:__MovingHeartbeat(ElevatorGoingUpDirection(Attributes.CurrentFloor.Value, Attributes.GoalFloor.Value))
self:__GoToFloor(Leveling[Attributes.CurrentFloor.Value], ElevatorGoingUpDirection(Attributes.CurrentFloor.Value, Attributes.GoalFloor.Value))
self.BoxAlignPosition.MaxVelocity = Elevator.MaxVelocity
end
end)