mirror of
https://github.com/unixtensor/Roblox-Elevator-Game.git
synced 2025-12-14 23:01:53 +00:00
Paste --!optimize 2, --!native, and --!strict everywhere
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
local Actions = {
|
||||
ActionCurrent = false,
|
||||
Walk = 10,
|
||||
@@ -20,4 +24,3 @@ function Actions:Disable()
|
||||
self.HumanoidSettingsInherent:SetWalkSpeed(Actions.Walk)
|
||||
end
|
||||
|
||||
return Actions
|
||||
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
local CrouchModule = {
|
||||
IsCrouching = false,
|
||||
StandHeight = 2.1,
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
local Flashlight = {}
|
||||
Flashlight.__index = Flashlight
|
||||
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
local HumanoidModule = {}
|
||||
HumanoidModule.__index = HumanoidModule
|
||||
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
local HumanoidRPSettings = {}
|
||||
HumanoidRPSettings.__index = HumanoidRPSettings
|
||||
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
local Spine = {
|
||||
Running = false
|
||||
}
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
local Character = script.Parent.Parent
|
||||
local preprocessor = {}
|
||||
|
||||
@@ -13,6 +17,7 @@ _G.include = function(this: LuaSourceContainer, FunName: string, ...)
|
||||
return type(switch) == "function" and switch(...) or switch
|
||||
else
|
||||
warn(`Preprocessor append failed "{FunName}"`, debug.traceback())
|
||||
return nil
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
local Flashlight = {}
|
||||
Flashlight.__index = Flashlight
|
||||
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
--This really should be only client
|
||||
|
||||
local Shadows = {}
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
local Spine = {
|
||||
Enabled = true,
|
||||
Multiplier = .5
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
local Character = script.Parent.Parent
|
||||
local preprocessor = {}
|
||||
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
local CoreGuis = {
|
||||
AllowReset = false,
|
||||
AllowEmotes = true,
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
local GuiModule = {}
|
||||
GuiModule.__index = GuiModule
|
||||
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
local Mouse = {}
|
||||
|
||||
local UIS = game:GetService("UserInputService")
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
local CrosshairModule = {
|
||||
Icon = "rbxassetid://12643750723"
|
||||
}
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
local HealthModule = {}
|
||||
HealthModule.__index = HealthModule
|
||||
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
local VignetteModule = {
|
||||
Enabled = false,
|
||||
Icon = "rbxassetid://4576475446"
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
local UI = script:WaitForChild("UI")
|
||||
local CrosshairSettings = require(UI:WaitForChild("Crosshair"))
|
||||
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
|
||||
|
||||
--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 ReplicatedFirst = game:GetService("ReplicatedFirst")
|
||||
|
||||
@@ -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"))
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
--My versions
|
||||
|
||||
type EaseFunction = (n: number) -> number
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
local Camera = {}
|
||||
Camera.__index = Camera
|
||||
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
--I couldn't get ContextActionService to work how i wanted it to
|
||||
|
||||
local BindLink = {}
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
local Delta = {
|
||||
FPS = 60
|
||||
}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
local StringModule = {}
|
||||
StringModule.__index = StringModule
|
||||
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
local CS = game:GetService("CollectionService")
|
||||
|
||||
local exports: {[string]: Instance} = {}
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
--!optimize 2
|
||||
--!native
|
||||
--!strict
|
||||
|
||||
local Tween = {}
|
||||
Tween.__index = Tween
|
||||
|
||||
|
||||
Reference in New Issue
Block a user