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

@@ -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