work on rotating objects

This commit is contained in:
2024-03-30 01:03:13 -04:00
parent a5df602554
commit ef8ceb723f
4 changed files with 22 additions and 25 deletions

View File

@@ -98,11 +98,6 @@ local function HookButtons(self: ClassConstructor, ButtonsConstructor: ButtonTag
self:GoToLevel(DecodedFloor)
end
end)
if DecodedFloor == 10 then
task.wait(5)
self:GoToLevel(DecodedFloor)
end
elseif ButtonNameType == Enums.ButtonTree.Special then
elseif ButtonNameType == Enums.ButtonTree.Landing then
@@ -134,6 +129,7 @@ function Otis1960.constructor(Tags)
self.Ropes = Tags["1960_ElevatorPulleyRope"] :: {Instance}
self.PiePlateSelector = Tags.Otis1960_PiePlateSelector :: UnionOperation
self.PiePlatePlates = Tags.Otis1960_PiePlatePlates :: UnionOperation
self.WheelRotation = Tags.WheelRotation :: {Instance}
self.BoxAttachment,
self.BoxAlignPosition,
@@ -158,7 +154,7 @@ end
function Otis1960:__MoveFloors(Level)
local ElevatorBoxCurrentPos = self.ElevatorBox_1960.Position
self.TractionRopes:Moving(Level, 26)
self.PiePlate:test()
--self.PiePlate:test()
self.BoxAlignPosition.Position = Vector3.new(ElevatorBoxCurrentPos.X, Level, ElevatorBoxCurrentPos.Z)
end