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 |
|---|---|---|---|---|---|
synttx/oss | synttx-oss-b4fa4e3/packages/vow/benchmarks/02_Chaining.bench.luau | luau | .luau | --!strict
--!optimize 2
--[[
Chaining & Transformation Benchmark
Measures the overhead of attaching fulfillment callbacks (`andThen` / `After`)
to a resolved value to transform it 1,000 times.
Contenders:
- Vow (by checcerr | fridayqx)
- Promise (by evaera)
- Future (by RedBlox)
- Future (by YetAnotherClown)... | 571 |
synttx/oss | synttx-oss-b4fa4e3/packages/vow/benchmarks/03_Aggregation.bench.luau | luau | .luau | --!strict
--!optimize 2
--[[
Aggregation Benchmark (All / JoinAll)
Measures the overhead of grouping 100 pending asynchronous tasks into
a single aggregate value that resolves when all inputs resolve.
Contenders:
- Vow (by checcerr | fridayqx)
- Promise (by evaera)
- Future (by YetAnotherClown)
RedBlox's Fu... | 484 |
synttx/oss | synttx-oss-b4fa4e3/plugins/quickplaytest/src/Main.server.luau | luau | .luau | --!strict
--!optimize 2
--[[
@name Main
@arch server
@desc Quick Playtest plugin composition root.
@version 2.0.0
@license MPL-2.0
@author checcerr
]]
--/ Dependencies
local SessionController = require("./Modules/SessionController")
local Widget = require("./Modules/Widget")
--/ Initialization
const widget =... | 129 |
synttx/oss | synttx-oss-b4fa4e3/plugins/quickplaytest/src/Modules/CharacterFactory.luau | luau | .luau | --!strict
--!optimize 2
--[[
@name CharacterFactory
@arch server
@desc Creates edit-mode avatars named {username}_QP with embedded dummy rigs and derived collision geometry.
@version 2.0.0
@license MPL-2.0
@author checcerr
]]
--/ Dependencies
local InsertService = game:GetService("InsertService")
local Player... | 2,606 |
synttx/oss | synttx-oss-b4fa4e3/plugins/quickplaytest/src/Modules/Config.luau | luau | .luau | --!strict
--!optimize 2
--[[
@name Config
@arch shared
@desc Dynamic configuration manager storing customizable settings in TestService.QuickPlaytestConfig with safe default fallback.
@version 2.0.0
@license MPL-2.0
@author checcerr
]]
--/ Dependencies
local Selection = game:GetService("Selection")
local Test... | 926 |
synttx/oss | synttx-oss-b4fa4e3/plugins/quickplaytest/src/Modules/Constants.luau | luau | .luau | --!strict
--!optimize 2
--[[
@name Constants
@arch shared
@desc Default tuning values, animation assets, emote IDs, and plugin constants.
@version 2.0.0
@license MPL-2.0
@author checcerr
]]
--/ Constants
const Constants = {
DEBUG = true,
-- Plugin Asset
ICON_ID = "rbxassetid://75517704743986",
-- Collis... | 908 |
synttx/oss | synttx-oss-b4fa4e3/plugins/quickplaytest/src/Modules/EmoteController.luau | luau | .luau | --!strict
--!optimize 2
--[[
@name EmoteController
@arch server
@desc Manages user-equipped and standard Roblox emotes, playback on dummy animator, and disturbance auto-cancellation.
@version 2.0.0
@license MPL-2.0
@author checcerr
]]
--/ Dependencies
local InsertService = game:GetService("InsertService")
loc... | 1,968 |
synttx/oss | synttx-oss-b4fa4e3/plugins/quickplaytest/src/Modules/InputController.luau | luau | .luau | --!strict
--!optimize 2
--[[
@name InputController
@arch client
@desc Captures keyboard and mouse input for movement, camera, and click-to-teleport actions.
@version 2.0.0
@license MPL-2.0
@author checcerr
]]
--/ Dependencies
local UserInputService = game:GetService("UserInputService")
local Types = require(... | 1,591 |
synttx/oss | synttx-oss-b4fa4e3/plugins/quickplaytest/src/Modules/PoseController.luau | luau | .luau | --!strict
--!optimize 2
--[[
@name PoseController
@arch server
@desc Evaluates equipped locomotion tracks and poses with smooth local transforms and bounded Team Create sync.
@version 2.0.0
@license MPL-2.0
@author checcerr
]]
--/ Dependencies
local Config = require("./Config")
local Types = require("./Types"... | 2,377 |
synttx/oss | synttx-oss-b4fa4e3/plugins/quickplaytest/src/Vide/init.luau | luau | .luau | assert(game, "when using vide outside of Roblox, require lib.luau instead")
local vide = require("./lib")
export type source<T> = vide.source<T>
export type Source<T> = vide.Source<T>
export type context<T> = vide.context<T>
export type Context<T> = vide.Context<T>
export type Instances = vide.Instances
export type P... | 86 |
seaofvoices/luau-path | seaofvoices-luau-path-3c4ad71/src/Component.luau | luau | .luau | local Prefix = require('./Prefix')
local sysPath = require('./sys/path')
local MAIN_SEPARATOR_STR = sysPath.MAIN_SEPARATOR_STR
type Prefix = Prefix.Prefix
export type PrefixComponent = {
type: 'prefix',
raw: string,
parsed: Prefix,
}
type NormalComponent = { type: 'normal', value: string }
type Componen... | 691 |
seaofvoices/luau-path | seaofvoices-luau-path-3c4ad71/src/Prefix.luau | luau | .luau | export type PrefixEnum =
{ type: 'Verbatim', value: string }
| { type: 'VerbatimUNC', hostName: string, shareName: string }
| { type: 'VerbatimDisk', value: string }
| { type: 'DeviceNS', value: string }
| { type: 'UNC', hostName: string, shareName: string }
| { type: 'Disk', value: string }
ex... | 1,169 |
seaofvoices/luau-path | seaofvoices-luau-path-3c4ad71/src/Rev.luau | luau | .luau | local Disk = require('@pkg/luau-disk')
local Array = Disk.Array
export type Rev<T> = {
next: (self: Rev<T>) -> T?,
collect: (self: Rev<T>) -> { T },
rev: (self: Rev<T>) -> Rev<T>,
-- DoubleEndedIterator
nextBack: (self: Rev<T>) -> T?,
clone: (self: Rev<T>) -> Rev<T>,
}
type DoubleEndedIterat... | 532 |
seaofvoices/luau-path | seaofvoices-luau-path-3c4ad71/src/__tests__/Issues.test.luau | luau | .luau | -- additional tests that were reported
local jestGlobals = require('@pkg/@jsdotlua/jest-globals')
local Path = require('../Path')
local expect = jestGlobals.expect
local it = jestGlobals.it
local describe = jestGlobals.describe
describe('issue #3', function()
it(`set empty extension on 'src/abc' gives 'src/abc'... | 136 |
seaofvoices/luau-path | seaofvoices-luau-path-3c4ad71/src/__tests__/Prefix.test.luau | luau | .luau | local Disk = require('@pkg/luau-disk')
local jestGlobals = require('@pkg/@jsdotlua/jest-globals')
local Path = require('../Path')
local Prefix = require('../Prefix')
local sysPath = require('../sys/path')
local Array = Disk.Array
local Map = Disk.Map
type Prefix = Prefix.Prefix
-- When running tests in Roblox Studi... | 641 |
seaofvoices/luau-path | seaofvoices-luau-path-3c4ad71/src/init.luau | luau | .luau | local Path = require('./Path')
export type Path = Path.Path
export type AsPath = Path.AsPath
return {
Path = Path,
}
| 31 |
seaofvoices/luau-path | seaofvoices-luau-path-3c4ad71/src/iterAfter.luau | luau | .luau | local Component = require('./Component')
type Component = Component.Component
type ComponentIterator = { next: (self: ComponentIterator) -> Component? }
type Clone<T> = { clone: (T) -> T }
local function iterAfter<T>(
iter: T & ComponentIterator & Clone<ComponentIterator>,
prefix: T & ComponentIterator
): (T... | 174 |
seaofvoices/luau-path | seaofvoices-luau-path-3c4ad71/src/sys/path/PrefixParser.luau | luau | .luau | local PrefixParserSlice = require('./PrefixParserSlice')
type PrefixParserSlice = PrefixParserSlice.PrefixParserSlice
export type PrefixParser = {
asSlice: (self: PrefixParser) -> PrefixParserSlice,
}
type Private = {
_path: string,
_prefix: string,
_length: number,
}
type PrivatePrefixParser = Prefi... | 311 |
seaofvoices/luau-path | seaofvoices-luau-path-3c4ad71/src/sys/path/PrefixParserSlice.luau | luau | .luau | export type PrefixParserSlice = {
stripPrefix: (self: PrefixParserSlice, prefix: string) -> PrefixParserSlice?,
prefixBytes: (self: PrefixParserSlice) -> string,
finish: (self: PrefixParserSlice) -> string,
}
type Private = {
_path: string,
_prefix: string,
_index: number,
}
type PrivatePrefixP... | 417 |
seaofvoices/luau-path | seaofvoices-luau-path-3c4ad71/src/sys/path/init.luau | luau | .luau | local Prefix = require('../../Prefix')
local parsePrefixWindows = require('./parsePrefix')
type Prefix = Prefix.Prefix
local MAIN_SEPARATOR_STR = if _G.SYS_PATH_SEPARATOR == '\\'
or _G.SYS_PATH_SEPARATOR == '/'
then _G.SYS_PATH_SEPARATOR
elseif _G.LUA_ENV == 'lune' and (require :: any)('@lune/process'... | 330 |
baxoplenty/quebec | baxoplenty-quebec-2a57cd7/src/core/class.luau | luau | .luau | type Constructor<T, A...> = (self: T, A...) -> ()
type Class<T, P, A...> = P & { new: (A...) -> T & P }
--- An utility function to create lua-style classes by settings metatables.
return function<T, P, A...>(constructor: Constructor<T, A...>, prototype: P?): Class<T, P, A...>
local proto = prototype or {}
local mt =... | 149 |
baxoplenty/quebec | baxoplenty-quebec-2a57cd7/src/core/lifecycle.luau | luau | .luau | local Types = require(script.Parent.Parent.types)
local Logger = require(script.Parent.Parent.internal.logger)
local function getSingletons(self: Types.InternalLifecycle)
return self.__singletons
end
local function invokeAll(self: Types.InternalLifecycle, ...: any)
for _, entry in self.__singletons do
local metho... | 241 |
baxoplenty/quebec | baxoplenty-quebec-2a57cd7/src/core/run.luau | luau | .luau | local RunService = game:GetService("RunService")
local root = script.Parent.Parent
local Types = require(root.types)
local Logger = require(root.internal.logger)
local Registry = require(root.internal.registry)
local isServer = RunService:IsServer()
return function(singletonFolder: Folder, config: Types.FrameworkCo... | 601 |
baxoplenty/quebec | baxoplenty-quebec-2a57cd7/src/core/singleton.luau | luau | .luau | local root = script.Parent.Parent
local Types = require(root.types)
local Registry = require(root.internal.registry)
local function getCustomLifecycle(k, v): (boolean, Types.InternalLifecycle?, string?)
local lifecycle = nil :: Types.InternalLifecycle?
local methodName = nil :: string?
if typeof(k) == "table" and... | 289 |
baxoplenty/quebec | baxoplenty-quebec-2a57cd7/src/init.luau | luau | .luau | -- Re-exported types
local Types = require(script.types)
export type CustomLifecycle<Data> = Types.CustomLifecycle<Data>
-- Main
return {
singleton = require(script.core.singleton),
run = require(script.core.run),
lifecycle = require(script.core.lifecycle),
version = require(script.version),
modules = script... | 79 |
baxoplenty/quebec | baxoplenty-quebec-2a57cd7/src/internal/logger.luau | luau | .luau | local RunService = game:GetService("RunService")
local Levels = {
Information = "inf",
Debug = "dbg",
Warning = "wrn",
Error = "err",
CriticalError = "cri",
}
local Platform = if RunService:IsClient() then "client" else "server"
local Logger = {
enableDebug = RunService:IsStudio(),
enableInfo = true,
}
funct... | 262 |
baxoplenty/quebec | baxoplenty-quebec-2a57cd7/src/internal/registry.luau | luau | .luau | local root = script.Parent.Parent
local Types = require(root.types)
type InternalData = {
singletons: { Types.Singleton },
lifecycleHandlers: { [Types.Lifecycle]: { { singleton: Types.Singleton, method: string } } },
customLifecycles: { Types.InternalLifecycle },
instanceCount: number,
instancesReady: number,
m... | 612 |
baxoplenty/quebec | baxoplenty-quebec-2a57cd7/src/modules/Channel.luau | luau | .luau | local RunService = game:GetService("RunService")
local ServerStorage = game:GetService("ServerStorage")
local HttpService = game:GetService("HttpService")
export type Channel<Args..., Returns...> = {
instance: BindableFunction,
invoke: (self: Channel<Args..., Returns...>, Args...) -> Returns...,
set: (self: Channe... | 308 |
baxoplenty/quebec | baxoplenty-quebec-2a57cd7/src/modules/Networking/init.luau | luau | .luau | local FolderName = "__QBC_EV"
local RunService = game:GetService("RunService")
local Logger = require(script.Parent.Parent.internal.logger)
local event = require(script.event)
local eventTypes = require(script.event.types)
local func = require(script.func)
local funcTypes = require(script.func.types)
-- Re-export ... | 536 |
baxoplenty/quebec | baxoplenty-quebec-2a57cd7/src/modules/Signal.luau | luau | .luau | local RunService = game:GetService("RunService")
local ServerStorage = game:GetService("ServerStorage")
local HttpService = game:GetService("HttpService")
export type Signal<Args...> = {
instance: BindableEvent,
fire: (self: Signal<Args...>, Args...) -> (),
connect: (self: Signal<Args...>, callback: (Args...) -> (... | 291 |
baxoplenty/quebec | baxoplenty-quebec-2a57cd7/src/types.luau | luau | .luau | -- Configuration
export type FrameworkConfiguration = {
--- A table defining how many instances are there.
--- It's only required if you have more than one instance.
instances: { string }?,
--- Defaults to false in production, but true in studio. Enabling this will enable debug prints.
debug: boolean?,
--- Def... | 497 |
baxoplenty/quebec | baxoplenty-quebec-2a57cd7/src/version.luau | luau | .luau | return "v4.2.1"
| 9 |
LDGerrits/Bootstrapper | LDGerrits-Bootstrapper-47431b5/src/init.luau | luau | .luau | --!strict
--v1.2.2 • LDGerrits
--[=[
@class Bootstrapper
A lightweight, agnostic module loader and scheduler for Roblox.
Eliminate load-order bugs and race conditions by organizing your modules into a deterministic pipeline.
Define exactly what runs, and in what order, every single frame with zero ambiguity.
]=]
... | 5,475 |
omrezkeypie/BinaryOctree | omrezkeypie-BinaryOctree-9e37809/benchmarks/QueryingBench.luau | luau | .luau | --!optimize 2
--[[
This file is for use by Benchmarker (https://boatbomber.itch.io/benchmarker)
|WARNING| THIS RUNS IN YOUR REAL ENVIRONMENT. |WARNING|
--]]
local BinaryOctreeModule = require("path to binary octree")
local SleitnickModule = require("path to sleitnicks module")
local Dot = Vector3.zero.Dot
local Oct... | 427 |
omrezkeypie/BinaryOctree | omrezkeypie-BinaryOctree-9e37809/src/init.luau | luau | .luau | --!optimize 2
--!native
type Object = {
Position: Vector3
}
export type BinaryOctree = {
MaxDepth: number?,
Size: number,
OffsetPosition : Vector3?,
Nodes: {{Object}},
}
type Module = {
new: (Size: number, MaxDepth: number?,OffsetPosition : Vector3?) -> BinaryOctree,
InsertObjects: (BinaryOctree: BinaryOctree... | 2,835 |
IllusionAC/Illusion-InputActionSystem | IllusionAC-Illusion-InputActionSystem-5e823b9/src/BindUtils.luau | luau | .luau | --!strict
--BindUtils.luau
--[[
//////////////////////
// Bind Utility //
//////////////////////
]]
local BindUtils = {}
local IAS = require("./TypeDefinition")
local REMOVED: IAS.Bind = {
KeyCode = Enum.KeyCode.None,
PrimaryModifier = Enum.KeyCode.None,
SecondaryModifier = Enum.KeyCode.None,
UIButton = n... | 4,366 |
IllusionAC/Illusion-InputActionSystem | IllusionAC-Illusion-InputActionSystem-5e823b9/src/IllusionSignal.luau | luau | .luau | --!strict
--IllusionSignal.luau
--[[
//////////////////////
// Illusion Signal //
//////////////////////
]]
local IAS = require("./TypeDefinition")
return {
new = function<T>(): IAS.IAScriptSignal<T>
local head: IAS.Node<T>?
local function createConnection(node: IAS.Node<T>): IAS.IAScriptConnection
loca... | 631 |
littensy/nanoai | littensy-nanoai-56accb8/.lune/check.luau | luau | .luau | --> Runs checks on code quality
local exec = require("util")
exec("luau-lsp analyze --settings=.vscode/settings.json --sourcemap=sourcemap.json src")
exec("selene src")
exec("stylua --check src")
| 54 |
littensy/nanoai | littensy-nanoai-56accb8/.lune/dev.luau | luau | .luau | local exec = require("util")
exec("rojo sourcemap dev.project.json --output sourcemap.json --watch & darklua process src/ rbx/ --watch")
| 37 |
littensy/nanoai | littensy-nanoai-56accb8/.lune/install.luau | luau | .luau | --> Installs dependencies and sets up the sourcemap
local exec = require("util")
exec("wally install")
exec("lune setup")
exec("rojo sourcemap dev.project.json --output sourcemap.json")
| 48 |
littensy/nanoai | littensy-nanoai-56accb8/.lune/util.luau | luau | .luau | --> Internal utility library depended upon by other scripts
local process = require("@lune/process")
local stdio = require("@lune/stdio")
return function(command: string)
local args = command:split(" ")
local program = table.remove(args, 1) :: string
local result = process.spawn(program, args, {
stdio = "forwar... | 149 |
littensy/nanoai | littensy-nanoai-56accb8/bin/spec.server.luau | luau | .luau | --!nocheck
| 5 |
littensy/nanoai | littensy-nanoai-56accb8/src/activation.luau | luau | .luau | export type Activation = "Sigmoid" | "TanH" | "ArcTan" | "SoftPlus" | "Linear" | "ReLU" | "LeakyReLU" | "ELU"
local Activation = {
Sigmoid = "Sigmoid",
TanH = "TanH",
ArcTan = "ArcTan",
SoftPlus = "SoftPlus",
Linear = "Linear",
ReLU = "ReLU",
LeakyReLU = "LeakyReLU",
ELU = "ELU",
}
local functions = {
[Activ... | 563 |
littensy/nanoai | littensy-nanoai-56accb8/src/copy.luau | luau | .luau | --[=[
Creates a deep copy of the given object. Can be used to clone a neural
network, since networks are JSON encodable.
@param object The object to clone.
@return A deep copy of the object.
]=]
local function copy<T>(object: T): T
if type(object) == "table" then
local clone = table.clone(object)
for key, va... | 118 |
littensy/nanoai | littensy-nanoai-56accb8/src/create.luau | luau | .luau | local types = require("./types")
type Network = types.Network
--[=[
Creates a new neural network with the specified shape and activation
functions. The shape is an array of numbers, where each element represents
the amount of neurons in that layer.
@param shape The shape of the network.
@param activation The ac... | 284 |
littensy/nanoai | littensy-nanoai-56accb8/src/evolution.luau | luau | .luau | local task = task or require("@lune/task")
local init = require("./initializers")
local types = require("./types")
type Network = types.Network
local copy = require("./copy")
type Thenable = {
andThen: (self: Thenable, resolved: ((...any) -> ())?, rejected: ((unknown) -> ())?) -> Thenable,
}
export type Agent = {
... | 1,099 |
littensy/nanoai | littensy-nanoai-56accb8/src/init.luau | luau | .luau | local activation = require("./activation")
local backpropagate = require("./backpropagate")
local copy = require("./copy")
local create = require("./create")
local evolution = require("./evolution")
local init = require("./initializers")
local initialize = require("./initialize")
local predict = require("./predict")
lo... | 136 |
littensy/nanoai | littensy-nanoai-56accb8/src/initialize.luau | luau | .luau | local types = require("./types")
type Network = types.Network
export type Filter = "weights" | "biases" | "all"
--[=[
Calls the `initializer` for each weight and bias in the network. If the
`initializer` returns `undefined`, the weight or bias will not be changed.
The `initializer` receives the layer index and th... | 329 |
littensy/nanoai | littensy-nanoai-56accb8/src/initializers.luau | luau | .luau | local Activation = require("./activation").Activation
local initialize = require("./initialize")
type Filter = initialize.Filter
local types = require("./types")
type Network = types.Network
local DEFAULT_GAIN = {
[Activation.TanH] = 5 / 3,
[Activation.ReLU] = 2 ^ 0.5,
[Activation.LeakyReLU] = (2 / 1.01) ^ 0.5,
}
... | 681 |
littensy/nanoai | littensy-nanoai-56accb8/src/predict.luau | luau | .luau | local activation = require("./activation")
local types = require("./types")
type Network = types.Network
--[=[
Feeds the input signal through the network and returns the output signal.
@param network The neural network.
@param input The input signal.
@return The output signal.
]=]
local function predict(network:... | 181 |
littensy/nanoai | littensy-nanoai-56accb8/src/types.luau | luau | .luau | --[=[
The neural network model, containing the neurons, weights, biases, and
activation functions of the network. The network is JSON encodable, so
it is safe to serialize and send over a remote event.
]=]
export type Network = {
--[=[
The total amount of layers in the network, excluding the input layer.
]=]
si... | 310 |
MiaGobble/Praxis | MiaGobble-Praxis-713d87f/src/Packages/Badges/init.luau | luau | .luau | --[=[
Utilities for checking and awarding Roblox badges with save-table support.
@class Badges
]=]
local Badges = {}
-- Constants
local SERIALS_DATASTORE_NAME = "Praxis.Badges.Serials"
local SERIALS_KEY_PREFIX = "Badge_"
-- Services
local BadgeService = game:GetService("BadgeService")
local RunService = gam... | 1,194 |
MiaGobble/Praxis | MiaGobble-Praxis-713d87f/src/Packages/Bezier/init.luau | luau | .luau | --[=[
@class Bezier
A utility module for working with Bezier curves.
]=]
local Bezier = {}
-- Imports
local Packages = script:FindFirstChild("roblox_packages")
or script:FindFirstChild("Packages")
or script.Parent
local ValuePacker = require(Packages.ValuePacker)
local function LerpComponentValues(StartCompone... | 2,719 |
MiaGobble/Praxis | MiaGobble-Praxis-713d87f/src/Packages/Binder/init.luau | luau | .luau | --[=[
Binds OOP classes to Roblox instances through CollectionService tags.
@class Binder
]=]
local Binder = {}
Binder.__index = Binder
-- Services
local CollectionService = game:GetService("CollectionService")
-- Imports
local Packages = script:FindFirstChild("roblox_packages")
or script:FindFirstChild("P... | 1,174 |
MiaGobble/Praxis | MiaGobble-Praxis-713d87f/src/Packages/Bucket/init.luau | luau | .luau | --[=[
Used for cleanup of various data types and instances.
@class Bucket
]=]
local Bucket = {}
Bucket.__index = Bucket
-- Types
export type Bucket = typeof(setmetatable({}, Bucket)) & {
CleanupQueue: {[any]: (any) -> nil},
IsCleaning: boolean,
}
-- Constants
local TABLE_CLEANUP_METHODS = {
"Destroy",
"Discon... | 1,437 |
MiaGobble/Praxis | MiaGobble-Praxis-713d87f/src/Packages/Child/init.luau | luau | .luau | --[=[
@class Child
Finds children of an instance by path. This is useful for finding deeply nested children without having to write a long chain of `:FindFirstChild()` or `:WaitForChild()` calls.
]=]
local Child = {}
--[=[
@param root Instance -- The root instance to start searching from.
@param path... | 425 |
MiaGobble/Praxis | MiaGobble-Praxis-713d87f/src/Packages/DataStore/init.luau | luau | .luau | --[=[
DataStore wrapper with serialized table saves and reconciliation support.
@class DataStore
]=]
local DataStore = {}
-- Constants
local DEFAULT_MAX_RETRIES = 5
local DEFAULT_RETRY_DELAY_SECONDS = 1
-- Services
local RunService = game:GetService("RunService")
local DataStoreService = game:GetService("Da... | 1,625 |
MiaGobble/Praxis | MiaGobble-Praxis-713d87f/src/Packages/EffectPlayer/init.luau | luau | .luau | --[=[
@class EffectPlayer
Allows you to play visual effects created by standard visual effect plugins. This supports playing:
* ParticleEmitters
* Sounds
* Tween and bezier animations
* ModuleScripts
* Beams
* Trails
]=]
local EffectPlayer = {}
-- Services
local RunService = game:GetS... | 2,473 |
MiaGobble/Praxis | MiaGobble-Praxis-713d87f/src/Packages/Initializer/init.luau | luau | .luau | --[=[
Safely initializes modules, either ordered or unordered.
@class Initializer
]=]
local Initializer = {}
-- Constants
local INITIALIZED_TAG_INDEX = "__HAS_INITIALIZED"
Initializer.Config = {
InitializeFunctionName = "Init",
ShowLoadDebug = true,
ThrownWarnings = {
NoInitFunction = t... | 979 |
MiaGobble/Praxis | MiaGobble-Praxis-713d87f/src/Packages/Input/Gamepad.luau | luau | .luau | --[=[
Gamepad input capturer.
@class Gamepad
]=]
local Gamepad = {}
Gamepad.__index = Gamepad
-- Services
local GuiService = game:GetService("GuiService")
local HapticService = game:GetService("HapticService")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInpu... | 2,320 |
MiaGobble/Praxis | MiaGobble-Praxis-713d87f/src/Packages/Input/Keyboard.luau | luau | .luau | --[=[
Keyboard input capturer.
@class Keyboard
]=]
local Keyboard = {}
Keyboard.__index = Keyboard
-- Services
local UserInputService = game:GetService("UserInputService")
-- Imports
local Packages = script.Parent:FindFirstChild("roblox_packages")
or script.Parent:FindFirstChild("Packages")
or script.Pare... | 449 |
MiaGobble/Praxis | MiaGobble-Praxis-713d87f/src/Packages/Input/Mouse.luau | luau | .luau | --[=[
Mouse input capturer.
@class Mouse
]=]
local Mouse = {}
Mouse.__index = Mouse
-- Constants
local RAY_DISTANCE = 1000
-- Services
local UserInputService = game:GetService("UserInputService")
-- Imports
local Packages = script.Parent:FindFirstChild("roblox_packages")
or script.Parent:FindFirstChild("P... | 1,250 |
MiaGobble/Praxis | MiaGobble-Praxis-713d87f/src/Packages/Input/PreferredInput.luau | luau | .luau | --[=[
A helper library for observing the preferred user input of the player.
@class PreferredInput
]=]
local PreferredInput = {}
-- Services
local UserInputService = game:GetService("UserInputService")
function PreferredInput.observe(Callback : (Preferred : Enum.PreferredInput) -> (() -> ())?)
local Cle... | 284 |
MiaGobble/Praxis | MiaGobble-Praxis-713d87f/src/Packages/Input/Touch.luau | luau | .luau | --[=[
Touch input capturer.
@class Touch
]=]
local Touch = {}
Touch.__index = Touch
-- Services
local UserInputService = game:GetService("UserInputService")
-- Imports
local Packages = script.Parent:FindFirstChild("roblox_packages")
or script.Parent:FindFirstChild("Packages")
or script.Parent.Parent
loca... | 588 |
MiaGobble/Praxis | MiaGobble-Praxis-713d87f/src/Packages/Input/init.luau | luau | .luau | --[=[
The Input package provides access to various user input classes. Based on the Input library from sleitnick.
@class Input
]=]
local Input = {
PreferredInput = require(script.PreferredInput),
Mouse = require(script.Mouse),
Keyboard = require(script.Keyboard),
Touch = require(script.Touch),... | 79 |
MiaGobble/Praxis | MiaGobble-Praxis-713d87f/src/Packages/Optional/init.luau | luau | .luau | --[=[
@class Optional
Calls `require` on object or path, returning nil if it does not exist.
]=]
local Optional = {}
--[=[
@param object Instance | string -- The object or path to require.
@return any? -- The module if it exists, or nil if it does not.
```lua
local Module = Optional.Get("Mod... | 134 |
MiaGobble/Praxis | MiaGobble-Praxis-713d87f/src/Packages/ProgressionUtils/Boosters.luau | luau | .luau | local Boosters = {}
-- Types
type BoosterDataCore = {
ScoreId : string,
BoostMultiplier : number,
StackMethod : "AddTime" | "Separate",
TotalTime : number,
}
type BoosterDataInput = BoosterDataCore & {
BoosterId : string,
}
export type BoosterData = BoosterDataInput & {
StartingTime : number,... | 919 |
MiaGobble/Praxis | MiaGobble-Praxis-713d87f/src/Packages/ProgressionUtils/Inventory.luau | luau | .luau | local Inventory = {}
-- Types
type ItemDataInput = {
ItemId : string,
[string] : any,
}
export type ItemData = ItemDataInput & {
Quantity : number,
}
export type InventoryData = {
Items : {ItemData}
}
-- Services
local HttpService = game:GetService("HttpService")
-- Imports
local Packages = script.... | 592 |
MiaGobble/Praxis | MiaGobble-Praxis-713d87f/src/Packages/ProgressionUtils/Quests.luau | luau | .luau | local Quests = {}
-- Services
local HttpService = game:GetService("HttpService")
-- Imports
local Packages = script.Parent:FindFirstChild("roblox_packages")
or script.Parent:FindFirstChild("Packages")
or script.Parent.Parent
local Signal = require(Packages.Signal)
local Types = require(script.Parent.Types)
-- Type... | 1,380 |
MiaGobble/Praxis | MiaGobble-Praxis-713d87f/src/Packages/ProgressionUtils/Scores.luau | luau | .luau | local Scores = {}
-- Imports
local Packages = script.Parent:FindFirstChild("roblox_packages")
or script.Parent:FindFirstChild("Packages")
or script.Parent.Parent
local Signal = require(Packages.Signal)
local Typer = require(Packages.Typer)
local Boosters = require(script.Parent.Boosters)
Scores.OnScoreAdded = Signa... | 696 |
MiaGobble/Praxis | MiaGobble-Praxis-713d87f/src/Packages/ProgressionUtils/init.luau | luau | .luau | --[=[
A collection of utilities for progression-related development.
@class ProgressionUtils
]=]
local ProgressionUtils = {}
-- Imports
local Quests = require(script.Quests)
local Scores = require(script.Scores)
local Boosters = require(script.Boosters)
local Inventory = require(script.Inventory)
--[=[
... | 2,376 |
MiaGobble/Praxis | MiaGobble-Praxis-713d87f/src/Packages/RateLimiter/init.luau | luau | .luau | --[=[
@class RateLimiter
A simple OOP class for rate limiting.
]=]
local RateLimiter = {}
RateLimiter.__index = RateLimiter
-- Types
type RateLimiter = typeof(setmetatable({}, RateLimiter)) & {
LastTrigger : number,
Cooldown : number,
}
--[=[
@param cooldown number -- The cooldown time in second... | 371 |
MiaGobble/Praxis | MiaGobble-Praxis-713d87f/src/Packages/Replicator/init.luau | luau | .luau | --[=[
@class Replicator
Server-to-client diff-based replication system.
]=]
local Replicator = {}
Replicator.__index = Replicator
-- Types
export type Replicator = typeof(setmetatable({}, Replicator)) & {
Name : string,
CurrentState : {[string]: any},
Changed : RBXScriptSignal & {Fire : () -> nil},
SubscribedP... | 1,917 |
MiaGobble/Praxis | MiaGobble-Praxis-713d87f/src/Packages/SeamStoryUtils/init.luau | luau | .luau | --[=[
Utilities for hooking up Seam to UI Labs for UI stories.
@class SeamStoryUtils
]=]
local SeamStoryUtils = {}
--Types
type BaseState<T> = {
Value : T,
}
type ValueInstance<T> = {
Changed : RBXScriptSignal,
} & BaseState<T>
type SpringInstance<T> = {
Velocity : T,
Target : T
} & BaseSta... | 868 |
MiaGobble/Praxis | MiaGobble-Praxis-713d87f/src/Packages/Select/init.luau | luau | .luau | --[=[
@class Select
Used to select singular values from a list of arguments.
]=]
local Select = {}
--[=[
@param index number -- The index of the value to select
@param ... any -- The values to select from
@return any? -- The selected value
Selects the value at the given index.
```lua
... | 418 |
MiaGobble/Praxis | MiaGobble-Praxis-713d87f/src/Packages/SerDes/init.luau | luau | .luau | --[=[
Serialization and deserialization utilities using ValuePacker with buffer support.
@class SerDes
]=]
local SerDes = {}
-- Services
local HttpService = game:GetService("HttpService")
-- Imports
local Packages = script:FindFirstChild("roblox_packages")
or script:FindFirstChild("Packages")
or script.Pa... | 1,168 |
MiaGobble/Praxis | MiaGobble-Praxis-713d87f/src/Packages/Symbol/init.luau | luau | .luau | -- Author: iGottic
--[=[
@class Symbol
Blank userdata that can be converted into a string.
]=]
local Symbol = {}
-- Types
export type Symbol = typeof(newproxy(true))
--[=[
Creates a blank userdata that can be converted into a string.
@param Name string -- The string representing the symbol
@return Symbol
]=]... | 197 |
MiaGobble/Praxis | MiaGobble-Praxis-713d87f/src/Packages/TagUtils/init.luau | luau | .luau | --[=[
@class TagUtils
Wrapper for collection service to make it easier to work with tags.
]=]
local TagUtils = {}
-- Services
local CollectionService = game:GetService("CollectionService")
--[=[
@param tag string -- The tag to listen for.
@param callback (instance: Instance) -> () -- The callback to... | 252 |
MiaGobble/Praxis | MiaGobble-Praxis-713d87f/src/Packages/Time/init.luau | luau | .luau | --[=[
Utilities related to time, including for daily rewards.
@class Time
]=]
local Time = {}
-- Constants
local SECONDS_PER_DAY = 24 * 60 * 60
local function GetDateTimeUTC(unixTimestamp : number?) : DateTime
if unixTimestamp == nil then
return DateTime.now():ToUniversalTime()
end
retu... | 1,033 |
MiaGobble/Praxis | MiaGobble-Praxis-713d87f/src/Packages/TracebackUtils/init.luau | luau | .luau | --[=[
A collection of utilities related to debug library on Roblox.
@class TracebackUtils
]=]
local TracebackUtils = {}
--[=[
Returns the memory id of the function a level above.
```lua
local function TestFunction()
print(TracebackUtils.GetCallingFunctionId()) -- Prints the memory ID of Init()
end
local f... | 315 |
MiaGobble/Praxis | MiaGobble-Praxis-713d87f/src/Packages/Typer/init.luau | luau | .luau | --[=[
@class Typer
Strict typechecking in runtime implementation for Roblox.
]=]
local Typer = {}
--[=[
Wraps a function so that all parameters and return values are matched to the correct types.
```lua
local ExampleStaticFunction = Typer.Static(function(Foo : number, Bar : string)
return `{Foo} and {Bar}`, ... | 1,688 |
MiaGobble/Praxis | MiaGobble-Praxis-713d87f/src/Packages/ValuePacker/init.luau | luau | .luau | -- Author: iGottic
-- Based on UnpackType and PackType from Elttob
--[=[
@class ValuePacker
Unpacks and packs values of various types into a table of numbers. This is useful for storing values in a format that can be easily serialized or transmitted.
]=]
local ValuePacker = {}
-- Types
type UnpackedValue = ... | 1,916 |
TheNexusAvenger/Nexus-Data-Store | TheNexusAvenger-Nexus-Data-Store-5cafc7d/src/BulkMessagingService.luau | luau | .luau | --Sends messages in bulk through 1 topic to prevent too many topics being used.
--!strict
local NOT_CONNECTED_WARNING_DELAY_SECONDS = 10
local BulkMessagingService = {}
BulkMessagingService.__index = BulkMessagingService
local HttpService = game:GetService("HttpService")
export type BulkMessagingService = {
Top... | 1,018 |
TheNexusAvenger/Nexus-Data-Store | TheNexusAvenger-Nexus-Data-Store-5cafc7d/src/LocalSaveData.luau | luau | .luau | --Implementation of SaveData that does not use external services.
--This should only be used for testing or DataStores going offline.
--!strict
local LocalSaveData = {}
LocalSaveData.__index = LocalSaveData
export type LocalSaveData = {
Data: {[string]: any},
OnUpdateEvents: {[string]: BindableEvent},
} & typ... | 1,030 |
TheNexusAvenger/Nexus-Data-Store | TheNexusAvenger-Nexus-Data-Store-5cafc7d/src/SaveData.luau | luau | .luau | --Handles saving data for a DataStore key.
--!strict
local HttpService = game:GetService("HttpService")
local BulkMessagingService = require(script.Parent:WaitForChild("BulkMessagingService"))
local SaveData = {}
SaveData.__index = SaveData
export type SaveData = {
DataStoreName: string,
DataStoreKey: strin... | 3,161 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/.parser-tests.runner.luau | luau | .luau | local ServerScriptService = game:GetService("ServerScriptService")
local variants = ServerScriptService.superproperties.packages.mosaic.components.map.item.value.variants
local tests = {
variants.utils["normalizeCommaDelimitedTokens.test"],
variants.mathExpression["parser.test"],
variants.vector["parser.test"],
va... | 132 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/.pesde/scripts/roblox_sync_config_generator.luau | luau | .luau | return require("./../../lune_packages/.pesde/pesde+scripts_rojo/0.2.0/scripts_rojo/roblox_sync_config_generator") | 33 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/.pesde/scripts/sourcemap_generator.luau | luau | .luau | return require("./../../lune_packages/.pesde/pesde+scripts_rojo/0.2.0/scripts_rojo/sourcemap_generator") | 32 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/assets.luau | luau | .luau | --!strict
return {
Arrow = "rbxassetid://137576406570664",
ArrowThin = "rbxassetid://98440150303753",
Dot = "rbxassetid://116942102031970",
Chevrons = "rbxassetid://74884627555785",
ChevronsThin = "rbxassetid://102795771267126",
-- Sharper replacements for ScrollingFrame's scrollbar assets.
... | 262 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/background/init.luau | luau | .luau | --!strict
--!nolint LocalShadow
local Packages = script.Parent.Parent.Parent
local Fusion = require(Packages.fusion)
local New = Fusion.New
local Utils = script.Parent.Parent.utils
local FusionUtils = require(Utils.fusionUtils)
local Component, CombineProps =
FusionUtils.Component, FusionUtils.CombineProps
loc... | 217 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/booleanIconButton/init.luau | luau | .luau | --!strict
--!nolint LocalShadow
local Packages = script.Parent.Parent.Parent
local Fusion = require(Packages.fusion)
local Children, Computed, New, OnEvent, Peek, Tween, Value =
Fusion.Children, Fusion.Computed, Fusion.New, Fusion.OnEvent,
Fusion.peek, Fusion.Tween, Fusion.Value
local Utils = script.Parent.P... | 1,632 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/brickColorPicker/init.luau | luau | .luau | --!strict
--!nolint LocalShadow
local Packages = script.Parent.Parent.Parent
local Fusion = require(Packages.fusion)
local New, Children, Computed, Value =
Fusion.New, Fusion.Children, Fusion.Computed, Fusion.Value
local Utils = script.Parent.Parent.utils
local FusionUtils = require(Utils.fusionUtils)
local Com... | 1,469 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/brickColorPicker/item.luau | luau | .luau | --!strict
local Packages = script.Parent.Parent.Parent.Parent
local Fusion = require(Packages.fusion)
local New, Children, Computed, Value, OnEvent, Tween =
Fusion.New, Fusion.Children, Fusion.Computed,
Fusion.Value, Fusion.OnEvent, Fusion.Tween
local Utils = script.Parent.Parent.Parent.utils
local FusionUti... | 1,225 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/button/init.luau | luau | .luau | --!strict
--!nolint LocalShadow
local Packages = script.Parent.Parent.Parent
local Supercorner = require(Packages.supercorner)
local Fusion = require(Packages.fusion)
local New, Children, Value, Peek, Computed, OnEvent, Tween =
Fusion.New, Fusion.Children, Fusion.Value, Fusion.peek,
Fusion.Computed, Fusion.On... | 1,284 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/checkbox/getNextChecked.luau | luau | .luau | --!strict
return function(checked: boolean | "Mixed"): boolean
return checked == false
end
| 24 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/checkbox/getNextChecked.test.luau | luau | .luau | --!strict
local GetNextChecked = require("./getNextChecked")
assert(GetNextChecked(false) == true, "false should become true")
assert(GetNextChecked(true) == false, "true should become false")
assert(GetNextChecked("Mixed") == false, "Mixed should become false")
print("getNextChecked verification passed")
| 67 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/checkbox/init.luau | luau | .luau | --!strict
--!nolint LocalShadow
local Packages = script.Parent.Parent.Parent
local Supercorner = require(Packages.supercorner)
local Fusion = require(Packages.fusion)
local New, Children, Value, Peek, Computed, OnEvent, Tween =
Fusion.New, Fusion.Children, Fusion.Value, Fusion.peek,
Fusion.Computed, Fusion.On... | 1,533 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/container/init.luau | luau | .luau | --!strict
--!nolint LocalShadow
local Packages = script.Parent.Parent.Parent
local Supercorner = require(Packages.supercorner)
local Fusion = require(Packages.fusion)
local Children, New, Peek = Fusion.Children, Fusion.New, Fusion.peek
local Utils = script.Parent.Parent.utils
local FusionUtils = require(Utils.fusio... | 897 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/focusRing/init.luau | luau | .luau | --!strict
--!nolint LocalShadow
local Packages = script.Parent.Parent.Parent
local Supercorner = require(Packages.supercorner)
local Fusion = require(Packages.fusion)
local Tween, Computed, Observer, Peek =
Fusion.Tween, Fusion.Computed, Fusion.Observer, Fusion.peek
local Utils = script.Parent.Parent.utils
loca... | 1,413 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/icon/init.luau | luau | .luau | --!strict
--!nolint LocalShadow
local Packages = script.Parent.Parent.Parent
local Fusion = require(Packages.fusion)
local New = Fusion.New
local Utils = script.Parent.Parent.utils
local FusionUtils = require(Utils.fusionUtils)
local Component, CombineProps = FusionUtils.Component, FusionUtils.CombineProps
local Co... | 317 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.