mirror of
https://github.com/unixtensor/Roblox-Elevator-Game.git
synced 2025-12-15 21:41:53 +00:00
light switch work and new prompt system
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user