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

@@ -29,10 +29,10 @@ function PPSModule:test()
PPSModule.Delta+=1 PPSModule.Delta+=1
self.PieplateSelector.CFrame=OriginalPositionDelta+Vector3.new(0, PPSModule.Delta/580, 0) self.PieplateSelector.CFrame=OriginalPositionDelta+Vector3.new(0, PPSModule.Delta/580, 0)
self.PiePlatePlates.CFrame=OriginalAngleDelta*CFrame.Angles(-math.rad(Easing.Linear(0, PPSModule.Delta, Easing.InQuad(.5))*5), 0, 0) self.PiePlatePlates.CFrame=OriginalAngleDelta*CFrame.Angles(-math.rad(PPSModule.Delta*5), 0, 0)
end) end)
return self.__SelectorConnection return self.__SelectorConnection
end end
return PPSModule return PPSModule

View File

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

View File

@@ -8,25 +8,26 @@ export type Effects = {
ColorCorrection: ColorCorrectionEffect ColorCorrection: ColorCorrectionEffect
} }
local Lighting = game:GetService("Lighting") local Lighting = game:GetService("Lighting")
local mat_fullbright = false
local Lighting_PropsTree: LightingProps = { local Lighting_PropsTree: LightingProps = {
["Ambient"] = Color3.fromRGB(40,40,40), ["Ambient"] = mat_fullbright and Color3.new(1,1,1) or Color3.fromRGB(40,40,40),
["Brightness"] = 1, ["Brightness"] = 1,
["ColorShift_Bottom"] = Color3.new(0,0,0), ["ColorShift_Bottom"] = Color3.new(0,0,0),
["ColorShift_Top"] = Color3.new(0,0,0), ["ColorShift_Top"] = Color3.new(0,0,0),
["EnvironmentDiffuseScale"] = 1, ["EnvironmentDiffuseScale"] = 1,
["EnvironmentSpecularScale"] = .7, ["EnvironmentSpecularScale"] = .7,
["GlobalShadows"] = true, ["GlobalShadows"] = true,
["OutdoorAmbient"] = Color3.fromRGB(50,50,50), ["OutdoorAmbient"] = Color3.fromRGB(50,50,50),
["ShadowSoftness"] = 1, ["ShadowSoftness"] = 1,
["ClockTime"] = 0, ["ClockTime"] = 0,
["GeographicLatitude"] = 0, ["GeographicLatitude"] = 0,
["Name"] = "Lighting", ["Name"] = "Lighting",
["ExposureCompensation"] = 0, ["ExposureCompensation"] = 0,
["FogColor"] = Color3.new(0,0,0), ["FogColor"] = Color3.new(0,0,0),
["FogEnd"] = 100000, ["FogEnd"] = 10_0000,
["FogStart"] = 100000, ["FogStart"] = 10_0000,
} }
local function Skybox(): (Sky, Atmosphere) local function Skybox(): (Sky, Atmosphere)

View File

@@ -4,7 +4,7 @@
--My versions --My versions
type EaseFunction = (n: number) -> number type EaseFunction = (n: number) -> number
type LinearFunction = (a: number, b: number, t: number) -> number type LinearFunction = (a: number, b: number, t: number) -> number
export type EasingStyles = { export type EasingStyles = {