diff --git a/src/server/Studio/EditorEntities.lua b/src/server/Studio/EditorEntities.lua index 52ef5e5..e08e16d 100644 --- a/src/server/Studio/EditorEntities.lua +++ b/src/server/Studio/EditorEntities.lua @@ -5,7 +5,7 @@ --All debugging objects such as light source indicating objects will be turned invisible local Players = game:GetService("Players") -local CS = game:GetService("CollectionService") +local CS = game:GetService("CollectionService") export type Entities = { IndexedEntities: {Instance} @@ -27,8 +27,8 @@ local function HideBarrierCollision(Part: BasePart, enabled: boolean) end local function HideRaycastContainers(Folder: Folder, enabled: boolean) - local End = Folder:WaitForChild("End") - local Start = Folder:WaitForChild("Start") + local End = Folder:WaitForChild("End") :: BasePart + local Start = Folder:WaitForChild("Start") :: BasePart End.CanCollide = false End.CastShadow = false @@ -53,14 +53,16 @@ local EditorEntities = { ["LadderContact"] = HideLadderContact } +type HideEditor = (a1: BasePart | Folder, a2: boolean) -> () + function StudioEntities.indexAll(enabled: boolean): Entities if #StudioEntities.IndexedEntities == 0 then --Run when the server starts local WorkspaceEnt = workspace:GetDescendants() - + for i = 1, #WorkspaceEnt do local Item: Instance = WorkspaceEnt[i] - local Case: Instance = EditorEntities[Item.Name] + local Case: HideEditor = EditorEntities[Item.Name] if Case then table.insert(StudioEntities.IndexedEntities, Item) Case(Item, enabled) diff --git a/src/server/Studio/Workspace.lua b/src/server/Studio/Workspace.lua index 3864da2..41cea15 100644 --- a/src/server/Studio/Workspace.lua +++ b/src/server/Studio/Workspace.lua @@ -3,5 +3,5 @@ --!strict return function() - workspace.Gravity = 50 + workspace.Gravity = 150 end \ No newline at end of file