This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--!strict | |
-- NEEDS TO BE RUN IN PLUGIN OR COMMAND LINE | |
--!strict | |
local STEP = 0.005 | |
local quadTemplate = game:GetService("ServerStorage"):WaitForChild("Quad") :: MeshPart | |
-- Function to get surface CFrame and Vector2 size | |
function getSurfaceCFrameAndSize(normalId: Enum.NormalId, cframe: CFrame, size: Vector3): (CFrame, Vector2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# make a temp file | |
lsp_results=$(mktemp) | |
set +e | |
luau-lsp analyze "src" 2> "$lsp_results" #obvs swap this out to your actual lsp call | |
set -e | |
# iterate through the results |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--!nocheck | |
export type BenchmarkProfiler = { | |
start: (label: string) -> (), | |
stop: (t: number?) -> (), | |
} | |
export type BenchFunction<Parameter> = ( | |
profiler: BenchmarkProfiler, | |
parameter: Parameter | |
) -> () | |
export type BenchModule<Parameter> = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--!strict | |
--!native | |
-- Services | |
-- Packages | |
-- Modules | |
-- Types | |
type RectangleImpl = { | |
__index: RectangleImpl, | |
__tostring: (self: Rectangle) -> string, | |
__eq: (self: Rectangle, other: Rectangle) -> boolean, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--!strict | |
--!native | |
-- Services | |
-- Packages | |
-- Modules | |
-- Types | |
export type Encoding = "i8" | "u8" | "i16" | "u16" | "i32" | "u32" | "f32" | "f64" | |
-- Constants | |
-- Variables | |
-- References |
OlderNewer