mirror of
https://github.com/unixtensor/Roblox-Elevator-Game.git
synced 2025-12-14 14: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 Actions = {
|
local Actions = {
|
||||||
ActionCurrent = false,
|
ActionCurrent = false,
|
||||||
Walk = 10,
|
Walk = 10,
|
||||||
@@ -20,4 +24,3 @@ function Actions:Disable()
|
|||||||
self.HumanoidSettingsInherent:SetWalkSpeed(Actions.Walk)
|
self.HumanoidSettingsInherent:SetWalkSpeed(Actions.Walk)
|
||||||
end
|
end
|
||||||
|
|
||||||
return Actions
|
|
||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
local CrouchModule = {
|
local CrouchModule = {
|
||||||
IsCrouching = false,
|
IsCrouching = false,
|
||||||
StandHeight = 2.1,
|
StandHeight = 2.1,
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
local Flashlight = {}
|
local Flashlight = {}
|
||||||
Flashlight.__index = Flashlight
|
Flashlight.__index = Flashlight
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
local HumanoidModule = {}
|
local HumanoidModule = {}
|
||||||
HumanoidModule.__index = HumanoidModule
|
HumanoidModule.__index = HumanoidModule
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
local HumanoidRPSettings = {}
|
local HumanoidRPSettings = {}
|
||||||
HumanoidRPSettings.__index = HumanoidRPSettings
|
HumanoidRPSettings.__index = HumanoidRPSettings
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
local Spine = {
|
local Spine = {
|
||||||
Running = false
|
Running = false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
local Character = script.Parent.Parent
|
local Character = script.Parent.Parent
|
||||||
local preprocessor = {}
|
local preprocessor = {}
|
||||||
|
|
||||||
@@ -13,6 +17,7 @@ _G.include = function(this: LuaSourceContainer, FunName: string, ...)
|
|||||||
return type(switch) == "function" and switch(...) or switch
|
return type(switch) == "function" and switch(...) or switch
|
||||||
else
|
else
|
||||||
warn(`Preprocessor append failed "{FunName}"`, debug.traceback())
|
warn(`Preprocessor append failed "{FunName}"`, debug.traceback())
|
||||||
|
return nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
local Flashlight = {}
|
local Flashlight = {}
|
||||||
Flashlight.__index = Flashlight
|
Flashlight.__index = Flashlight
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
--This really should be only client
|
--This really should be only client
|
||||||
|
|
||||||
local Shadows = {}
|
local Shadows = {}
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
local Spine = {
|
local Spine = {
|
||||||
Enabled = true,
|
Enabled = true,
|
||||||
Multiplier = .5
|
Multiplier = .5
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
local Character = script.Parent.Parent
|
local Character = script.Parent.Parent
|
||||||
local preprocessor = {}
|
local preprocessor = {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
local CoreGuis = {
|
local CoreGuis = {
|
||||||
AllowReset = false,
|
AllowReset = false,
|
||||||
AllowEmotes = true,
|
AllowEmotes = true,
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
local GuiModule = {}
|
local GuiModule = {}
|
||||||
GuiModule.__index = GuiModule
|
GuiModule.__index = GuiModule
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
local Mouse = {}
|
local Mouse = {}
|
||||||
|
|
||||||
local UIS = game:GetService("UserInputService")
|
local UIS = game:GetService("UserInputService")
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
local CrosshairModule = {
|
local CrosshairModule = {
|
||||||
Icon = "rbxassetid://12643750723"
|
Icon = "rbxassetid://12643750723"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
local HealthModule = {}
|
local HealthModule = {}
|
||||||
HealthModule.__index = HealthModule
|
HealthModule.__index = HealthModule
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
local VignetteModule = {
|
local VignetteModule = {
|
||||||
Enabled = false,
|
Enabled = false,
|
||||||
Icon = "rbxassetid://4576475446"
|
Icon = "rbxassetid://4576475446"
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
local UI = script:WaitForChild("UI")
|
local UI = script:WaitForChild("UI")
|
||||||
local CrosshairSettings = require(UI:WaitForChild("Crosshair"))
|
local CrosshairSettings = require(UI:WaitForChild("Crosshair"))
|
||||||
local VignetteSettings = require(UI:WaitForChild("Vignette"))
|
local VignetteSettings = require(UI:WaitForChild("Vignette"))
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
--Not a good idea to call modules from other services here
|
--Not a good idea to call modules from other services here
|
||||||
|
|
||||||
--Who said UI on here cant look like a web design lole,
|
--Who said UI on here cant look like a web design lole,
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
local load_elapse_start = os.clock()
|
local load_elapse_start = os.clock()
|
||||||
|
|
||||||
local ReplicatedFirst = game:GetService("ReplicatedFirst")
|
local ReplicatedFirst = game:GetService("ReplicatedFirst")
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
local Floors = {}
|
local Floors = {}
|
||||||
Floors.__index = Floors
|
Floors.__index = Floors
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
local Leveling: {[number]: number} = {
|
local Leveling: {[number]: number} = {
|
||||||
[1] = 13.205,
|
[1] = 13.205,
|
||||||
[10] = 239.216
|
[10] = 239.216
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
return function(ElevatorBox: BasePart, StartPosition: Vector3)
|
return function(ElevatorBox: BasePart, StartPosition: Vector3)
|
||||||
local BoxAttachment = Instance.new("Attachment")
|
local BoxAttachment = Instance.new("Attachment")
|
||||||
BoxAttachment.Parent = ElevatorBox
|
BoxAttachment.Parent = ElevatorBox
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
local Doors = {
|
local Doors = {
|
||||||
Closed = true,
|
Closed = true,
|
||||||
Sensors = true,
|
Sensors = true,
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
local Elevator = script.Parent
|
local Elevator = script.Parent
|
||||||
local Elevators = (Elevator :: Instance).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
|
--All debugging objects such as light source indicating objects will be turned invisible
|
||||||
|
|
||||||
local Players = game:GetService("Players")
|
local Players = game:GetService("Players")
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
local function Sky(): Sky
|
local function Sky(): Sky
|
||||||
local SkyBox = Instance.new("Sky")
|
local SkyBox = Instance.new("Sky")
|
||||||
SkyBox.MoonAngularSize = 8
|
SkyBox.MoonAngularSize = 8
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
local Lighting = game:GetService("Lighting")
|
local Lighting = game:GetService("Lighting")
|
||||||
local Terrain = workspace:WaitForChild("Terrain")
|
local Terrain = workspace:WaitForChild("Terrain")
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
local StarterPlayer = game:GetService("StarterPlayer")
|
local StarterPlayer = game:GetService("StarterPlayer")
|
||||||
|
|
||||||
return function()
|
return function()
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
return function()
|
return function()
|
||||||
workspace.Gravity = 50
|
workspace.Gravity = 50
|
||||||
end
|
end
|
||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
local HideEditorEntities = require(script:WaitForChild("EditorEntities"))
|
local HideEditorEntities = require(script:WaitForChild("EditorEntities"))
|
||||||
local Lighting_Stuff = require(script:WaitForChild("Lighting"))
|
local Lighting_Stuff = require(script:WaitForChild("Lighting"))
|
||||||
local Workspace_Stuff = require(script:WaitForChild("Workspace"))
|
local Workspace_Stuff = require(script:WaitForChild("Workspace"))
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
--My versions
|
--My versions
|
||||||
|
|
||||||
type EaseFunction = (n: number) -> number
|
type EaseFunction = (n: number) -> number
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
local Camera = {}
|
local Camera = {}
|
||||||
Camera.__index = Camera
|
Camera.__index = Camera
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
--I couldn't get ContextActionService to work how i wanted it to
|
--I couldn't get ContextActionService to work how i wanted it to
|
||||||
|
|
||||||
local BindLink = {}
|
local BindLink = {}
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
local Delta = {
|
local Delta = {
|
||||||
FPS = 60
|
FPS = 60
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
local StringModule = {}
|
local StringModule = {}
|
||||||
StringModule.__index = StringModule
|
StringModule.__index = StringModule
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
local CS = game:GetService("CollectionService")
|
local CS = game:GetService("CollectionService")
|
||||||
|
|
||||||
local exports: {[string]: Instance} = {}
|
local exports: {[string]: Instance} = {}
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
--!optimize 2
|
||||||
|
--!native
|
||||||
|
--!strict
|
||||||
|
|
||||||
local Tween = {}
|
local Tween = {}
|
||||||
Tween.__index = Tween
|
Tween.__index = Tween
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user