optimize native scripts

This commit is contained in:
2024-09-06 14:58:12 -04:00
parent f0bf277d13
commit a5afa7792a
61 changed files with 45 additions and 96 deletions

View File

@@ -1,5 +1,4 @@
--!optimize 2
--!native
--!strict
--Slap this here

View File

@@ -1,5 +1,4 @@
--!optimize 2
--!native
--!strict
local Elevators = script.Parent
@@ -305,6 +304,7 @@ local Debounce = {
Leveling3Phase = false
}
@native
local function CabTraveling(self: ClassConstructor, deltaTime: number, LEVEL_VEC3_Y_WRAP: Vector3)
local ElevatorPosition = self.Elevator.BoxModel.Position
local AtFloorY = self.FloorLevelingPositions[FloorsClamp(self, self.Attributes.TravelingUpwards.Value and self.Attributes.CurrentFloor.Value+1 or self.Attributes.CurrentFloor.Value-1)]