Paste --!optimize 2, --!native, and --!strict everywhere

This commit is contained in:
2024-02-22 16:59:31 -05:00
parent 75a476c37a
commit 1e8da39805
39 changed files with 156 additions and 1 deletions

View File

@@ -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

View File

@@ -1,3 +1,7 @@
--!optimize 2
--!native
--!strict
local CrouchModule = {
IsCrouching = false,
StandHeight = 2.1,

View File

@@ -1,3 +1,7 @@
--!optimize 2
--!native
--!strict
local Flashlight = {}
Flashlight.__index = Flashlight

View File

@@ -1,3 +1,7 @@
--!optimize 2
--!native
--!strict
local HumanoidModule = {}
HumanoidModule.__index = HumanoidModule

View File

@@ -1,3 +1,7 @@
--!optimize 2
--!native
--!strict
local HumanoidRPSettings = {}
HumanoidRPSettings.__index = HumanoidRPSettings

View File

@@ -1,3 +1,7 @@
--!optimize 2
--!native
--!strict
local Spine = {
Running = false
}

View File

@@ -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

View File

@@ -1,3 +1,7 @@
--!optimize 2
--!native
--!strict
local Flashlight = {}
Flashlight.__index = Flashlight

View File

@@ -1,3 +1,7 @@
--!optimize 2
--!native
--!strict
--This really should be only client
local Shadows = {}

View File

@@ -1,3 +1,7 @@
--!optimize 2
--!native
--!strict
local Spine = {
Enabled = true,
Multiplier = .5

View File

@@ -1,3 +1,7 @@
--!optimize 2
--!native
--!strict
local Character = script.Parent.Parent
local preprocessor = {}

View File

@@ -1,3 +1,7 @@
--!optimize 2
--!native
--!strict
local CoreGuis = {
AllowReset = false,
AllowEmotes = true,

View File

@@ -1,3 +1,7 @@
--!optimize 2
--!native
--!strict
local GuiModule = {}
GuiModule.__index = GuiModule

View File

@@ -1,3 +1,7 @@
--!optimize 2
--!native
--!strict
local Mouse = {}
local UIS = game:GetService("UserInputService")

View File

@@ -1,3 +1,7 @@
--!optimize 2
--!native
--!strict
local CrosshairModule = {
Icon = "rbxassetid://12643750723"
}

View File

@@ -1,3 +1,7 @@
--!optimize 2
--!native
--!strict
local HealthModule = {}
HealthModule.__index = HealthModule

View File

@@ -1,3 +1,7 @@
--!optimize 2
--!native
--!strict
local VignetteModule = {
Enabled = false,
Icon = "rbxassetid://4576475446"

View File

@@ -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"))