Tag removal and new serverside structure

This commit is contained in:
2024-03-03 02:34:59 -05:00
parent a3a8720c91
commit 1af1c6919e
15 changed files with 72 additions and 88 deletions

View File

@@ -0,0 +1,36 @@
--!optimize 2
--!native
--!strict
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 RS = game:GetService("RunService")
local Storage = game:GetService("ReplicatedStorage")
local TagsModule = require(Storage:WaitForChild("Tags"))
local TagsConstructor = TagsModule.constructor()
local Tags = TagsConstructor.Exports
print("[DEBUG] Tags=", Tags)
local Elevators = script:WaitForChild("Elevators")
local ServerStorage = Storage:WaitForChild("Server")
local EditorEntities = Instance.new("BindableFunction")
EditorEntities.Name = "StudioIndexedEntities"
EditorEntities.Parent = ServerStorage
local StudioEntities = HideEditorEntities.indexAll(not RS:IsStudio())
StarterPlayer_Stuff()
Lighting_Stuff()
Workspace_Stuff()
EditorEntities.OnInvoke = function(): HideEditorEntities.Entities
return StudioEntities.IndexedEntities
end
TagsConstructor:Nuke()