repo
stringclasses
350 values
file_path
stringlengths
29
200
language
stringclasses
2 values
file_type
stringclasses
4 values
code
stringlengths
2
1.01M
tokens
int64
2
598k
wizevaxel/picguin
wizevaxel-picguin-c3d33ca/scripts/bump.luau
luau
.luau
local PACKAGES_DIR = "packages" local function bump_file(path: string, version: string) local write = zune.fs.readFile(path):gsub('version%s*=%s*"[^"]+"', `version = "{version}"`, 1) zune.fs.writeFile(path, write) end local function bump() local codec = assert(zune.process.args[2], "no codec provided") local vers...
222
wizevaxel/picguin
wizevaxel-picguin-c3d33ca/scripts/tests.luau
luau
.luau
local process = zune.process local fs = zune.fs local PACKAGES_DIR = "packages" local TESTS_DIR = "tests" local function test_package(package_dir: string) local test_file = `{package_dir}/{TESTS_DIR}/test.luau` if fs.stat(test_file).kind ~= "file" then return end print(`\n== {package_dir} ==`) local _ = require...
227
nonlooped/roblox-suite
nonlooped-roblox-suite-fc1c3dd/roblox-animation/scripts/AnimationLoader.lua
luau
.lua
--!strict -- Status: experimental -- Last verified: 2026-06-17 -- Test coverage: no automated coverage -- Intended use: example; adapt and test before production. local AnimationLoader = {} AnimationLoader.__index = AnimationLoader type AnimationLoaderState = { animator: Animator?, cache: { [Animation]: Anima...
616
nonlooped/roblox-suite
nonlooped-roblox-suite-fc1c3dd/roblox-animation/scripts/IKSetup.lua
luau
.lua
--!strict -- Status: experimental -- Last verified: 2026-06-17 -- Test coverage: no automated coverage -- Intended use: example; adapt and test before production. local IKSetup = {} export type IKChainConfig = { parent: Instance, endEffector: BasePart | Bone, chainRoot: BasePart | Bone, target: Attach...
400
nonlooped/roblox-suite
nonlooped-roblox-suite-fc1c3dd/roblox-animation/scripts/TweenHelper.lua
luau
.lua
--!strict -- Status: experimental -- Last verified: 2026-06-17 -- Test coverage: no automated coverage -- Intended use: example; adapt and test before production. local TweenHelper = {} export type TweenConfig = { duration: number, easingStyle: Enum.EasingStyle?, easingDirection: Enum.EasingDirection?, ...
494
nonlooped/roblox-suite
nonlooped-roblox-suite-fc1c3dd/roblox-audio/scripts/AudioBus.lua
luau
.lua
--!strict -- Status: experimental -- Last verified: 2026-06-17 -- Test coverage: no automated coverage -- Intended use: example; adapt and test before production. --[[ AudioBus.lua A small music/SFX bus helper using the modern audio graph. - Creates separate AudioFader instances for Music and SFX buses. ...
954
nonlooped/roblox-suite
nonlooped-roblox-suite-fc1c3dd/roblox-core/scripts/ServiceHelper.lua
luau
.lua
--!strict -- Status: experimental -- Last verified: 2026-06-17 -- Test coverage: no automated coverage -- Intended use: example; adapt and test before production. --[[ ServiceHelper.lua Small utilities for working with Roblox services and modules safely. local ServiceHelper = require(...) local Players = ServiceHelpe...
227
nonlooped/roblox-suite
nonlooped-roblox-suite-fc1c3dd/roblox-gamepasses/scripts/PassPurchaseHelper.lua
luau
.lua
--!strict -- Status: experimental -- Last verified: 2026-06-17 -- Test coverage: no automated coverage -- Intended use: example; adapt and test before production. --[[ PassPurchaseHelper.lua Client-side helper for game pass purchase UI state and prompting. Usage: local PassHelper = require(...) local helper = PassHel...
1,549
nonlooped/roblox-suite
nonlooped-roblox-suite-fc1c3dd/roblox-mcp/scripts/MCPReadyChecker.lua
luau
.lua
--!strict -- Status: experimental -- Last verified: 2026-06-17 -- Test coverage: no automated coverage -- Intended use: example; adapt and test before production. --[[ MCPReadyChecker.lua Diagnostic utilities for verifying Roblox Studio MCP + Script Sync readiness. Usage with MCP execute_luau: loc...
996
nonlooped/roblox-suite
nonlooped-roblox-suite-fc1c3dd/roblox-mcp/scripts/StudioModelProbe.lua
luau
.lua
--!strict -- Status: experimental -- Last verified: 2026-06-17 -- Test coverage: no automated coverage -- Intended use: example; adapt and test before production. --[[ StudioModelProbe.lua A reusable utility for summarizing the Roblox data model. Usage with MCP execute_luau: local probe = require(...
1,417
nonlooped/roblox-suite
nonlooped-roblox-suite-fc1c3dd/roblox-networking/scripts/RateLimiter.lua
luau
.lua
--!strict -- Status: reviewed -- Last verified: 2026-07-16 -- Test coverage: deterministic regression fixture in tests/RateLimiter.spec.lua -- Intended use: example; adapt configuration and enforcement policy before production. --[[ RateLimiter.lua Per-player, per-action minimum-interval and token-bucket limiter. The ...
1,444
nonlooped/roblox-suite
nonlooped-roblox-suite-fc1c3dd/roblox-npcs/scripts/NPCPathFollower.lua
luau
.lua
--!strict -- Status: experimental -- Last verified: 2026-06-17 -- Test coverage: no automated coverage -- Intended use: example; adapt and test before production. --[[ NPCPathFollower.lua A strict, Humanoid-based path follower with cleanup. Usage: local NPCPathFollower = require(path.to.NPCPathFol...
2,233
nonlooped/roblox-suite
nonlooped-roblox-suite-fc1c3dd/roblox-npcs/scripts/PathfindingUtility.lua
luau
.lua
--!strict -- Status: experimental -- Last verified: 2026-06-17 -- Test coverage: no automated coverage -- Intended use: example; adapt and test before production. --[[ PathfindingUtility.lua Helpers for throttled recomputation and waypoint formatting. Usage: local util = require(path.to.Pathfindin...
352
nonlooped/roblox-suite
nonlooped-roblox-suite-fc1c3dd/roblox-npcs/scripts/PatrolBehavior.lua
luau
.lua
--!strict -- Status: experimental -- Last verified: 2026-06-17 -- Test coverage: no automated coverage -- Intended use: example; adapt and test before production. --[[ PatrolBehavior.lua A simple state machine: Idle → Patrol → Chase → Attack → Return. Usage: local PatrolBehavior = require(path.to....
2,411
nonlooped/roblox-suite
nonlooped-roblox-suite-fc1c3dd/roblox-physics/scripts/DoorHinge.lua
luau
.lua
--!strict -- Status: experimental -- Last verified: 2026-06-17 -- Test coverage: no automated coverage -- Intended use: example; adapt and test before production. --[[ DoorHinge.lua A servo-powered door with open/close state. Setup: - A door part with a HingeConstraint named "Hinge". - The hinge's...
561
nonlooped/roblox-suite
nonlooped-roblox-suite-fc1c3dd/roblox-physics/scripts/Suspension.lua
luau
.lua
--!strict -- Status: experimental -- Last verified: 2026-06-17 -- Test coverage: no automated coverage -- Intended use: example; adapt and test before production. --[[ Suspension.lua Simple spring-damper suspension using SpringConstraint. Setup: - A wheel part connected to a chassis part via SpringCon...
305
nonlooped/roblox-suite
nonlooped-roblox-suite-fc1c3dd/roblox-testing/scripts/DebugDraw.lua
luau
.lua
--!strict -- Status: experimental -- Last verified: 2026-06-17 -- Test coverage: no automated coverage -- Intended use: example; adapt and test before production. --[[ DebugDraw.lua Utility for drawing temporary debug visuals in the 3D world. Usage: local DebugDraw = require(path.to.DebugDraw) ...
751
nonlooped/roblox-suite
nonlooped-roblox-suite-fc1c3dd/roblox-testing/scripts/Logger.lua
luau
.lua
--!strict -- Status: experimental -- Last verified: 2026-06-17 -- Test coverage: no automated coverage -- Intended use: example; adapt and test before production. --[[ Logger.lua A simple structured logger with level filtering. Usage: local Logger = require(path.to.Logger) local log = Logg...
522
nonlooped/roblox-suite
nonlooped-roblox-suite-fc1c3dd/roblox-testing/scripts/TestRunner.lua
luau
.lua
--!strict -- Status: experimental -- Last verified: 2026-06-17 -- Test coverage: no automated coverage -- Intended use: example; adapt and test before production. --[[ TestRunner.lua A minimal in-Studio test runner shim. This is NOT a replacement for TestEZ, which is the standard Roblox testing framew...
2,636
nonlooped/roblox-suite
nonlooped-roblox-suite-fc1c3dd/roblox-user-interfaces/scripts/UIParticlePool.lua
luau
.lua
--!strict -- Status: experimental -- Last verified: 2026-06-17 -- Test coverage: no automated coverage -- Intended use: example; adapt and test before production. --[[ UIParticlePool.lua Simple 2D UI particle pool using ImageLabels + TweenService. Usage (client LocalScript or module): local UIParticlePool = require(p...
1,710
nonlooped/roblox-suite
nonlooped-roblox-suite-fc1c3dd/roblox-vfx/scripts/EffectBurst.lua
luau
.lua
--!strict -- Status: experimental -- Last verified: 2026-06-17 -- Test coverage: no automated coverage -- Intended use: example; adapt and test before production. --[[ EffectBurst.lua Clone-and-destroy helper for one-shot particle bursts. Given a template ParticleEmitter (or a BasePart/Attachment that co...
810
nonlooped/roblox-suite
nonlooped-roblox-suite-fc1c3dd/tests/RunRegressionTests.server.lua
luau
.lua
--!strict -- Controlled Studio fixture. Run in a dedicated published test experience. local ReplicatedStorage = game:GetService("ReplicatedStorage") local TestService = game:GetService("TestService") local suite = ReplicatedStorage:WaitForChild("RobloxSuite") local specs = { suite:WaitForChild("roblox-networking")...
298
chteau/Roblox-Supabase
chteau-Roblox-Supabase-8af6e67/src/Supabase/Rest/QueryFilters.luau
luau
.luau
--[[ Filter methods for building database queries. @module Rest.QueryFilters @private ]] local QueryFilters = {} local Http = game:GetService("HttpService") --[[ Adds an equality filter (equals). @param column string -- Column name to filter @param value any -- Value to compare against @return table -- Return...
1,790
chteau/Roblox-Supabase
chteau-Roblox-Supabase-8af6e67/src/Supabase/Rest/QueryMutations.luau
luau
.luau
--[[ Mutation methods for inserting, updating, and deleting data. @module Rest.QueryMutations @private ]] local QueryMutations = {} local Http = game:GetService("HttpService") -- Re-export types for internal use local Types = require(script.Parent.Types) export type InsertOptions = Types.InsertOptions export type...
742
chteau/Roblox-Supabase
chteau-Roblox-Supabase-8af6e67/src/Supabase/Rest/QueryOperators.luau
luau
.luau
--[[ Filter operators and utilities for building query filters. @module Rest.QueryOperators @private ]] local QueryOperators = {} local Http = game:GetService("HttpService") -- Re-export types for internal use local Types = require(script.Parent.Types) export type OrFilterOptions = Types.OrFilterOptions --[[ Ad...
714
chteau/Roblox-Supabase
chteau-Roblox-Supabase-8af6e67/src/Supabase/Rest/Types.luau
luau
.luau
local Types = {} --------------------------------------------------------------------- -- Base execution interface (available on final stage & also included -- in intermediate stages so execute() is available anywhere). --------------------------------------------------------------------- export type BaseExec = { -- ...
2,351
chteau/Roblox-Supabase
chteau-Roblox-Supabase-8af6e67/src/Supabase/Rest/Utils.luau
luau
.luau
--[[ Utility functions for the Supabase REST client. @module Rest.Utils @private ]] local Utils = {} --[[ Attempts to load user-provided type definitions from a `Database.Types` ModuleScript. @param scriptRoot Instance? -- The script root to search from @return table? -- Loaded types module or nil if not found...
395
chteau/Roblox-Supabase
chteau-Roblox-Supabase-8af6e67/src/Supabase/Rest/init.luau
luau
.luau
--[[ The main REST client class for interacting with Supabase PostgREST API. @module Rest ]] local Rest = {} Rest.__index = Rest -- Import dependencies local Utils = require(script.Utils) local Types = require(script.Types) local QueryBuilder = require(script.QueryBuilder) local RPCBuilder = require(script.RPCBuild...
535
chteau/Roblox-Supabase
chteau-Roblox-Supabase-8af6e67/src/Supabase/UnitTests/RestTypesTest.luau
luau
.luau
--!strict -- ModuleScript: RestTypesTest.luau -- Provides: RestTypesTest.run() local RestTypesTest = {} --------------------------------------------------------------------- -- Utilities --------------------------------------------------------------------- local function hasKey(t: table, k: string) return t[k] ~= n...
1,638
chteau/Roblox-Supabase
chteau-Roblox-Supabase-8af6e67/src/Supabase/init.luau
luau
.luau
--[[ Main Supabase client module that provides unified access to all Supabase services. This module serves as the primary entry point for the Supabase client, providing: - Database queries via PostgREST (select, insert, update, delete, upsert) - PostgreSQL function calls (RPC) - Edge Functions invocation - Compr...
1,364
typeforge-luau/typebrick
typeforge-luau-typebrick-4acc024/src/init.luau
luau
.luau
--!strict --!nolint LocalShadow --> Helpers ---------------------------------------------------------------------------- type function assert_is_msg(input: type, input_type: string, label: string, is: string) local error_msg_start = `\n'{label}' should be of type {is}` local error_msg_end = if is_prim...
5,844
1suite/Solder
1suite-Solder-be32fb5/src/BundledTemplate.luau
luau
.luau
return [==[--// Types are duplicates from `RuntimeTypes.luau` type Solder = { --[[ Invokes the real `require` function, instead of the virtualized one. ]] require: typeof(require), --[[ The environment name that will be emitted in unhandled errors. Example: `<SolderRuntime> • (...
2,603
1suite/Solder
1suite-Solder-be32fb5/src/Bundler.luau
luau
.luau
--[[ Bundler ]] local process = require("@lune/process") local roblox = require("@lune/roblox") local luau = require("@lune/luau") local fs = require("@lune/fs") local bundledTemplate = require("./BundledTemplate") local fileSeparator = process.os == "windows" and "\\" or "/" local function sanitizeReplacement(r...
1,571
1suite/Solder
1suite-Solder-be32fb5/src/SDK.luau
luau
.luau
export type Solder = { --[[ Invokes the real `require` function, instead of the virtualized one. ]] require: typeof(require), --[[ The environment name that will be emitted in unhandled errors. Example: `<SolderRuntime> • (SomeFolder.Handler): An unexpected error occured.`, whe...
524
mokiros/luau_term
mokiros-luau_term-6a6cf12/example/init.client.luau
luau
.luau
local Terminal = require(script.luau_term) local TERMINAL_WIDTH = 80 local TERMINAL_HEIGHT = 30 local TERMINAL_CANVAS_TYPE: "Bitmap" = "Bitmap" local std = script:WaitForChild("stdio") :: RemoteEvent local newSession = script:WaitForChild("NewSession") :: RemoteFunction local parsedFont if TERMINAL_CANVAS_TYPE == "Bi...
884
mokiros/luau_term
mokiros-luau_term-6a6cf12/example/input.luau
luau
.luau
-- Input handler, works by capturing inputs while the TextBox is focused -- It saves the last pressed key, then uses it when Enum.UserInputType.TextInput is emitted -- Using a TextBox allows us to capture all the keys that would otherwise be -- captured by CoreGui and ignored by ContextActionService, like slash or func...
1,993
mokiros/luau_term
mokiros-luau_term-6a6cf12/src/canvas/bitmap.luau
luau
.luau
--!optimize 2 --!native --!strict local Types = require("./types") type BitmapCanvas = buffer local BitmapCanvas = {} :: Types.CanvasModule<BitmapCanvas, buffer> local underlineGlyph = buffer.create(16) buffer.writeu8(underlineGlyph, 12, 0xFF) BitmapCanvas.draw = function(canvas, x, y, buf, att, fgColor, bgColor) ...
1,883
mokiros/luau_term
mokiros-luau_term-6a6cf12/src/canvas/init.luau
luau
.luau
local Types = require("./types") local BitmapCanvas = require("./bitmap") local TextLabelCanvas = require("./textlabel") export type BitmapCanvasType = "Bitmap" export type TextLabelCanvasType = "TextLabel" export type CanvasType = BitmapCanvasType | TextLabelCanvasType export type RGBA = Types.RGBA export type Canvas...
178
mokiros/luau_term
mokiros-luau_term-6a6cf12/src/canvas/textlabel.luau
luau
.luau
local Types = require("./types") type TextLabelCanvas = { frame: Frame, font: { Regular: Font, Bold: Font, Italic: Font, BoldItalic: Font, }, lines: { Frame }, labels: { TextLabel }, } local TextLabelCanvas = {} :: Types.CanvasModule<TextLabelCanvas, string> local function abgrToColor3(abgr: number): Co...
1,782
mokiros/luau_term
mokiros-luau_term-6a6cf12/src/canvas/types.luau
luau
.luau
export type RGBA = number export type Canvas<CanvasType> = { canvas: CanvasType, length: number, width: number, height: number, cellSize: number, } export type Attributes = { underline: boolean, bold: boolean, italic: boolean, } export type CanvasModule<CanvasType, CharacterData> = { draw: (canvas: Canvas<C...
338
mokiros/luau_term
mokiros-luau_term-6a6cf12/src/constants.luau
luau
.luau
local ParserState = table.freeze({ GROUND = 0, ESCAPE = 1, ESCAPE_INTERMEDIATE = 2, CSI_ENTRY = 3, CSI_PARAM = 4, CSI_INTERMEDIATE = 5, CSI_IGNORE = 6, SOS_PM_APC_STRING = 7, OSC_STRING = 8, DCS_ENTRY = 9, DCS_PARAM = 10, DCS_IGNORE = 11, DCS_INTERMEDIATE = 12, DCS_PASSTHROUGH = 13, }) local ParserAction...
2,300
mokiros/luau_term
mokiros-luau_term-6a6cf12/src/init.luau
luau
.luau
local Types = require("./types") local Terminal = require("./terminal") local parser = require("./parser") local Constants = require("./constants") local Canvas = require("./canvas") local Util = require("./terminal/util") local parseUnifont = require("./unifont") local UNIFONT_ASCII = require("./unifont_ascii") expo...
320
mokiros/luau_term
mokiros-luau_term-6a6cf12/src/parser/init.luau
luau
.luau
local Constants = require("../constants") local Types = require("../types") local TransitionTable = require("./transition_table") local Unicode = require("../unicode") local ParserState = Constants.ParserState local ParserAction = Constants.ParserAction local OscState = Constants.OscState local TableAccess = Constants...
1,671
mokiros/luau_term
mokiros-luau_term-6a6cf12/src/parser/transition_table.luau
luau
.luau
local Constants = require("../constants") local ParserState = Constants.ParserState local ParserAction = Constants.ParserAction local TableAccess = Constants.TableAccess local NON_ASCII_PRINTABLE = Constants.NON_ASCII_PRINTABLE local len = 4095 local buf = buffer.create(len) local function setDefault(action: number,...
3,188
mokiros/luau_term
mokiros-luau_term-6a6cf12/src/terminal/function_identifier.luau
luau
.luau
-- macro for (a << 8 | b) local function add(a: number, b: number) return bit32.bor(bit32.lshift(a, 8), b) end local function b(char: string) return string.byte(char, 1, 1) end export type FunctionIdentifier = { prefix: string?, intermediates: { string }?, final: string, } local function identifier(id: Function...
420
mokiros/luau_term
mokiros-luau_term-6a6cf12/src/terminal/handlers.luau
luau
.luau
local Canvas = require("../canvas") local Constants = require("../constants") local Types = require("../types") local Util = require("./util") local Parser = require("../parser") local Charsets = require("../charsets") local vector = require("../vector") local FunctionIdentifier = require("./function_identifier") loc...
6,802
mokiros/luau_term
mokiros-luau_term-6a6cf12/src/terminal/init.luau
luau
.luau
local parser = require("../parser") local Canvas = require("../canvas") local Types = require("../types") local Handlers = require("./handlers") local Constants = require("../constants") local parseUnifont = require("../unifont") local UNIFONT_ASCII = require("../unifont_ascii") local vector = require('../vector') lo...
629
mokiros/luau_term
mokiros-luau_term-6a6cf12/src/terminal/util.luau
luau
.luau
local Types = require("../types") local Canvas = require("../canvas") local Constants = require("../constants") local vector = require("../vector") local Util = {} Util.bgColor = function(term: Types.Terminal) return if term.attributes.inverted then term.fgColor else term.bgColor end Util.fgColor = function(term: ...
1,494
mokiros/luau_term
mokiros-luau_term-6a6cf12/src/types.luau
luau
.luau
local Canvas = require("./canvas") local Charsets = require("./charsets") export type Cursor = vector export type Params = { _length: number, _isSubParam: boolean, params: { number }, subParams: { [number]: { number } }, [number]: never, } export type Parser = { currentState: number, collect: number, params:...
696
mokiros/luau_term
mokiros-luau_term-6a6cf12/src/unicode.luau
luau
.luau
local CONTINUATION_START = 0x80 local CONTINUATION_END = 0xBF local INVALID_CODEPOINT = 0xFFFD local function process(code: number, joinState: number): (boolean, number?) if joinState > 0 then if code < CONTINUATION_START or code > CONTINUATION_END then return true, nil end local bytesRemaining = bit32.band...
327
mokiros/luau_term
mokiros-luau_term-6a6cf12/src/unifont_ascii.luau
luau
.luau
-- Printable ASCII characters -- Used as a fallback if no custom unifont file is supplied -- https://unifoundry.com/unifont/index.html return [[ 0020:00000000000000000000000000000000 0021:00000000080808080808080008080000 0022:00002222222200000000000000000000 0023:000000001212127E24247E4848480000 0024:00000000083E4948...
1,624
mokiros/luau_term
mokiros-luau_term-6a6cf12/src/vector.luau
luau
.luau
return (typeof(vector) == "table" and vector.create or vector) :: (x: number, y: number, z: number) -> vector
32
mokiros/luau_term
mokiros-luau_term-6a6cf12/tests/bmp.luau
luau
.luau
return function(imageData: buffer, width: number, height: number) local extraBytes = width % 4 local rowBytes = 3 * width + extraBytes local rgbSize = height * rowBytes local bmpBuffer = buffer.create(54 + rgbSize) buffer.writeu16(bmpBuffer, 0, 0x4d42) buffer.writeu32(bmpBuffer, 2, buffer.len(bmpBuffer)) buffer...
326
cxmeel/codify-lib
cxmeel-codify-lib-9f68fb1/src/Codify.luau
luau
.luau
local Packager = require("@pkg/Packager") local Serializer = require("./Serializer") local Types = require("./Types") local formatCase = require("./Lib/formatCase") local sanitizeName = require("./Lib/sanitizeName") local trimString = require("./Lib/trimString") local IGNORED_PROPERTIES = require("./IgnoredPropertie...
757
cxmeel/codify-lib
cxmeel-codify-lib-9f68fb1/src/Generators/Fusion.luau
luau
.luau
local Types = require("../Types") local Serializer = require("../Serializer") local DEFAULT_INDENTATION = (" "):rep(4) local DEFAULT_CREATE_METHOD = "scope:New" local DEFAULT_CHILDREN_KEY = "Children" return function(config: { indentation: string?, createMethod: string?, childrenKey: string?, names: ("all" | "ch...
587
cxmeel/codify-lib
cxmeel-codify-lib-9f68fb1/src/Generators/Jsx.luau
luau
.luau
local Types = require("../Types") local Serializer = require("../Serializer") local createUniqueKey = require("../Lib/createUniqueKey") local DEFAULT_INDENTATION = (" "):rep(4) return function(config: { indentation: string?, names: ("all" | "changed" | "none")?, lowercaseKeyProp: boolean?, }?) local keyProp = c...
697
cxmeel/codify-lib
cxmeel-codify-lib-9f68fb1/src/Generators/React.luau
luau
.luau
local Types = require("../Types") local Serializer = require("../Serializer") local createUniqueKey = require("../Lib/createUniqueKey") local DEFAULT_INDENTATION = (" "):rep(4) local DEFAULT_CREATE_METHOD = "React.createElement" return function(config: { indentation: string?, createMethod: string?, names: ("all"...
695
cxmeel/codify-lib
cxmeel-codify-lib-9f68fb1/src/Generators/Roblox.luau
luau
.luau
local Types = require("../Types") local Serializer = require("../Serializer") local createUniqueKey = require("../Lib/createUniqueKey") local DEFAULT_INDENTATION = (" "):rep(4) return function(config: { indentation: string?, names: ("all" | "changed" | "none")?, }?) local function tab(n: number) local indent =...
465
cxmeel/codify-lib
cxmeel-codify-lib-9f68fb1/src/Generators/init.luau
luau
.luau
local Fusion = require("./Fusion") local Jsx = require("./Jsx") local React = require("./React") local Roblox = require("./Roblox") return { Fusion = Fusion, Jsx = Jsx, React = React, Roblox = Roblox, }
59
cxmeel/codify-lib
cxmeel-codify-lib-9f68fb1/src/IgnoredProperties.luau
luau
.luau
return { global = { "Parent", }, classes = { BasePart = { "BrickColor", }, }, }
34
cxmeel/codify-lib
cxmeel-codify-lib-9f68fb1/src/Lib/createUniqueKey.luau
luau
.luau
local function createUniqueKey() local names = {} return function(name) if names[name] == nil then names[name] = 1 return name end while true do names[name] += 1 local finalName = `{name}_{names[name]}` if names[finalName] == nil then return finalName end end end end return createUn...
95
cxmeel/codify-lib
cxmeel-codify-lib-9f68fb1/src/Lib/formatCase.luau
luau
.luau
export type CaseFormat = "camel" | "lower" | "pascal" | "upper" local function formatCase(str: string, caseFormat: CaseFormat?) if caseFormat == "pascal" then local formatted = str:gsub("^%l", string.upper) return formatted elseif caseFormat == "lower" then return str:lower() elseif caseFormat == "camel" then...
139
cxmeel/codify-lib
cxmeel-codify-lib-9f68fb1/src/Lib/sanitizeName/init.luau
luau
.luau
local trimString = require("../trimString") local function sanitizeName( name: string, config: { reservedWords: { string }?, }? ) local reservedWords = config and config.reservedWords -- Replace all non-alphanumeric characters with underscores name = trimString(name):gsub("[^%w_]+", "_") -- If the name is a...
186
cxmeel/codify-lib
cxmeel-codify-lib-9f68fb1/src/Lib/trimString.luau
luau
.luau
local function trimString(str: string) local trimmed = str:gsub("^%s*(.-)%s*$", "%1") return trimmed end return trimString
35
cxmeel/codify-lib
cxmeel-codify-lib-9f68fb1/src/Serializer.luau
luau
.luau
export type UserFormats = { color3: Color3Format, udim2: UDim2Format, numberRange: NumberRangeFormat, enum: EnumFormat, normalId: NormalIdFormat, brickColor: BrickColorFormat, physicalProperties: PhysicalPropertiesFormat, udim: UDimFormat, cframe: CFrameFormat, vector2: Vector2Format, vector3: Vector3Format,...
4,103
cxmeel/codify-lib
cxmeel-codify-lib-9f68fb1/src/Types.luau
luau
.luau
local Packager = require("@pkg/Packager") export type SerializedProperty = { Type: "serialized", Value: string, OriginalType: string, OriginalValue: any, } type SerializedNodeAdditions = { VariableName: string, } export type SeralizedFlatTreeNode = Packager.FlatTreeNode & SerializedNodeAdditions export type Ser...
105
cxmeel/codify-lib
cxmeel-codify-lib-9f68fb1/src/init.luau
luau
.luau
local Generators = require("./Generators") local Serializer = require("./Serializer") local codify = require("./Codify") return { Generators = Generators, Serializer = Serializer, codify = codify.codify, setPackager = codify.setPackager, }
59
randexlabs/roblox-boilerplate
randexlabs-roblox-boilerplate-3d52cc2/create/init.luau
luau
.luau
local fs = require '@std/fs' local io = require '@std/io' local process = require '@std/process' local tint = require '@luaupkg/tint' local function has_dry_run() for _, arg in process.args do if arg == '--dry-run' then return true end end return false end local function destroy_dot_git() if not fs.exists '.gi...
574
randexlabs/roblox-boilerplate
randexlabs-roblox-boilerplate-3d52cc2/scripts/env.luau
luau
.luau
-- MIT License -- Copyright (c) 2026 ernisto -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, copy, modify, merge, ...
359
randexlabs/roblox-boilerplate
randexlabs-roblox-boilerplate-3d52cc2/stories/.storybook.luau
luau
.luau
return { name = 'Stories', storyRoots = { script.Parent, }, }
20
dig1t/attrify
dig1t-attrify-e30b68e/dev/Client/_init.client.luau
luau
.luau
if not game:IsLoaded() then game.Loaded:Wait() end local ReplicatedStorage = game:GetService("ReplicatedStorage") local Attrify = require(ReplicatedStorage.Attrify) Attrify.start()
47
dig1t/attrify
dig1t-attrify-e30b68e/dev/Server/_init.server.luau
luau
.luau
local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local Attrify = require(ReplicatedStorage.Attrify) Attrify.start() Players.PlayerAdded:Connect(function(player) Attrify.setPlayerCheckpoint(player, 2) end)
60
dig1t/attrify
dig1t-attrify-e30b68e/modules/roblox-modules/src/Animation/init.luau
luau
.luau
local RunService = game:GetService("RunService") local TweenService = game:GetService("TweenService") local Maid = require(script.Parent.Maid) local Promise = require(script.Parent.Promise) local Util = require(script.Parent.Util) local DEFAULT_TWEEN_TIME = 0.2 --[=[ @class Animation Animation library for animati...
1,583
dig1t/attrify
dig1t-attrify-e30b68e/modules/roblox-modules/src/Badge/init.luau
luau
.luau
local BadgeService = game:GetService("BadgeService") local Players = game:GetService("Players") local Cache = require(script.Parent.Cache) local badges = {} --[=[ @class Badge Badge management class for awarding badges to players. Use the `Badge.add` method to add badges to the cache. Example: ```lua -- Set...
839
dig1t/attrify
dig1t-attrify-e30b68e/modules/roblox-modules/src/Cache/init.luau
luau
.luau
local Maid = require(script.Parent.Maid) local Util = require(script.Parent.Util) --[=[ @class Cache Cache class for storing data in a cache instance. Based off [node-cache](https://npmjs.com/package/node-cache). Install with wally by adding the following to your `wally.toml`: ```toml Cache = "dig1t/cache@1.0...
2,596
dig1t/attrify
dig1t-attrify-e30b68e/modules/roblox-modules/src/GamePass/init.luau
luau
.luau
local MarketplaceService = game:GetService("MarketplaceService") local Players = game:GetService("Players") local Cache = require(script.Parent.Cache) local Maid = require(script.Parent.Maid) --[=[ @class GamePass Game pass library that caches game pass ownership results and watches for pass purchases. This modu...
1,054
dig1t/attrify
dig1t-attrify-e30b68e/modules/roblox-modules/src/Palette/init.luau
luau
.luau
local shadeIndex = { [50] = 1, [100] = 2, [200] = 3, [300] = 4, [400] = 5, [500] = 6, [600] = 7, [700] = 8, [800] = 9, [900] = 10, } local paletteColors = { red = { { 255, 255, 255 }, { 252, 218, 216 }, { 250, 183, 180 }, { 247, 149, 144 }, { 245, 115, 109 }, { 242, 81, 73 }, { 239, 47, 37 }, ...
1,688
dig1t/attrify
dig1t-attrify-e30b68e/modules/roblox-modules/src/Replica/ReplicaClient.luau
luau
.luau
--[=[ @class ReplicaClient @client @tag Replica A class for receiving replicated objects from the server. ]=] local RunService = game:GetService("RunService") local ReplicaTypes = require(script.Parent.ReplicaTypes) local Signal = require(script.Parent.Parent.Signal) local remote: RemoteEvent local ReplicaClie...
1,421
dig1t/attrify
dig1t-attrify-e30b68e/modules/roblox-modules/src/Replica/ReplicaTypes.luau
luau
.luau
--[=[ @interface Action @within Replica .type string -- The type of the action .payload any -- The data of the action ]=] export type Action = { type: string, payload: any, } --[=[ @interface ReplicaTypes @within Replica .replicaId string -- The unique identifier for the replica .class string -- The class of...
320
dig1t/attrify
dig1t-attrify-e30b68e/modules/roblox-modules/src/Replica/init.luau
luau
.luau
--[=[ @class Replica A class for creating replicated objects. [Replica.Server](/api/ReplicaServer) is used on the server to create and manage replicated objects. [Replica.Client](/api/ReplicaClient) is used on the client to receive replicated objects. Install with wally by adding the following to your `wally.to...
239
dig1t/attrify
dig1t-attrify-e30b68e/modules/roblox-modules/src/Signal/init.luau
luau
.luau
--[=[ @class Signal Author: dig1t A lightweight signal implementation that allows for firing, connecting, and disconnecting. Install with wally by adding the following to your `wally.toml`: ```toml Signal = "dig1t/signal@1.0.0" ``` ]=] --!strict --!native local HttpService = game:GetService("HttpService") l...
1,922
dig1t/attrify
dig1t-attrify-e30b68e/modules/roblox-modules/src/State/init.luau
luau
.luau
--[=[ @class State The State class is used to manage state for anything. It can be used to store data for the game, UI, or any other feature. Usage example ```lua local state = State.new({ val = 1, time = tick(), nest = { val = 123123 } }) local connection: RBXScriptConnection = state.Changed:Con...
2,695
dig1t/attrify
dig1t-attrify-e30b68e/modules/roblox-modules/src/Trash/init.luau
luau
.luau
--[=[ @class Trash Trash is a class that allows you to destroy an instance after a certain amount of time. If the instance is destroyed before the time is up, the `Trash` object will automatically clear itself In addition to instances, this class can be used to destroy any class object that has a `Destroy` metho...
1,071
dig1t/attrify
dig1t-attrify-e30b68e/modules/roblox-modules/src/Util/DateUtil.luau
luau
.luau
local DateUtil = {} export type DateTimeComponents = { Year: number, Month: number, Day: number, Hour: number, Minute: number, Second: number, Millisecond: number, } | any local milisecondsInSecond: number = 1000 local milisecondsInMinute: number = milisecondsInSecond * 60 local milisecondsInHour: number = mil...
2,210
dig1t/attrify
dig1t-attrify-e30b68e/modules/roblox-modules/src/Util/MathUtil.luau
luau
.luau
--!native local MathUtil = {} --[=[ Rounds a number to the nearest integer. #### Example: ```lua Util.round(1.5) -- 2 Util.round(1.4) -- 1 ``` @within Util @param _number number @return number ]=] function MathUtil.round(_number: number): number assert(typeof(_number) == "number", "Number argument must be...
2,617
dig1t/attrify
dig1t-attrify-e30b68e/modules/roblox-modules/src/Util/PlayerUtil.luau
luau
.luau
local Players = game:GetService("Players") local groupRankCache = {} local groupRankCacheExpiration = 60 -- 1 minutes local PlayerUtil = {} --[=[ Gets the group rank of a player. #### Example: ```lua Util.getGroupRank(game.Players.LocalPlayer, 1) -- 255 ``` @within Util @param player Player @param groupId ...
1,341
dig1t/attrify
dig1t-attrify-e30b68e/modules/roblox-modules/src/Util/SearchUtil.luau
luau
.luau
--!native local SearchUtil = {} --[=[ Gets the number of parts in the given instance Example: ```lua Util.getPartCount(game.Workspace.NPC) -- 5 ``` @within Util @param instance Instance @return number ]=] function SearchUtil.getPartCount(instance: Instance?): number if instance == nil then warn("Util.get...
2,352
dig1t/attrify
dig1t-attrify-e30b68e/modules/roblox-modules/src/Util/SystemUtil.luau
luau
.luau
local HttpService = game:GetService("HttpService") local RunService = game:GetService("RunService") local SystemUtil = {} --[=[ Generates a UUID/GUID (Universally Unique Identifier) random string using HttpService:GenerateGUID. @within Util @return string ]=] function SystemUtil.generateUUID(): string return Htt...
774
dig1t/attrify
dig1t-attrify-e30b68e/modules/roblox-modules/src/Weapon/WeaponClient.luau
luau
.luau
--[[ @name Weapon System Client @description A weapon library for quickly building weapons. @author dig1t @version 1.0.0 ]] --!nocheck local Debris = game:GetService("Debris") local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetServi...
4,064
dig1t/attrify
dig1t-attrify-e30b68e/modules/roblox-modules/src/Weapon/WeaponServer.luau
luau
.luau
--[[ @name Weapon System Server @description A weapon library for quickly building weapons. @author dig1t @version 1.0.0 ]] --!nocheck local Debris = game:GetService("Debris") local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetServi...
3,894
dig1t/attrify
dig1t-attrify-e30b68e/modules/roblox-modules/src/Weapon/init.luau
luau
.luau
-- WIP module local RunService = game:GetService("RunService") if RunService:IsServer() then return require(script.WeaponServer) else return require(script.WeaponClient) end
42
dig1t/attrify
dig1t-attrify-e30b68e/modules/roblox-modules/testez.d.luau
luau
.luau
declare function afterAll(callback: (context: { [any]: any }) -> ()): () declare function afterEach(callback: (context: { [any]: any }) -> ()): () declare function beforeAll(callback: (context: { [any]: any }) -> ()): () declare function beforeEach(callback: (context: { [any]: any }) -> ()): () declare function descr...
366
dig1t/attrify
dig1t-attrify-e30b68e/src/Modules/CollectionWatcher.luau
luau
.luau
--!strict local CollectionService = game:GetService("CollectionService") local Maid = require(script.Parent.Parent.Maid) local Signal = require(script.Parent.Parent.Signal) --[[ @class CollectionObject Wrapper for CollectionService instances found using CollectionWatcher. Provides a `Destroyed` signal that fires w...
778
dig1t/attrify
dig1t-attrify-e30b68e/src/Types.luau
luau
.luau
--!strict --[[ @class Types Shared type definitions for Attrify watchers. ]] local CollectionWatcher = require(script.Parent.Modules.CollectionWatcher) export type CollectionWatcher<T> = CollectionWatcher.CollectionWatcher<T> export type CollectionObject<T> = CollectionWatcher.CollectionObject<T> export type Watch...
178
dig1t/attrify
dig1t-attrify-e30b68e/src/Watchers/Animation/bobber.luau
luau
.luau
--!strict --[[ @class Bobber Floats an object up and down continuously. Attributes: - attr_bob_height: number (default: 2) - Maximum bob distance in studs - attr_bob_speed: number (default: 1) - Cycles per second ]] local RunService = game:GetService("RunService") local Attrify = script.Parent.Parent.Parent lo...
362
dig1t/attrify
dig1t-attrify-e30b68e/src/Watchers/Animation/elevator.luau
luau
.luau
--!strict --[[ @class Elevator Multi-floor elevator that moves between stops. Requires: - Stop1, Stop2, Stop3... (Attachments) - Floor positions Attributes: - attr_move_time: number (default: 2) - Time to move between floors - attr_wait_time: number (default: 3) - Time to wait at each floor ]] local RunServic...
702
dig1t/attrify
dig1t-attrify-e30b68e/src/Watchers/Animation/moving_platform.luau
luau
.luau
--!strict --[[ @class MovingPlatform Moves a platform between two attachment points. Requires: - Point1 (Attachment) - First position - Point2 (Attachment) - Second position Attributes: - attr_studs_per_second: number (default: 1) - Movement speed - attr_wait_time: number (default: 1) - Time to wait at each e...
782
dig1t/attrify
dig1t-attrify-e30b68e/src/Watchers/Animation/orbiter.luau
luau
.luau
--!strict --[[ @class Orbiter Orbits an object around a center point. Attributes: - attr_orbit_radius: number (default: 5) - Radius of the orbit in studs - attr_orbit_speed: number (default: 1) - Rotations per second - attr_center_name: string (optional) - Name of part to orbit around (defaults to original posit...
491
dig1t/attrify
dig1t-attrify-e30b68e/src/Watchers/Animation/shaker.luau
luau
.luau
--!strict --[[ @class Shaker Applies a vibration/jitter effect to an object. Attributes: - attr_intensity: number (default: 0.1) - Maximum shake offset in studs - attr_speed: number (default: 20) - Shake frequency ]] local RunService = game:GetService("RunService") local Attrify = script.Parent.Parent.Parent l...
410
dig1t/attrify
dig1t-attrify-e30b68e/src/Watchers/Animation/spinner.luau
luau
.luau
--!strict --[[ @class Spinner Continuously rotates a Model or BasePart around a specified axis. Attributes: - attr_seconds_per_round: number (default: 2.5) - Time to complete a 360 degree rotation - attr_axis: Vector3 (default: 0, 1, 0) - Rotation axis (Y-axis by default) ]] local RunService = game:GetService("R...
400