repo stringclasses 302
values | file_path stringlengths 18 241 | language stringclasses 2
values | file_type stringclasses 4
values | code stringlengths 76 697k | tokens int64 10 271k |
|---|---|---|---|---|---|
TheNexusAvenger/Nexus-VR-Backpack | TheNexusAvenger-Nexus-VR-Backpack-2f19c89/place/StarterPlayerScripts/TestLoader.client.luau | luau | .luau | --[[
TheNexusAvenger
Loads Nexus VR Backpack on the client for testing.
--]]
local Workspace = game:GetService("Workspace")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local GuiService = game:GetService("GuiService")
local RunService = game:GetService("RunService")
local UserInputService = game:Get... | 542 |
TheNexusAvenger/Nexus-VR-Backpack | TheNexusAvenger-Nexus-VR-Backpack-2f19c89/src/CharacterBackpack.luau | luau | .luau | --Backpack associated with a character.
--!strict
local PROCESSED_KEYCODES_WHITELIST = {
[Enum.KeyCode.ButtonL3] = true, --Left thumbstick.
[Enum.KeyCode.ButtonR3] = true, --Right thumbstick.
}
local VRService = game:GetService("VRService")
local Workspace = game:GetService("Workspace")
local Players = game:G... | 1,438 |
TheNexusAvenger/Nexus-VR-Backpack | TheNexusAvenger-Nexus-VR-Backpack-2f19c89/src/State/Inventory.luau | luau | .luau | --Simple state manager for the tools the player has access to.
--!strict
local Inventory = {}
Inventory.__index = Inventory
export type Inventory = {
Containers: {Instance},
Tools: {BackpackItem},
Events: {RBXScriptConnection},
ToolsChangedEvent: BindableEvent,
ToolsChanged: RBXScriptSignal,
} & t... | 644 |
TheNexusAvenger/Nexus-VR-Backpack | TheNexusAvenger-Nexus-VR-Backpack-2f19c89/src/UI/Backpack3D.luau | luau | .luau | --Class for the backpack in 3D space.
--!strict
local UI_PHYSICAL_SCALE = 0.5
local TweenService = game:GetService("TweenService")
local ToolGrid = require(script.Parent:WaitForChild("ToolGrid"))
local Inventory = require(script.Parent.Parent:WaitForChild("State"):WaitForChild("Inventory"))
local Backpack3D = {}
Ba... | 1,501 |
TheNexusAvenger/Nexus-VR-Backpack | TheNexusAvenger-Nexus-VR-Backpack-2f19c89/src/UI/ToolGrid.luau | luau | .luau | --Hexagon grid for showing tools.
--!strict
local ToolIcon = require(script.Parent:WaitForChild("ToolIcon"))
local ToolGrid = {}
ToolGrid.__index = ToolGrid
export type ToolGrid = {
IconGroups: {{ToolIcon.ToolIcon}},
AdornFrame: Frame,
FocusedIcon: ToolIcon.ToolIcon?,
} & typeof(setmetatable({}, ToolGrid... | 1,190 |
TheNexusAvenger/Nexus-VR-Backpack | TheNexusAvenger-Nexus-VR-Backpack-2f19c89/src/UI/ToolIcon.luau | luau | .luau | --Class for a tool icon.
--!strict
local ToolIcon = {}
ToolIcon.__index = ToolIcon
export type ToolIcon = {
Focused: boolean,
Players: Players,
TweenService: TweenService,
RelativePositionX: number,
RelativePositionY: number,
Background: ImageLabel,
ToolText: TextLabel,
ToolImage: Imag... | 1,395 |
TheNexusAvenger/Nexus-VR-Backpack | TheNexusAvenger-Nexus-VR-Backpack-2f19c89/src/init.luau | luau | .luau | --Main module and API for Nexus VR Backpack.
--!strict
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local CharacterBackpack = require(script:WaitForChild("CharacterBackpack"))
local NexusVRBackpack = {}
NexusVRBackpack.Enabled = true
export type NexusVRBa... | 883 |
EgoMoose/better-view-selector | EgoMoose-better-view-selector-7257e06/src/Builds/Plugin.luau | luau | .luau | --!strict
local RunService = game:GetService("RunService")
local pluginRoot = script:FindFirstAncestor("PluginRoot")
local UserInterface = require(pluginRoot.Main.UserInterface)
local Plugin = {}
-- Public
function Plugin.build(plugin: Plugin)
if RunService:IsStudio() and RunService:IsEdit() then
local unmount =... | 101 |
EgoMoose/better-view-selector | EgoMoose-better-view-selector-7257e06/src/Main/UserInterface/Components/Viewers/LegacyViewSelector.luau | luau | .luau | --!strict
local pluginRoot = script:FindFirstAncestor("PluginRoot")
local React = require(pluginRoot.Packages.React)
type AxisProps = {
Text: string,
Color: Color3,
Vector: Vector3,
Thickness: UDim,
ZIndex: number,
}
local function Axis(props: AxisProps)
local x, y = props.Vector.X, props.Vector.Y
local rotat... | 756 |
EgoMoose/better-view-selector | EgoMoose-better-view-selector-7257e06/src/Main/UserInterface/Hooks/init.luau | luau | .luau | --!strict
return {
useConstant = require(script.useConstant),
useRefProperty = require(script.useRefProperty),
}
| 25 |
EgoMoose/better-view-selector | EgoMoose-better-view-selector-7257e06/src/Main/UserInterface/Hooks/useConstant.luau | luau | .luau | local pluginRoot = script:FindFirstAncestor("PluginRoot")
local React = require(pluginRoot.Packages.React)
local function useConstant<T...>(create: () -> T...): T...
local ref = React.useRef(nil :: any)
if not ref.current then
ref.current = { packed = table.pack(create()) }
end
return table.unpack(ref.current.... | 84 |
EgoMoose/better-view-selector | EgoMoose-better-view-selector-7257e06/src/Main/UserInterface/Hooks/useRefProperty.luau | luau | .luau | --!strict
local pluginRoot = script:FindFirstAncestor("PluginRoot")
local React = require(pluginRoot.Packages.React)
local function useRefProperty<T>(ref: { current: Instance? }, property: string, default: T)
local value, setValue = React.useState(default)
React.useEffect(function()
if not ref.current then
se... | 156 |
EgoMoose/better-view-selector | EgoMoose-better-view-selector-7257e06/src/Main/UserInterface/Stories/Helpers/CreateStory.luau | luau | .luau | --!strict
local pluginRoot = script:FindFirstAncestor("PluginRoot")
local ReactRoblox = require(pluginRoot.Packages.ReactRoblox)
local React = require(pluginRoot.Packages.React)
local function createStory(component: React.FC<any>)
return function(target: Frame)
local element = React.createElement(component, {})
... | 123 |
EgoMoose/better-view-selector | EgoMoose-better-view-selector-7257e06/src/Main/UserInterface/Stories/Helpers/Stories.storybook.luau | luau | .luau | --!strict
local pluginRoot = script:FindFirstAncestor("PluginRoot")
local ReactRoblox = require(pluginRoot.Packages.ReactRoblox)
local React = require(pluginRoot.Packages.React)
return {
name = "BetterViewSelector",
storyRoots = { script.Parent.Parent },
react = React,
reactRoblox = ReactRoblox,
}
| 76 |
EgoMoose/better-view-selector | EgoMoose-better-view-selector-7257e06/src/Main/UserInterface/Stories/LegacyViewer.story.luau | luau | .luau | --!strict
local RunService = game:GetService("RunService") :: RunService
local pluginRoot = script:FindFirstAncestor("PluginRoot")
local React = require(pluginRoot.Packages.React)
local stories = script:FindFirstAncestor("Stories")
local CreateStory = require(stories.Helpers.CreateStory)
local uiRoot = script:FindF... | 357 |
EgoMoose/better-view-selector | EgoMoose-better-view-selector-7257e06/src/Main/UserInterface/init.luau | luau | .luau | --!strict
local RunService = game:GetService("RunService")
local StudioService = game:GetService("StudioService") :: StudioService
local SelectionService = game:GetService("Selection") :: Selection
local pluginRoot = script:FindFirstAncestor("PluginRoot")
local ReactRoblox = require(pluginRoot.Packages.ReactRoblox)
l... | 1,034 |
gaymeowing/catboygirl-maid | gaymeowing-catboygirl-maid-417b4ef/cleanup_method_names.luau | luau | .luau |
--[[
cleanup method names
a map of names sorted by (what i think is) the most common to least common
]]
return table.freeze({
clear = 1, -- this is here because the cleanup method for catboygirl maid is 'clear'
Destroy = 2,
Disconnect = 3,
destroy = 4,
disconnect = 5,
cleanup = 6,
delete = 7,
Clear = 8,
C... | 107 |
gaymeowing/catboygirl-maid | gaymeowing-catboygirl-maid-417b4ef/maid.luau | luau | .luau | --!native
--[[
catboygirl maid
fast and lightweight maid impl ( thats also better than janitor )
]]
local cleanup_method_names = require("./cleanup_method_names")
type TableCleanupMethod = <V>(self: (V & {})) -> ()
type Cleaner<V> = (((value: V) -> ()) | () -> ())?
--[[
this exists because otherwise if the dev... | 1,087 |
gaymeowing/catboygirl-maid | gaymeowing-catboygirl-maid-417b4ef/scripts/codegen/cleanup.luau | luau | .luau | local type = TYPEOF(value)
if type == "Instance" then
DESTROY((value :: any))
elseif type == "RBXScriptConnection" then
DISCONNECT((value :: any))
elseif type == "function" then
(value :: any)()
elseif type == "table" then
METHOD_CLEAN()
elseif type == "thread" then
CLOSE((value :: any))
end
REMOVE() | 87 |
gaymeowing/catboygirl-maid | gaymeowing-catboygirl-maid-417b4ef/scripts/codegen/init.luau | luau | .luau |
--[[
codegen
replaces placeholders in catboygirl maid for testing & release
]]
local cleanup_method_names = require("../../cleanup_method_names")
local process = require("@lune/process")
local license = require("../license")
local fs = require("@lune/fs")
local function REMOVE_FROM_END(s: string, remove: string): ... | 985 |
gaymeowing/catboygirl-maid | gaymeowing-catboygirl-maid-417b4ef/scripts/codegen/method_clean.luau | luau | .luau | local VARIABLE = (value :: any).KEY
if VARIABLE then
VARIABLE(value)
REMOVE()
return
end | 24 |
gaymeowing/catboygirl-maid | gaymeowing-catboygirl-maid-417b4ef/scripts/release.luau | luau | .luau |
--[[
release
makes a release for catboygirl maid
]]
local process = require("@lune/process")
local codegen = require("./codegen")
local summon = require("./summon")
local fs = require("@lune/fs")
local before_codegen = fs.readFile("maid.luau")
local version = process.args[1]
if type(version) ~= "string" then
err... | 235 |
gaymeowing/catboygirl-maid | gaymeowing-catboygirl-maid-417b4ef/tests/luau.luau | luau | .luau |
--[[
luau
generic luau catboygirl maid test
]]
local cleanup_method_names = require("../cleanup_method_names")
local maid = require("@catboygirl-maid")
local function TEST(cleanup: { maid.Cleanable }, call: (key: string, ...unknown) -> ())
local thread = coroutine.create(function() end)
local cleaner_given_clean... | 631 |
gaymeowing/catboygirl-maid | gaymeowing-catboygirl-maid-417b4ef/tests/roblox.luau | luau | .luau |
--[[
roblox
roblox specific catboygirl maid test
]]
local maid = require("../maid")
local function TEST(cleanup: { maid.Cleanable }, call: (method: string, ...unknown) -> ())
local connection = game.Changed:Connect(function() end)
local part = Instance.new("Part")
local has_destroyed = false
part.Destroying:... | 273 |
dig1t/red | dig1t-red-6d81056/examples/rojo/Client/_init.client.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local red = require(ReplicatedStorage.Packages.red)
red.subscribe(function(action: red.Action<any>)
if action.type == "PLAYER_KILL" then
print(`{action.payload} was killed!`)
end
end)
-- "get" will wait for a result
local data = red.get({ type = "GET... | 100 |
dig1t/red | dig1t-red-6d81056/examples/rojo/Server/Controllers/PlayerController.luau | luau | .luau | local PlayerController = {}
function PlayerController.kill(player: Player): boolean?
local character = player.Character :: Model?
local humanoid = character
and character:FindFirstChildOfClass("Humanoid") :: Humanoid?
if humanoid then
humanoid.Health = 0
print(player.Name .. " was killed!")
return true
... | 150 |
dig1t/red | dig1t-red-6d81056/examples/rojo/Server/Handlers/Loader.luau | luau | .luau | local red = require(game.ReplicatedStorage.Packages.red)
return function(bind: red.Bind)
bind("GET_DATA", function(_player: Player)
print("Getting data...")
task.wait(1)
return {
type = "DATA",
payload = { data = "Hello, world!" },
}
end)
end
| 72 |
dig1t/red | dig1t-red-6d81056/examples/rojo/Server/Handlers/PingPong.luau | luau | .luau | local red = require(game.ReplicatedStorage.Packages.red)
return function(bind: red.Bind)
bind("PING", function(player: Player)
red.dispatch(player, { type = "PONG" })
end)
end
| 48 |
dig1t/red | dig1t-red-6d81056/examples/rojo/Server/Handlers/Player.luau | luau | .luau | local red = require(game.ReplicatedStorage.Packages.red)
local PlayerController = require(script.Parent.Parent.Controllers.PlayerController)
return function(bind: red.Bind)
bind("PLAYER_KILL", function(player: Player)
local success = PlayerController.kill(player)
if success then
red.dispatch(true, { type = "... | 124 |
dig1t/red | dig1t-red-6d81056/examples/rojo/Server/_init.server.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local red = require(ReplicatedStorage.Packages.red)
local Loader = require(script.Parent.Handlers.Loader)
local PingPong = require(script.Parent.Handlers.PingPong)
red.useHandlers({
Loader,
PingPong,
})
-- Alternatively you can use red.useHandlers(scr... | 88 |
dig1t/red | dig1t-red-6d81056/examples/server-bind/init._server.luau | luau | .luau | --!nocheck
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Util = require(ReplicatedStorage.Packages.Util)
local red = require(ReplicatedStorage.Packages.red)
red.bind("PLAYER_TELEPORT", function(player, payload)
if Util.isAlive(player) then
task.wai... | 241 |
dig1t/red | dig1t-red-6d81056/src/Constants.luau | luau | .luau | return {
REMOTE_FOLDER_NAME = "redRemotes",
STORE_TIMEOUT = 6, -- seconds to wait before rejecting a get() promise
}
| 31 |
dig1t/red | dig1t-red-6d81056/src/Types.luau | luau | .luau | --!strict
export type BindCallback = (Player, ActionPayload<any>) -> ()
export type Bind = (string, BindCallback) -> ()
export type ActionPayload<T> = T
export type Action<T> = {
uid: string?,
method: string?,
player: Player?,
timeout: number?,
type: string,
payload: ActionPayload<T>,
success: boolean?,
err:... | 104 |
dig1t/red | dig1t-red-6d81056/src/init.luau | luau | .luau | --!strict
local Store = require(script.Store)
local Types = require(script.Types)
export type ActionPayload<T> = Types.ActionPayload<T>
export type Action<T> = Types.Action<T>
export type BindCallback = Types.BindCallback
export type Bind = Types.Bind
export type Handler = Types.Handler
return Store
| 66 |
dig1t/red | dig1t-red-6d81056/src/redUtil.luau | luau | .luau | --!strict
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")
local Constants = require(script.Parent.Constants)
local Util = {}
function Util.getRemotes(): { Client: RemoteEvent, UnreliableClient: UnreliableRemoteEvent }
local remotes = RunService:IsClie... | 296 |
Fear-for-Fun/classy | Fear-for-Fun-classy-311d7ee/lib/init.luau | luau | .luau | --!strict
--[[
Classy: A Classy is useful because writing code for instances becomes much better!
Author: Jaeymo
Version: 1.6.0
License: MIT
Created: 01/18/2026
For issues or feedback message `jaeymo` on Discord!
]]
local CollectionService = game:GetService("CollectionService")
local Packages = script.Parent
... | 3,623 |
ssynical/luau-parser | ssynical-luau-parser-04934be/Parser.luau | luau | .luau | --!strict
--!native
--!optimize 2
local Lexer = require("lexer")
local TOKEN_TYPE = Lexer.TOKEN_TYPE
type Token = Lexer.Token
type Span = Lexer.Span
local NODE_TYPE = {
PROGRAM = "Program",
FUNCTION_DECL = "FunctionDecl",
LOCAL_DECL = "LocalDecl",
ASSIGNMENT = "Assignment",
IF_STMT = "IfStmt",
WHILE_STMT = "Wh... | 9,774 |
ssynical/luau-parser | ssynical-luau-parser-04934be/example.luau | luau | .luau | local lx = require("lexer")
local prs = require("parser")
local src = [[
local x: typeof(
(function(...)
local tbl = {
[((function() return "key" end)())] = {
nested = (function(a, b, c)
return {
value = if a > b then
... | 303 |
Axp3cter/Lync | Axp3cter-Lync-4169337/bench/Receive.client.luau | luau | .luau | --!strict
--!optimize 2
-- Client-side bench receiver.
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local LyncFolder = ReplicatedStorage:WaitForChild("Lync")
local Lync = require(LyncFolder)
local benchFolder = LyncFolder:WaitForChild("bench")
local Scenarios = require(benchFolder:WaitForChild("Scen... | 136 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/Types.luau | luau | .luau | --!strict
--!optimize 2
-- Shared type definitions for the Lync networking library.
export type ChannelState = {
buff: buffer,
cursor: number,
size: number,
refs: { Instance },
refCount: number,
lastId: number,
countPos: number,
itemCount: number,
singleMode: boolean,
singlePos:... | 789 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/api/Group.luau | luau | .luau | --!strict
--!optimize 2
-- Named player sets with __iter, auto-cleanup on PlayerRemoving.
local Players = game:GetService("Players")
local Types = require(script.Parent.Parent.Types)
-- State ---------------------------------------------------------------
local _groups: { [string]: any } = {}
local _playerCleanup: ... | 893 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/api/Packet.luau | luau | .luau | --!strict
--!optimize 2
-- Packet definition, send, on, once, wait, stats.
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local Baseline = require(script.Parent.Parent.internal.Baseline)
local Channel = require(script.Parent.Parent.internal.Channel)
local Middleware = requ... | 1,534 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/api/Scope.luau | luau | .luau | --!strict
--!optimize 2
-- Batched connection lifecycle management.
local Types = require(script.Parent.Parent.Types)
-- Public --------------------------------------------------------------
local Scope = {}
export type ScopeHandle = {
on: (self: ScopeHandle, source: any, fn: (...any) -> ()) -> Types.Connection... | 504 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/api/Signal.luau | luau | .luau | --!strict
--!optimize 2
-- O(1) disconnect signal system with thread reuse.
local Types = require(script.Parent.Parent.Types)
-- Constants -----------------------------------------------------------
local STATE_DISCONNECTED = 0
local STATE_CONNECTED = 1
local STATE_ONCE = 2
-- State --------------------------------... | 1,256 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/codec/Base.luau | luau | .luau | --!strict
--!optimize 2
-- Fixed-size codec factory with buffer allocation.
local Types = require(script.Parent.Parent.Types)
-- Constants -----------------------------------------------------------
local DEFAULT_MAX = 262144
-- State ---------------------------------------------------------------
local _maxSize =... | 668 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/codec/composite/Array.luau | luau | .luau | --!strict
--!native
-- array and deltaArray codecs.
local Base = require(script.Parent.Parent.Base)
local Shared = require(script.Parent.Shared)
local Types = require(script.Parent.Parent.Parent.Types)
local Varint = require(script.Parent.Parent.primitive.Varint)
-- Private -------------------------------------------... | 1,972 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/codec/composite/Map.luau | luau | .luau | --!strict
--!native
-- map and deltaMap codecs.
local Base = require(script.Parent.Parent.Base)
local Shared = require(script.Parent.Shared)
local Types = require(script.Parent.Parent.Parent.Types)
local Varint = require(script.Parent.Parent.primitive.Varint)
-- Private -----------------------------------------------... | 1,146 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/codec/composite/Optional.luau | luau | .luau | --!strict
--!optimize 2
-- Optional codec. 1 byte flag, value only if present.
local Base = require(script.Parent.Parent.Base)
local Types = require(script.Parent.Parent.Parent.Types)
-- Private -------------------------------------------------------------
local alloc = Base.alloc
local writeu8 = buffer.writeu8
loca... | 331 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/codec/composite/Shared.luau | luau | .luau | --!strict
--!native
-- Shared helpers for composite codecs: delta flags, scratch pool, bool packing.
local Base = require(script.Parent.Parent.Base)
local Types = require(script.Parent.Parent.Parent.Types)
-- Constants -----------------------------------------------------------
local DELTA_UNCHANGED = 0
local DELTA_... | 1,227 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/codec/composite/Struct.luau | luau | .luau | --!strict
--!native
-- struct and deltaStruct codecs with single-field delta shortcut.
local Base = require(script.Parent.Parent.Base)
local Shared = require(script.Parent.Shared)
local Types = require(script.Parent.Parent.Parent.Types)
-- Private -------------------------------------------------------------
local a... | 2,347 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/codec/composite/Tagged.luau | luau | .luau | --!strict
--!optimize 2
-- Discriminated union codec. u8 variant tag + variant payload.
local Base = require(script.Parent.Parent.Base)
local Types = require(script.Parent.Parent.Parent.Types)
-- Private -------------------------------------------------------------
local alloc = Base.alloc
local writeu8 = buffer.wri... | 728 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/codec/composite/Tuple.luau | luau | .luau | --!strict
--!optimize 2
-- Positional ordered codec. Like struct but indexed, not keyed.
local Base = require(script.Parent.Parent.Base)
local Types = require(script.Parent.Parent.Parent.Types)
-- Private -------------------------------------------------------------
local alloc = Base.alloc
-- Public --------------... | 856 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/codec/datatype/Buffer.luau | luau | .luau | --!strict
--!optimize 2
-- Raw buffer codec with dense-prefix-varint length prefix.
local Base = require(script.Parent.Parent.Base)
local Types = require(script.Parent.Parent.Parent.Types)
local Varint = require(script.Parent.Parent.primitive.Varint)
-- Private --------------------------------------------------------... | 479 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/codec/datatype/CFrame.luau | luau | .luau | --!strict
--!native
-- CFrame codec with __call for smallest-three compressed variant.
local Base = require(script.Parent.Parent.Base)
-- Constants -----------------------------------------------------------
local EPSILON = 2.4e-7
local EPSILON_SQ = EPSILON * EPSILON
local SQRT = math.sqrt
local COS = math.cos
local... | 2,173 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/codec/datatype/Color.luau | luau | .luau | --!strict
--!optimize 2
-- Color3 codec. 3 bytes, RGB u8 per channel, clamped.
local Base = require(script.Parent.Parent.Base)
-- Private -------------------------------------------------------------
local round = math.round
local clamp = math.clamp
-- Public --------------------------------------------------------... | 243 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/codec/datatype/Instance.luau | luau | .luau | --!strict
--!optimize 2
-- Instance codec via sidecar reference array.
local Base = require(script.Parent.Parent.Base)
local Types = require(script.Parent.Parent.Parent.Types)
-- Private -------------------------------------------------------------
local alloc = Base.alloc
local writeu16 = buffer.writeu16
local read... | 388 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/codec/datatype/IntVector.luau | luau | .luau | --!strict
--!optimize 2
-- Vector2int16 (4 bytes) and Vector3int16 (6 bytes) codecs.
local Base = require(script.Parent.Parent.Base)
-- Private -------------------------------------------------------------
local function writeI16(b: buffer, off: number, v: number): ()
buffer.writeu16(b, off, if v < 0 then v + 0x... | 397 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/codec/datatype/NumberRange.luau | luau | .luau | --!strict
--!optimize 2
-- NumberRange codec. 8 bytes: Min f32 + Max f32.
local Base = require(script.Parent.Parent.Base)
-- Public --------------------------------------------------------------
local NumberRangeCodec = {}
NumberRangeCodec.numberRange = Base.define(
8,
function(b: buffer, off: number, value... | 164 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/codec/datatype/Ray.luau | luau | .luau | --!strict
--!optimize 2
-- Ray codec. 24 bytes: origin + direction as 6x f32.
local Base = require(script.Parent.Parent.Base)
-- Public --------------------------------------------------------------
local RayCodec = {}
RayCodec.ray = Base.define(24, function(b: buffer, off: number, value: Ray): ()
local o = val... | 287 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/codec/datatype/Rect.luau | luau | .luau | --!strict
--!optimize 2
-- Rect codec. 16 bytes: 4x f32.
local Base = require(script.Parent.Parent.Base)
-- Public --------------------------------------------------------------
local RectCodec = {}
RectCodec.rect = Base.define(16, function(b: buffer, off: number, value: Rect): ()
buffer.writef32(b, off, value.... | 208 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/codec/datatype/Region.luau | luau | .luau | --!strict
--!optimize 2
-- Region3 (24 bytes) and Region3int16 (12 bytes) codecs.
local Base = require(script.Parent.Parent.Base)
-- Private -------------------------------------------------------------
local function writeI16(b: buffer, off: number, v: number): ()
buffer.writeu16(b, off, if v < 0 then v + 0x100... | 661 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/codec/datatype/Sequence.luau | luau | .luau | --!strict
--!optimize 2
-- NumberSequence and ColorSequence codecs with varint count.
local Base = require(script.Parent.Parent.Base)
local Types = require(script.Parent.Parent.Parent.Types)
local Varint = require(script.Parent.Parent.primitive.Varint)
-- Private ------------------------------------------------------... | 1,014 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/codec/datatype/String.luau | luau | .luau | --!strict
--!native
-- Variable-length string codec with __call for bounded variant.
local Base = require(script.Parent.Parent.Base)
local Types = require(script.Parent.Parent.Parent.Types)
local Varint = require(script.Parent.Parent.primitive.Varint)
-- Private -------------------------------------------------------... | 782 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/codec/datatype/UDim.luau | luau | .luau | --!strict
--!optimize 2
-- UDim (8 bytes) and UDim2 (16 bytes) codecs.
local Base = require(script.Parent.Parent.Base)
-- Public --------------------------------------------------------------
local UDimCodec = {}
UDimCodec.udim = Base.define(8, function(b: buffer, off: number, value: UDim): ()
buffer.writef32(b... | 496 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/codec/datatype/Vector.luau | luau | .luau | --!strict
--!optimize 2
-- Vector2 and Vector3 codecs with __call for quantized variants.
local Base = require(script.Parent.Parent.Base)
-- Private -------------------------------------------------------------
local ceil = math.ceil
local clamp = math.clamp
local round = math.round
local max = math.max
local min = ... | 1,571 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/codec/meta/Auto.luau | luau | .luau | --!strict
--!native
-- Self-describing codec. u8 type tag + value payload.
local Base = require(script.Parent.Parent.Base)
local BoolC = require(script.Parent.Parent.primitive.Bool)
local BufferC = require(script.Parent.Parent.datatype.Buffer)
local CFrameC = require(script.Parent.Parent.datatype.CFrame)
local ColorC ... | 3,302 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/codec/meta/Bitfield.luau | luau | .luau | --!strict
--!native
-- Sub-byte packing. 1 to 32 bits across bool/uint/int fields.
local Base = require(script.Parent.Parent.Base)
-- Private -------------------------------------------------------------
local band = bit32.band
local bor = bit32.bor
local lshift = bit32.lshift
local rshift = bit32.rshift
-- Field t... | 1,156 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/codec/meta/Custom.luau | luau | .luau | --!strict
--!optimize 2
-- User-defined fixed-size codec.
local Base = require(script.Parent.Parent.Base)
-- Private -------------------------------------------------------------
local floor = math.floor
-- Public --------------------------------------------------------------
local Custom = {}
function Custom.def... | 170 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/codec/meta/Enum.luau | luau | .luau | --!strict
--!optimize 2
-- String enum codec. Maps values to u8 indices at define time.
local Base = require(script.Parent.Parent.Base)
-- Public --------------------------------------------------------------
local EnumCodec = {}
function EnumCodec.define(...: string): any
local values = { ... }
local count... | 377 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/codec/meta/Float.luau | luau | .luau | --!strict
--!native
-- Fixed-point quantization codec. Maps float ranges to integer ranges.
local Base = require(script.Parent.Parent.Base)
-- Private -------------------------------------------------------------
local ceil = math.ceil
local clamp = math.clamp
local round = math.round
local max = math.max
local min ... | 467 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/codec/meta/Nothing.luau | luau | .luau | --!strict
--!optimize 2
-- Zero-byte codec. Reads nil. For fire-and-forget signals.
local Base = require(script.Parent.Parent.Base)
-- Public --------------------------------------------------------------
local Nothing = {}
Nothing.nothing = Base.zero()
return table.freeze(Nothing)
| 55 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/codec/meta/Unknown.luau | luau | .luau | --!strict
--!optimize 2
-- Bypasses buffer serialization. Uses Roblox remote sidecar refs.
local Base = require(script.Parent.Parent.Base)
local Types = require(script.Parent.Parent.Parent.Types)
-- Private -------------------------------------------------------------
local alloc = Base.alloc
local writeu16 = buffer... | 296 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/codec/primitive/Bool.luau | luau | .luau | --!strict
--!optimize 2
-- Boolean codec with bitpacking flag for struct and array codecs.
local Base = require(script.Parent.Parent.Base)
-- Public --------------------------------------------------------------
local Bool = {}
Bool.bool = Base.define(1, function(b: buffer, off: number, value: boolean): ()
buff... | 132 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/codec/primitive/Float16.luau | luau | .luau | --!strict
--!native
-- Half-precision float codec. 2 bytes, ±65504, ~3 decimal digits.
local Base = require(script.Parent.Parent.Base)
-- Private -------------------------------------------------------------
local band = bit32.band
local bor = bit32.bor
local lshift = bit32.lshift
local rshift = bit32.rshift
local f... | 784 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/codec/primitive/Int.luau | luau | .luau | --!strict
--!optimize 2
-- Smart integer codec. Auto-selects u8/u16/u32/i8/i16/i32 from range.
local Base = require(script.Parent.Parent.Base)
-- Private -------------------------------------------------------------
local floor = math.floor
-- Public --------------------------------------------------------------
l... | 678 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/codec/primitive/Number.luau | luau | .luau | --!strict
--!optimize 2
-- Explicit-precision float codecs: f32 and f64.
local Base = require(script.Parent.Parent.Base)
-- Constants -----------------------------------------------------------
local F32_SCRATCH = buffer.create(4)
-- Public --------------------------------------------------------------
local Numbe... | 144 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/codec/primitive/Varint.luau | luau | .luau | --!strict
--!native
-- Dense prefix-varint encoding with single-branch decode.
local Base = require(script.Parent.Parent.Base)
local Types = require(script.Parent.Parent.Parent.Types)
-- Constants -----------------------------------------------------------
local INLINE_MAX = 0xBF
-- Private ------------------------... | 798 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/init.luau | luau | .luau | --!strict
--!optimize 2
-- Lync: buffer networking for Roblox.
local RunService = game:GetService("RunService")
local Base = require(script.codec.Base)
local Channel = require(script.internal.Channel)
local Gate = require(script.transport.Gate)
local Group = require(script.api.Group)
local Middleware = require(script... | 2,387 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/internal/Baseline.luau | luau | .luau | --!strict
--!optimize 2
-- Read-side delta cache for delta codecs.
-- State ---------------------------------------------------------------
local _caches: { [number]: { [any]: any } } = {}
local _currentKey: any = false
local _hasDelta = false
-- Public --------------------------------------------------------------
... | 274 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/internal/Middleware.luau | luau | .luau | --!strict
--!optimize 2
-- Ordered intercept chains returning Connection objects.
local Signal = require(script.Parent.Parent.api.Signal)
local Types = require(script.Parent.Parent.Types)
-- State ---------------------------------------------------------------
local _sendSignal = Signal.create()
local _receiveSignal... | 569 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/internal/Pool.luau | luau | .luau | --!strict
--!optimize 2
-- Stack-based ChannelState pool for per-player channel reuse.
local Channel = require(script.Parent.Channel)
local Types = require(script.Parent.Parent.Types)
-- Constants -----------------------------------------------------------
local DEFAULT_SIZE = 16
-- State --------------------------... | 269 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/transport/Bridge.luau | luau | .luau | --!strict
--!optimize 2
-- Remote instance creation and access.
local RunService = game:GetService("RunService")
-- Constants -----------------------------------------------------------
local RELIABLE_NAME = "LyncReliable"
local UNRELIABLE_NAME = "LyncUnreliable"
-- State -------------------------------------------... | 572 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/transport/Client.luau | luau | .luau | --!strict
--!optimize 2
-- Client-side transport: single channel pair, flush.
local Bridge = require(script.Parent.Parent.transport.Bridge)
local Channel = require(script.Parent.Parent.internal.Channel)
local Reader = require(script.Parent.Parent.transport.Reader)
local Types = require(script.Parent.Parent.Types)
-- ... | 649 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/transport/Gate.luau | luau | .luau | --!strict
--!native
-- Schema-aware validation and rate limiting.
local Middleware = require(script.Parent.Parent.internal.Middleware)
local Registry = require(script.Parent.Parent.internal.Registry)
local Types = require(script.Parent.Parent.Types)
-- Constants -------------------------------------------------------... | 2,293 |
Axp3cter/Lync | Axp3cter-Lync-4169337/src/transport/Server.luau | luau | .luau | --!strict
--!optimize 2
-- Server-side transport: per-player channels, broadcast, flush.
local Players = game:GetService("Players")
local Baseline = require(script.Parent.Parent.internal.Baseline)
local Bridge = require(script.Parent.Parent.transport.Bridge)
local Channel = require(script.Parent.Parent.internal.Chann... | 1,390 |
cxmeel/resurface-plugin | cxmeel-resurface-plugin-a9915a3/lune/Utils/colors.luau | luau | .luau | local colors = {
red = function(str)
return `\27[31m{str}\27[39m`
end,
green = function(str)
return `\27[32m{str}\27[39m`
end,
yellow = function(str)
return `\27[33m{str}\27[39m`
end,
blue = function(str)
return `\27[34m{str}\27[39m`
end,
grey = function(str)
return `\27[90m{str}\27[39m`
end,
bold ... | 146 |
cxmeel/resurface-plugin | cxmeel-resurface-plugin-a9915a3/lune/Utils/createSequence.luau | luau | .luau | local DateTime = require("@lune/datetime")
local process = require("@lune/process")
local c = require("./colors")
local generateUuid = require("./generateUuid")
local shortUuid = require("./shortUuid")
local trim = require("./trim")
export type Command = {
label: string?,
exec: string | (sessionId: string, args: {... | 565 |
cxmeel/resurface-plugin | cxmeel-resurface-plugin-a9915a3/lune/Utils/fsWatch.luau | luau | .luau | local DateTime = require("@lune/datetime")
local fs = require("@lune/fs")
local process = require("@lune/process")
local task = require("@lune/task")
local DEFAULT_POLL_INTERVAL = 5
local SESSION_START = DateTime.now()
local function powershellGetLastModified(dir: string?)
if not dir or not fs.isDir(dir) then
retu... | 389 |
cxmeel/resurface-plugin | cxmeel-resurface-plugin-a9915a3/lune/Utils/generateUuid.luau | luau | .luau | --!strict
local function generateUuid()
local template = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"
local result = string.gsub(template, "[xy]", function(c)
local v = (c == "x") and math.random(0, 0xf) or math.random(8, 0xb)
return string.format("%x", v)
end)
return result
end
return generateUuid
| 88 |
cxmeel/resurface-plugin | cxmeel-resurface-plugin-a9915a3/lune/Utils/shortUuid.luau | luau | .luau | --!strict
local generateUuid = require("./generateUuid")
local function shortUuid(uuid: string?)
if uuid then
return uuid:sub(1, 7)
end
return shortUuid(generateUuid())
end
return shortUuid
| 51 |
cxmeel/resurface-plugin | cxmeel-resurface-plugin-a9915a3/lune/Utils/trim.luau | luau | .luau | local function trim(str: string): string
local trimmed = str:gsub("^%s*(.-)%s*$", "%1")
return trimmed
end
return trim
| 35 |
cxmeel/resurface-plugin | cxmeel-resurface-plugin-a9915a3/lune/build.luau | luau | .luau | local DateTime = require("@lune/datetime")
local fs = require("@lune/fs")
local process = require("@lune/process")
local serde = require("@lune/serde")
local task = require("@lune/task")
local c = require("./Utils/colors")
local createSequence = require("./Utils/createSequence")
local trim = require("./Utils/trim")
lo... | 1,769 |
cxmeel/resurface-plugin | cxmeel-resurface-plugin-a9915a3/lune/wally-install.luau | luau | .luau | local fs = require("@lune/fs")
local c = require("./Utils/colors")
local createSequence = require("./Utils/createSequence")
type Command = {
label: string?,
exec: string | (sessionId: string, args: { string }) -> (),
args: { string }?,
when: ((sessionId: string) -> boolean)?,
}
local removedPackages = false
loca... | 317 |
cxmeel/resurface-plugin | cxmeel-resurface-plugin-a9915a3/src/Assets/IconMap.luau | luau | .luau | -- This file was @generated by Tarmac. It is not intended for manual editing.
return {
Icons = {
backspace = function(dpiScale)
if dpiScale >= 3 then
return {
Image = "rbxassetid://113892098394283",
ImageRectOffset = Vector2.new(0, 0),
ImageRectSize = Vector2.new(48, 48),
}
elseif dpiSca... | 4,834 |
cxmeel/resurface-plugin | cxmeel-resurface-plugin-a9915a3/src/Assets/MaterialVariants.luau | luau | .luau | export type Variant = {
surfaceType: Enum.SurfaceType,
colorMap: string,
normalMap: string,
studsPerTile: number,
}
return {
glue = {
surfaceType = Enum.SurfaceType.Glue,
colorMap = "rbxassetid://10509635556",
normalMap = "rbxassetid://10509645465",
studsPerTile = 1,
},
inlet = {
surfaceType = Enum.Su... | 328 |
cxmeel/resurface-plugin | cxmeel-resurface-plugin-a9915a3/src/Frontend/App.luau | luau | .luau | local React = require("@pkgs/React")
local PluginFacade = require("./PluginFacade")
local SelectionTracker = require("./Widgets/SelectionTracker")
local StudioPluginProvider = require("./Components/StudioPlugin/StudioPlugin").Provider
local ViewportWidget = require("./Widgets/ViewportWidget")
local e = React.createEl... | 132 |
cxmeel/resurface-plugin | cxmeel-resurface-plugin-a9915a3/src/Frontend/ClassicMenu.luau | luau | .luau | local plugin: Plugin = plugin or script:FindFirstAncestorOfClass("Plugin")
local HttpService = game:GetService("HttpService")
local Studio = settings():GetService("Studio")
local IconMap = require("@root/Assets/IconMap")
local Preferences = require("@root/Stores/Preferences")
local Icon = require("./Components/Icon")... | 806 |
cxmeel/resurface-plugin | cxmeel-resurface-plugin-a9915a3/src/Frontend/Components/ComponentGroup.luau | luau | .luau | local React = require("@pkgs/React")
local useDefaultProps = require("../Hooks/useDefaultProps")
local useTheme = require("../Hooks/useTheme")
local memo = React.memo
local e = React.createElement
local function ComponentGroup(props: {
orientation: ("horizontal" | "vertical")?,
spacing: UDim?,
native: { [string]:... | 324 |
cxmeel/resurface-plugin | cxmeel-resurface-plugin-a9915a3/src/Frontend/Components/Divider.luau | luau | .luau | local React = require("@pkgs/React")
local useDefaultProps = require("../Hooks/useDefaultProps")
local useTheme = require("../Hooks/useTheme")
local e = React.createElement
local memo = React.memo
local function Divider(props: {
orientation: ("horizontal" | "vertical")?,
native: { [string]: any }?,
})
local theme... | 209 |
cxmeel/resurface-plugin | cxmeel-resurface-plugin-a9915a3/src/Frontend/Components/Gizmos/NormalGizmo.luau | luau | .luau | local React = require("@pkgs/React")
local e = React.createElement
local LINE_THICKNESS = 0.15
local LINE_ZINDEX = 2
local function LeftRightWirebox(props: {
normal: Enum.NormalId,
part: BasePart,
color: Color3?,
})
if props.normal ~= Enum.NormalId.Right and props.normal ~= Enum.NormalId.Left then
return
end
... | 3,299 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.