mirror of
https://github.com/unixtensor/Roblox-Elevator-Game.git
synced 2025-12-14 06:41:55 +00:00
work on types and convert back to original gravity
This commit is contained in:
@@ -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,6 +53,8 @@ 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
|
||||
@@ -60,7 +62,7 @@ function StudioEntities.indexAll(enabled: boolean): Entities
|
||||
|
||||
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)
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
--!strict
|
||||
|
||||
return function()
|
||||
workspace.Gravity = 50
|
||||
workspace.Gravity = 150
|
||||
end
|
||||
Reference in New Issue
Block a user