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

View File

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

View File

@@ -1,3 +1,7 @@
--!optimize 2
--!native
--!strict
local load_elapse_start = os.clock()
local ReplicatedFirst = game:GetService("ReplicatedFirst")

View File

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

View File

@@ -1,3 +1,7 @@
--!optimize 2
--!native
--!strict
local Leveling: {[number]: number} = {
[1] = 13.205,
[10] = 239.216

View File

@@ -1,3 +1,7 @@
--!optimize 2
--!native
--!strict
return function(ElevatorBox: BasePart, StartPosition: Vector3)
local BoxAttachment = Instance.new("Attachment")
BoxAttachment.Parent = ElevatorBox

View File

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

View File

@@ -1,3 +1,7 @@
--!optimize 2
--!native
--!strict
local Elevator = script.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
local Players = game:GetService("Players")

View File

@@ -1,3 +1,7 @@
--!optimize 2
--!native
--!strict
local function Sky(): Sky
local SkyBox = Instance.new("Sky")
SkyBox.MoonAngularSize = 8

View File

@@ -1,3 +1,7 @@
--!optimize 2
--!native
--!strict
local Lighting = game:GetService("Lighting")
local Terrain = workspace:WaitForChild("Terrain")

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,3 +1,7 @@
--!optimize 2
--!native
--!strict
local 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
local BindLink = {}

View File

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

View File

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

View File

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

View File

@@ -1,3 +1,7 @@
--!optimize 2
--!native
--!strict
local CS = game:GetService("CollectionService")
local exports: {[string]: Instance} = {}

View File

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