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 = { 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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,3 +1,7 @@
--!optimize 2
--!native
--!strict
local Doors = { local Doors = {
Closed = true, Closed = true,
Sensors = true, Sensors = true,

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,3 +1,7 @@
--!optimize 2
--!native
--!strict
local StarterPlayer = game:GetService("StarterPlayer") local StarterPlayer = game:GetService("StarterPlayer")
return function() return function()

View File

@@ -1,3 +1,7 @@
--!optimize 2
--!native
--!strict
return function() return function()
workspace.Gravity = 50 workspace.Gravity = 50
end end

View File

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

View File

@@ -1,3 +1,7 @@
--!optimize 2
--!native
--!strict
--My versions --My versions
type EaseFunction = (n: number) -> number type EaseFunction = (n: number) -> number

View File

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

View File

@@ -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 = {}

View File

@@ -1,3 +1,7 @@
--!optimize 2
--!native
--!strict
local Delta = { local Delta = {
FPS = 60 FPS = 60
} }

View File

@@ -0,0 +1,3 @@
--!optimize 2
--!native
--!strict

View File

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

View File

@@ -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} = {}

View File

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