work on types and convert back to original gravity

This commit is contained in:
2024-02-25 23:27:10 -05:00
parent 1e8da39805
commit 666ffd2fcf
2 changed files with 8 additions and 6 deletions

View File

@@ -27,8 +27,8 @@ local function HideBarrierCollision(Part: BasePart, enabled: boolean)
end end
local function HideRaycastContainers(Folder: Folder, enabled: boolean) local function HideRaycastContainers(Folder: Folder, enabled: boolean)
local End = Folder:WaitForChild("End") local End = Folder:WaitForChild("End") :: BasePart
local Start = Folder:WaitForChild("Start") local Start = Folder:WaitForChild("Start") :: BasePart
End.CanCollide = false End.CanCollide = false
End.CastShadow = false End.CastShadow = false
@@ -53,6 +53,8 @@ local EditorEntities = {
["LadderContact"] = HideLadderContact ["LadderContact"] = HideLadderContact
} }
type HideEditor = (a1: BasePart | Folder, a2: boolean) -> ()
function StudioEntities.indexAll(enabled: boolean): Entities function StudioEntities.indexAll(enabled: boolean): Entities
if #StudioEntities.IndexedEntities == 0 then if #StudioEntities.IndexedEntities == 0 then
--Run when the server starts --Run when the server starts
@@ -60,7 +62,7 @@ function StudioEntities.indexAll(enabled: boolean): Entities
for i = 1, #WorkspaceEnt do for i = 1, #WorkspaceEnt do
local Item: Instance = WorkspaceEnt[i] local Item: Instance = WorkspaceEnt[i]
local Case: Instance = EditorEntities[Item.Name] local Case: HideEditor = EditorEntities[Item.Name]
if Case then if Case then
table.insert(StudioEntities.IndexedEntities, Item) table.insert(StudioEntities.IndexedEntities, Item)
Case(Item, enabled) Case(Item, enabled)

View File

@@ -3,5 +3,5 @@
--!strict --!strict
return function() return function()
workspace.Gravity = 50 workspace.Gravity = 150
end end