light switch work and new prompt system

This commit is contained in:
2024-04-14 21:40:04 -04:00
parent f670e19c3c
commit 0fa054f97d
8 changed files with 256 additions and 90 deletions

View File

@@ -2,28 +2,39 @@
--!native
--!strict
local RS: RunService = game:GetService("RunService")
local Storage: ReplicatedStorage = game:GetService("ReplicatedStorage")
local ShowEditorEntities = game:GetService("RunService"):IsServer()
local Elevators = script:WaitForChild("Elevators")
local Storage = game:GetService("ReplicatedStorage")
local TagsModule = require(Storage:WaitForChild("Tags"))
local Elevators = script:WaitForChild("Elevators")
local Otis1960_Module = require(Elevators:WaitForChild("Otis1960"))
local Map = script:WaitForChild("Map")
local LightSwitchesConstructor = require(Map:WaitForChild("LightSwitches"))
local TagService = require(script:WaitForChild("TagService"))
local HideEditorEntities = require(script:WaitForChild("EditorEntities"))
local Lighting_Stuff = require(script:WaitForChild("Lighting"))
local Workspace_Stuff = require(script:WaitForChild("Workspace"))
local StarterPlayer_Stuff = require(script:WaitForChild("StarterPlayer"))
local Otis1960_Module = require(Elevators:WaitForChild("Otis1960"))
local TagsConstructor = TagsModule.constructor()
local TagsConstructor = TagsModule.constructor()
local TagServiceConstructor = TagService.constructor(TagsConstructor)
print("[DEBUG] Tags=", TagsConstructor.__export)
HideEditorEntities.indexAll(not false)
HideEditorEntities.indexAll(ShowEditorEntities)
TagsConstructor:Nuke()
StarterPlayer_Stuff()
Lighting_Stuff()
Workspace_Stuff()
--Map
local Interactables = TagServiceConstructor:Interactables()
print("[DEBUG] Interactables=", Interactables)
local LightSwitches = LightSwitchesConstructor.constructor(Interactables.LightSwitches)
--Start the elevators
local Otis1960 = Otis1960_Module.constructor(TagsConstructor)
local Otis1960 = Otis1960_Module.constructor(TagsConstructor, TagServiceConstructor)