Load folder and refactor Lights

This commit is contained in:
2024-04-28 23:09:21 -04:00
parent ff8f3e4915
commit 0fa0e2b8f6
12 changed files with 239 additions and 108 deletions

View File

@@ -4,8 +4,9 @@
local ElevatorsDir = script.Parent
local MainDir = ElevatorsDir.Parent
local LoadDir = MainDir:WaitForChild("Load")
local Tags = require(MainDir:WaitForChild("Tags"))
local Tags = require(LoadDir:WaitForChild("Tags"))
local Storage = game:GetService("ReplicatedStorage")
local Enums = require(Storage:WaitForChild("Enums"))
@@ -26,7 +27,6 @@ type Impl_Constructor = {
} & Impl_Static_Props
type Impl_Static_Props = {
ButtonEnum: any,
DefaultMaxActivationDistance: number,
DefaultHoldDuration: number
}
@@ -159,6 +159,7 @@ function ButtonsModule:AestheticActivateButton(Button, ActivatedState, Activated
Button.Position+=LookVec
task.wait(.30)
if Glass then
Glass.Position-=LookVec
end

View File

@@ -3,11 +3,12 @@
--!strict
local ElevatorDir = script.Parent
local MainDir = ElevatorDir.Parent
local MainDir = ElevatorDir.Parent
local LoadDir = MainDir:WaitForChild("Load")
local Storage: ReplicatedStorage = game:GetService("ReplicatedStorage")
local Tween = require(Storage:WaitForChild("Tween"))
local Tags = require(MainDir:WaitForChild("Tags"))
local Tags = require(LoadDir:WaitForChild("Tags"))
local Enums = require(Storage:WaitForChild("Enums"))
type rbxassetid = string
@@ -88,7 +89,7 @@ function Lanterns:Activate(EnabledState, IsDirectionLantern, Lantern)
if IsDirectionLantern then
self.AudioChimeDirection:Play()
else
Tween.Completed:Connect(function()
Tween.Completed:Once(function()
self.AudioChimeLanding:Play()
end)
end

View File

@@ -4,6 +4,7 @@
local Elevators = script.Parent
local MainDir = Elevators.Parent
local LoadDir = MainDir:WaitForChild("Load")
local Storage: ReplicatedStorage = game:GetService("ReplicatedStorage")
local RS: RunService = game:GetService("RunService")
@@ -20,7 +21,7 @@ local TractionRopes = require(Elevators:WaitForChild("TractionRopes"))
local Lanterns = require(Elevators:WaitForChild("Lanterns"))
local PromptModule = require(MainDir:WaitForChild("Map"):WaitForChild("Prompts"))
local Tags = require(MainDir:WaitForChild("Tags"))
local Tags = require(LoadDir:WaitForChild("Tags"))
type rbxassetid = string