mirror of
https://github.com/unixtensor/Roblox-Elevator-Game.git
synced 2025-12-14 14:51: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
|
--All debugging objects such as light source indicating objects will be turned invisible
|
||||||
|
|
||||||
local Players = game:GetService("Players")
|
local Players = game:GetService("Players")
|
||||||
local CS = game:GetService("CollectionService")
|
local CS = game:GetService("CollectionService")
|
||||||
|
|
||||||
export type Entities = {
|
export type Entities = {
|
||||||
IndexedEntities: {Instance}
|
IndexedEntities: {Instance}
|
||||||
@@ -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)
|
||||||
|
|||||||
@@ -3,5 +3,5 @@
|
|||||||
--!strict
|
--!strict
|
||||||
|
|
||||||
return function()
|
return function()
|
||||||
workspace.Gravity = 50
|
workspace.Gravity = 150
|
||||||
end
|
end
|
||||||
Reference in New Issue
Block a user