repo stringclasses 341
values | file_path stringlengths 29 173 | language stringclasses 2
values | file_type stringclasses 4
values | code stringlengths 2 1.66M | tokens int64 2 598k |
|---|---|---|---|---|---|
DialogueMaker/plugin | DialogueMaker-plugin-fddef54/src/DialogueEditor/hooks/useStudioColors.luau | luau | .luau | --!strict
local RunService = game:GetService("RunService");
local React = require(script.Parent.Parent.Parent.roblox_packages.react);
local Colors = require(script.Parent.Parent.Parent.Colors);
type ColorDictionary = Colors.ColorDictionary;
local function useStudioColors(): ColorDictionary
local getColors = React... | 212 |
DialogueMaker/plugin | DialogueMaker-plugin-fddef54/src/DialogueEditor/hooks/useStudioIcons.luau | luau | .luau | --!strict
local RunService = game:GetService("RunService");
local root = script.Parent.Parent.Parent;
local React = require(root.roblox_packages.react);
local Icons = require(root.Icons);
local function useStudioIcons()
local getIcons = React.useCallback(function()
if not RunService:IsStudio() then
re... | 203 |
DialogueMaker/plugin | DialogueMaker-plugin-fddef54/src/DialogueEditor/init.luau | luau | .luau | --!strict
local root = script.Parent;
local React = require(root.roblox_packages.react);
local Toolbar = require(script.components.Toolbar);
local Explorer = require(script.components.Explorer);
local Settings = require(script.components.Settings);
local InitialSetupScreen = require(script.components.InitialSetupScree... | 467 |
DialogueMaker/plugin | DialogueMaker-plugin-fddef54/src/DialogueEditor/mocks/ChangeHistoryService.luau | luau | .luau | --!strict
local HttpService = game:GetService("HttpService");
local VirtualChangeHistoryService = {};
function VirtualChangeHistoryService.new()
local virtualChangeHistoryService = {
currentHistory = {};
currentIdentifier = nil;
};
function virtualChangeHistoryService:TryBeginRecording()
if self... | 215 |
DialogueMaker/plugin | DialogueMaker-plugin-fddef54/src/DialogueEditor/mocks/Selection.luau | luau | .luau | --!strict
local VirtualSelection = {};
function VirtualSelection.new()
local selectionChangedEvent = Instance.new("BindableEvent");
local virtualSelection = {
currentSelection = {};
SelectionChanged = selectionChangedEvent.Event;
};
function virtualSelection:Set(selection: {Instance}): ()
loc... | 390 |
DialogueMaker/plugin | DialogueMaker-plugin-fddef54/src/ErrorComponent/init.luau | luau | .luau | --!strict
local root = script.Parent;
local Button = require(root.DialogueEditor.components.Button);
local Paragraph = require(root.DialogueEditor.components.Paragraph);
local React = require(root.roblox_packages.react);
local ReactErrorBoundary = require(root.roblox_packages.ReactErrorBoundary);
local useStudioColors... | 753 |
DialogueMaker/plugin | DialogueMaker-plugin-fddef54/src/VirtualService/EventProvider.luau | luau | .luau | --!strict
local EventProvider = {};
export type EventProvider<InstanceType, T> = {
getSignal: (self: EventProvider<InstanceType, T>, instance: InstanceType) -> RBXScriptSignal<T>;
fireEvent: (self: EventProvider<InstanceType, T>, instance: InstanceType, ...T) -> ();
};
function EventProvider.new<InstanceType, T>... | 328 |
DialogueMaker/plugin | DialogueMaker-plugin-fddef54/src/VirtualService/init.luau | luau | .luau | --!strict
local EventProvider = require(script.EventProvider);
local VirtualService = {
globals = {
plugin = plugin;
game = game;
script = script;
};
events = {
GuiButton = {
Activated = EventProvider.new((nil :: unknown) :: GuiButton, "Activated");
}
}
};
return VirtualService; | 76 |
DialogueMaker/plugin | DialogueMaker-plugin-fddef54/src/init.server.luau | luau | .luau | --!strict
local RunService = game:GetService("RunService");
local Selection = game:GetService("Selection");
local Icons = require(script.Icons);
local React = require(script.roblox_packages.react);
local ReactErrorBoundary = require(script.roblox_packages.ReactErrorBoundary);
local ErrorComponent = require(script.Err... | 668 |
vantoanvh/LuauParser | vantoanvh-LuauParser-1c0cb47/Parser/Confusables.luau | luau | .luau | --!optimize 2
--!strict
return {
[34] = '"',
[48] = "O",
[49] = "l",
[73] = "l",
[96] = "'",
[109] = "rn",
[124] = "l",
[160] = " ",
[180] = "'",
[184] = ",",
[198] = "AE",
[215] = "x",
[230] = "ae",
[305] = "i",
[306] = "lJ",
[307] = "ij",
[329] = "'n",
[338] = "OE",
[339] = "oe",
[383] = "f",
[3... | 16,167 |
lukadev-0/util.luau | lukadev-0-util.luau-534e2fc/.lune/test-lib/assertEq.luau | luau | .luau | -- see .lune/test.luau
-- selene: allow(unused_variable)
return function<T>(value: T, expected: T): boolean
return nil :: any
end
| 39 |
lukadev-0/util.luau | lukadev-0-util.luau-534e2fc/.lune/test-lib/describe.luau | luau | .luau | -- see .lune/test.luau
-- selene: allow(unused_variable)
return function(name: string, fn: () -> ()) end
| 31 |
lukadev-0/util.luau | lukadev-0-util.luau-534e2fc/.lune/test-lib/randomTuple.luau | luau | .luau | -- see .lune/test.luau
export type TupleFunctions = {
map: (...any) -> ...any,
other: () -> ...any,
assertEq: (...any) -> (),
assertEqMapped: (...any) -> (),
assertEqOther: (...any) -> (),
assertEqOtherMapped: (...any) -> (),
}
-- selene: allow(unused_variable)
return function(f: (tuple: TupleFunctions, ...any)... | 100 |
lukadev-0/util.luau | lukadev-0-util.luau-534e2fc/packages/future/lib.luau | luau | .luau | local Option = require("../option/lib")
local std = require("../std/lib")
local threadpool = require("../threadpool/lib")
local task = std.task
export type Future<T> = typeof(setmetatable(
{} :: {
_f: boolean,
_v: T,
_w: { thread },
_c: { (T) -> () },
},
{} :: FutureImpl
))
export type FutureImpl = {
__i... | 1,250 |
lukadev-0/util.luau | lukadev-0-util.luau-534e2fc/packages/future/lib.test.luau | luau | .luau | local assertEq = require("@testing/assertEq")
local describe = require("@testing/describe")
local test = require("@testing/test")
local task = require("@lune/task")
local Future = require("./lib")
describe("new", function()
test("creates a finished future with the given value", function()
local fut = Future.new(5... | 1,289 |
lukadev-0/util.luau | lukadev-0-util.luau-534e2fc/packages/option/lib.luau | luau | .luau | export type Option<T...> = typeof(setmetatable(
{} :: {
-- value to "store" T...
-- this value doesn't exist at runtime, and is only used for typechecking
_T: (T...) -> (),
_n: number,
},
{} :: OptionImpl
))
export type OptionImpl = {
__index: OptionImpl,
__tostring: <T0...>(self: Option<T0...>) -> strin... | 3,706 |
lukadev-0/util.luau | lukadev-0-util.luau-534e2fc/packages/option/lib.test.luau | luau | .luau | local stdio = require("@lune/stdio")
local assertEq = require("@testing/assertEq")
local describe = require("@testing/describe")
local randomTuple = require("@testing/randomTuple")
local test = require("@testing/test")
local Option = require("./lib")
describe("Some", function()
test("returns an option containing th... | 3,001 |
lukadev-0/util.luau | lukadev-0-util.luau-534e2fc/packages/result/lib.luau | luau | .luau | export type Result<T, E> = typeof(setmetatable(
{} :: {
_ok: boolean,
_v: T,
_e: E,
},
{} :: ResultImpl
))
export type ResultImpl = {
__index: ResultImpl,
__tostring: <T, E>(self: Result<T, E>) -> string,
__eq: <T, E>(self: Result<T, E>, other: Result<T, E>) -> boolean,
Ok: <T>(value: T) -> Result<T, any... | 2,538 |
lukadev-0/util.luau | lukadev-0-util.luau-534e2fc/packages/result/lib.test.luau | luau | .luau | local stdio = require("@lune/stdio")
local assertEq = require("@testing/assertEq")
local describe = require("@testing/describe")
local test = require("@testing/test")
local Result = require("./lib")
describe("Ok", function()
test("returns a result containing the given Ok value", function()
local result = Result.O... | 2,999 |
lukadev-0/util.luau | lukadev-0-util.luau-534e2fc/packages/std/default-runtimes/lune.luau | luau | .luau | local runtime = require("../runtime")
local task = require("@lune/task")
return runtime.defineRuntime({
name = "lune",
libs = {
task = {
cancel = task.cancel,
defer = task.defer,
delay = task.delay,
spawn = task.spawn,
wait = task.wait,
},
},
})
| 72 |
lukadev-0/util.luau | lukadev-0-util.luau-534e2fc/packages/std/default-runtimes/roblox.luau | luau | .luau | local runtime = require("../runtime")
return runtime.defineRuntime({
name = "roblox",
libs = {
task = {
cancel = task.cancel,
defer = task.defer,
delay = task.delay,
spawn = task.spawn,
wait = task.wait,
} :: any,
},
})
| 66 |
lukadev-0/util.luau | lukadev-0-util.luau-534e2fc/packages/std/lib.luau | luau | .luau | local libs = require("./libs")
local runtime = require("./runtime")
export type Runtime = runtime.Runtime
export type RuntimeDefinition = runtime.RuntimeDefinition
export type TaskLib = libs.TaskLib
local std = {}
local function detectRuntime(): Runtime?
if _G.UTIL_TARGET == "roblox" then
return require("./defau... | 276 |
lukadev-0/util.luau | lukadev-0-util.luau-534e2fc/packages/std/lib.test.luau | luau | .luau | local assertEq = require("@testing/assertEq")
local describe = require("@testing/describe")
local test = require("@testing/test")
local std = require("./lib")
describe("detectRuntime", function()
test("detects lune runtime", function()
assertEq(std.runtime ~= nil, true)
assert(std.runtime ~= nil, "make Luau typ... | 281 |
lukadev-0/util.luau | lukadev-0-util.luau-534e2fc/packages/std/libs.luau | luau | .luau | local libs = {}
export type TaskLib = {
cancel: (thread) -> (),
defer: <T...>(functionOrThread: thread | (T...) -> (), T...) -> thread,
delay: <T...>(duration: number, functionOrThread: thread | (T...) -> (), T...) -> thread,
spawn: <T...>(functionOrThread: thread | (T...) -> (), T...) -> thread,
wait: (duration:... | 191 |
lukadev-0/util.luau | lukadev-0-util.luau-534e2fc/packages/std/runtime.luau | luau | .luau | local libs = require("./libs")
export type Runtime = {
name: string,
libs: {
task: libs.TaskLib,
},
}
export type RuntimeDefinition = {
name: string,
libs: {
task: {
cancel: ((thread) -> ())?,
defer: (<T...>(functionOrThread: thread | (T...) -> (), T...) -> thread)?,
delay: (<T...>(duration: number,... | 351 |
lukadev-0/util.luau | lukadev-0-util.luau-534e2fc/packages/threadpool/lib.luau | luau | .luau | local std = require("../std/lib")
local task = std.task
local threadpool = {}
local freeThreads: { thread } = {}
local function run<T...>(f: (T...) -> (), thread: thread, ...)
f(...)
table.insert(freeThreads, thread)
end
local function yielder()
while true do
run(coroutine.yield())
end
end
--[=[
Executes t... | 182 |
lukadev-0/util.luau | lukadev-0-util.luau-534e2fc/packages/threadpool/lib.test.luau | luau | .luau | local assertEq = require("@testing/assertEq")
local describe = require("@testing/describe")
local test = require("@testing/test")
local threadpool = require("./lib")
describe("spawn", function()
test("executes the functions in a thread", function()
local count = 0
local function f(v)
assertEq(v, 10)
count ... | 255 |
lukadev-0/util.luau | lukadev-0-util.luau-534e2fc/packages/timer/lib.luau | luau | .luau | local Future = require("../future/lib")
local std = require("../std/lib")
local threadpool = require("../threadpool/lib")
local task = std.task
local timer = {}
function timer.delay(duration: number): Future.Future<number>
return Future.spawn(task.wait, duration)
end
function timer.interval<T...>(duration: number,... | 170 |
wakatime/roblox-studio-wakatime | wakatime-roblox-studio-wakatime-354aa91/src/init.server.luau | luau | .luau | local MarketplaceService = game:GetService("MarketplaceService")
local RunService = game:GetService("RunService")
local ScriptEditorService = game:GetService("ScriptEditorService")
local Selection = game:GetService("Selection")
local StudioService = game:GetService("StudioService")
local UserInputService = game:GetServ... | 619 |
wakatime/roblox-studio-wakatime | wakatime-roblox-studio-wakatime-354aa91/src/storageHandler.luau | luau | .luau | local util = require(script.Parent.util)
local module = {}
local projectSettingKey = `WakaTimeProject_{game.GameId}`
function module.setProjectName(plugin: Plugin, value: string)
value = util.trimString(value)
-- Setting the project name to "" is a valid state, used for marking that it should be purposefully not sen... | 536 |
wakatime/roblox-studio-wakatime | wakatime-roblox-studio-wakatime-354aa91/src/uiHandler.luau | luau | .luau | local React = require(script.Parent.Packages.React)
local ReactRoblox = require(script.Parent.Packages.ReactRoblox)
local StudioComponents = require(script.Parent.Packages.StudioComponents)
local storageHandler = require(script.Parent.storageHandler)
local util = require(script.Parent.util)
local e = React.createElemen... | 1,659 |
wakatime/roblox-studio-wakatime | wakatime-roblox-studio-wakatime-354aa91/src/util.luau | luau | .luau | local module = {}
function module.instanceToPath(instance: Instance): string
local path
local parent = instance
while parent do
local name = if parent == game then "game" else parent.Name
path = if path then `{name}/{path}` else name
parent = parent.Parent
end
return path
end
function module.trimString(s... | 322 |
nonlooped/roblox-suite | nonlooped-roblox-suite-bc0b0df/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-bc0b0df/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-bc0b0df/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-bc0b0df/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-bc0b0df/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-bc0b0df/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-bc0b0df/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-bc0b0df/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-bc0b0df/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-bc0b0df/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-bc0b0df/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-bc0b0df/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-bc0b0df/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-bc0b0df/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-bc0b0df/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-bc0b0df/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-bc0b0df/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-bc0b0df/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-bc0b0df/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-bc0b0df/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 |
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 |
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 |
dig1t/attrify | dig1t-attrify-b6329b0/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-b6329b0/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-b6329b0/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-b6329b0/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-b6329b0/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-b6329b0/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-b6329b0/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-b6329b0/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-b6329b0/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-b6329b0/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-b6329b0/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-b6329b0/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-b6329b0/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-b6329b0/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-b6329b0/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-b6329b0/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-b6329b0/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-b6329b0/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-b6329b0/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-b6329b0/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-b6329b0/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-b6329b0/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-b6329b0/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-b6329b0/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-b6329b0/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-b6329b0/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-b6329b0/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-b6329b0/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-b6329b0/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-b6329b0/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 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Animation/swing_part.luau | luau | .luau | --!strict
--[[
@class SwingPart
Swings a Model or BasePart like a pendulum.
Make sure to edit the part's "PivotOffset" so it swings from that pivot.
Attributes:
- attr_seconds_per_cycle: number (default: 2.5) - Time for a full swing cycle
- attr_swing_angle: number (default: 30) - Maximum swing angle in degrees... | 524 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Animation/thwomp.luau | luau | .luau | --!strict
--[[
@class Thwomp
Smash/crusher behavior that drops down and rises back up.
Requires:
- Floor (Attachment) - The target position when dropped
Attributes:
- attr_animation_time: number (default: 1) - Time to animate up/down
- attr_time_on_floor: number (default: 1) - Time to stay at floor position
-... | 824 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Combat/KillPart.luau | luau | .luau | --!strict
--[[
@class KillPart
Damages or kills players on touch.
Attributes:
- attr_damage: number (default: 100) - Amount of damage to deal
- attr_cooldown: number (default: 3) - Cooldown between damage applications per player
]]
local RunService = game:GetService("RunService")
local Attrify = script.Parent.P... | 377 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Combat/damage_zone.luau | luau | .luau | --!strict
--[[
@class DamageZone
Continuously damages players while they remain inside the zone.
Attributes:
- attr_damage_rate: number (default: 1) - Time between damage ticks in seconds
- attr_damage_amount: number (default: 10) - Damage dealt per tick
]]
local RunService = game:GetService("RunService")
local... | 513 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Combat/heal_part.luau | luau | .luau | --!strict
--[[
@class HealPart
Heals players on touch.
Attributes:
- attr_heal_amount: number (default: 25) - Amount of health to restore
- attr_cooldown: number (default: 3) - Cooldown between heals per player
]]
local RunService = game:GetService("RunService")
local Attrify = script.Parent.Parent.Parent
local... | 395 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Combat/heal_zone.luau | luau | .luau | --!strict
--[[
@class HealZone
Continuously heals players while they remain inside the zone.
Attributes:
- attr_heal_rate: number (default: 1) - Time between heal ticks in seconds
- attr_heal_amount: number (default: 5) - Health restored per tick
]]
local RunService = game:GetService("RunService")
local Attrify... | 540 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Constraint/hinge_part.luau | luau | .luau | --!strict
--[[
@class HingePart
Creates a hinge constraint on this part.
Attributes:
- attr_target_name: string (required) - Name of the target part to hinge to
- attr_hinge_axis: Vector3 (default: 0, 1, 0) - Axis of rotation
- attr_motor_enabled: boolean (default: false) - Enable motor rotation
- attr_motor_sp... | 721 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Constraint/rope_part.luau | luau | .luau | --!strict
--[[
@class RopePart
Creates a rope constraint between this part and a target.
Attributes:
- attr_target_name: string (required) - Name of the target part
- attr_length: number (default: 10) - Rope length in studs
]]
local RunService = game:GetService("RunService")
local Attrify = script.Parent.Parent... | 448 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Door/auto_door.luau | luau | .luau | --!strict
--[[
@class AutoDoor
Auto-opening door that slides open when a player approaches.
Attributes:
- attr_open_offset: Vector3 (default: 0, 5, 0) - How far the door moves when open
- attr_open_time: number (default: 0.5) - Time to open/close
- attr_trigger_distance: number (default: 10) - Distance to trigge... | 736 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Door/sliding_panel.luau | luau | .luau | --!strict
--[[
@class SlidingPanel
Panel that slides open when triggered.
Attributes:
- attr_slide_offset: Vector3 (default: 5, 0, 0) - How far the panel slides
- attr_slide_time: number (default: 0.5) - Time to slide open/close
- attr_trigger_distance: number (default: 10) - Distance to trigger
]]
local RunSer... | 749 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Door/swing_gate.luau | luau | .luau | --!strict
--[[
@class SwingGate
Rotating gate that swings open when triggered.
Make sure to edit the part's "PivotOffset" so it swings from that pivot.
Attributes:
- attr_open_angle: number (default: 90) - Angle to rotate when open
- attr_open_time: number (default: 0.5) - Time to open/close
- attr_trigger_dis... | 732 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Interaction/button.luau | luau | .luau | --!strict
--[[
@class Button
Touch-activated button with optional cooldown.
Attributes:
- attr_cooldown: number (default: 1) - Cooldown between activations
Fires Signal "ButtonPressed" with (player, part)
]]
local RunService = game:GetService("RunService")
local Attrify = script.Parent.Parent.Parent
local Pack... | 320 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Interaction/clickable.luau | luau | .luau | --!strict
--[[
@class Clickable
Adds a ClickDetector to a part.
Attributes:
- attr_max_distance: number (default: 32) - Maximum click distance
Fires Signal "Clicked" with (player, part)
]]
local RunService = game:GetService("RunService")
local Attrify = script.Parent.Parent.Parent
local Packages = Attrify
loc... | 355 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Interaction/prompt_part.luau | luau | .luau | --!strict
--[[
@class PromptPart
Adds a proximity prompt to a part.
Attributes:
- attr_prompt_text: string (default: "Interact") - Text shown on the prompt
- attr_action_text: string (default: "Prompt") - Action key text
- attr_hold_duration: number (default: 0) - Hold duration in seconds
- attr_max_distance: n... | 707 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.