mirror of
https://github.com/unixtensor/Roblox-Elevator-Game.git
synced 2025-12-16 10:51:55 +00:00
Paste --!optimize 2, --!native, and --!strict everywhere
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
local Floors = {}
|
||||
Floors.__index = Floors
|
||||
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
local Leveling: {[number]: number} = {
|
||||
[1] = 13.205,
|
||||
[10] = 239.216
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
return function(ElevatorBox: BasePart, StartPosition: Vector3)
|
||||
local BoxAttachment = Instance.new("Attachment")
|
||||
BoxAttachment.Parent = ElevatorBox
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
local Doors = {
|
||||
Closed = true,
|
||||
Sensors = true,
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
local Elevator = script.Parent
|
||||
local Elevators = (Elevator :: Instance).Parent
|
||||
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
--All debugging objects such as light source indicating objects will be turned invisible
|
||||
|
||||
local Players = game:GetService("Players")
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
local function Sky(): Sky
|
||||
local SkyBox = Instance.new("Sky")
|
||||
SkyBox.MoonAngularSize = 8
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
local Lighting = game:GetService("Lighting")
|
||||
local Terrain = workspace:WaitForChild("Terrain")
|
||||
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
local StarterPlayer = game:GetService("StarterPlayer")
|
||||
|
||||
return function()
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
return function()
|
||||
workspace.Gravity = 50
|
||||
end
|
||||
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
local HideEditorEntities = require(script:WaitForChild("EditorEntities"))
|
||||
local Lighting_Stuff = require(script:WaitForChild("Lighting"))
|
||||
local Workspace_Stuff = require(script:WaitForChild("Workspace"))
|
||||
|
||||
Reference in New Issue
Block a user