mirror of
https://github.com/unixtensor/Roblox-Elevator-Game.git
synced 2026-02-03 21:26:49 +00:00
big commit
This commit is contained in:
23
src/server/Studio/init.server.lua
Normal file
23
src/server/Studio/init.server.lua
Normal file
@@ -0,0 +1,23 @@
|
||||
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 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
|
||||
Reference in New Issue
Block a user