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 |
|---|---|---|---|---|---|
argon-rbx/argon-roblox | argon-rbx-argon-roblox-30fd38d/src/Core/Tree.luau | luau | .luau | --!native
local Argon = script:FindFirstAncestor("Argon")
local Types = require(Argon.Types)
local Tree = {}
Tree.__index = Tree
function Tree.new()
local self = {
instanceMap = {},
metaMap = {},
idMap = {},
}
return setmetatable(self, Tree)
end
function Tree:insertInstance(instance: Instance, id: Types.... | 551 |
argon-rbx/argon-roblox | argon-rbx-argon-roblox-30fd38d/src/Helpers/describeChanges.luau | luau | .luau | --!strict
local Argon = script:FindFirstAncestor("Argon")
local App = Argon.App
local Types = require(Argon.Types)
local Util = require(Argon.Util)
local Theme = require(App.Theme)
local function hex(kind: string): string
return "#" .. Theme.Colors.Diff[kind]:ToHex()
end
return function(changes: Types.Changes): str... | 282 |
argon-rbx/argon-roblox | argon-rbx-argon-roblox-30fd38d/src/Helpers/equals.luau | luau | .luau | --!strict
local Argon = script:FindFirstAncestor("Argon")
local Util = require(Argon.Util)
local function fuzzy(a: number, b: number): boolean
return math.abs(a - b) < 0.0001
end
local function componentEq(a: { number }, b: { number }): boolean
for i, aComp in a do
if not fuzzy(aComp, b[i]) then
return false
... | 540 |
argon-rbx/argon-roblox | argon-rbx-argon-roblox-30fd38d/src/Helpers/generateRef.luau | luau | .luau | --!strict
local Argon = script:FindFirstAncestor("Argon")
local Types = require(Argon.Types)
return function(): Types.Ref
local buf = buffer.create(16)
for i = 0, 15 do
buffer.writeu8(buf, i, math.random(0, 255))
end
return buf
end
| 74 |
argon-rbx/argon-roblox | argon-rbx-argon-roblox-30fd38d/src/Helpers/setWaypoint.luau | luau | .luau | local ChangeHistoryService = game:GetService("ChangeHistoryService")
return function(action: string, name: string?)
name = name and ` "{name}"` or ""
ChangeHistoryService:SetWaypoint(`Argon: {action}{name} [{DateTime.now():FormatLocalTime("LTS", "en-us")}]`)
end
| 69 |
argon-rbx/argon-roblox | argon-rbx-argon-roblox-30fd38d/src/Lib/Dom/EncodedValue.luau | luau | .luau | local base64 = require(script.Parent.base64)
local function identity(...)
return ...
end
local function unpackDecoder(f)
return function(value)
return f(unpack(value))
end
end
local ALL_AXES = { "X", "Y", "Z" }
local ALL_FACES = { "Right", "Top", "Back", "Left", "Bottom", "Front" }
local EncodedValue = {}
loc... | 3,557 |
argon-rbx/argon-roblox | argon-rbx-argon-roblox-30fd38d/src/Lib/Dom/Error.luau | luau | .luau | local Error = {}
Error.__index = Error
Error.Kind = {
UnknownProperty = "UnknownProperty",
PropertyNotReadable = "PropertyNotReadable",
PropertyNotWritable = "PropertyNotWritable",
CannotParseBinaryString = "CannotParseBinaryString",
Roblox = "Roblox",
}
setmetatable(Error.Kind, {
__index = function(_, key)
e... | 161 |
argon-rbx/argon-roblox | argon-rbx-argon-roblox-30fd38d/src/Lib/Dom/PropertyDescriptor.luau | luau | .luau | local Error = require(script.Parent.Error)
local customProperties = require(script.Parent.customProperties)
-- A wrapper around a property descriptor from the reflection database with some
-- extra convenience methods.
--
-- The aim of this API is to facilitate looking up a property once, then reading
-- from it or wr... | 775 |
argon-rbx/argon-roblox | argon-rbx-argon-roblox-30fd38d/src/Lib/Dom/base64.luau | luau | .luau | local EncodingService = game:GetService("EncodingService")
return {
decode = function(input: string)
return buffer.tostring(EncodingService:Base64Decode(buffer.fromstring(input)))
end,
encode = function(input: string)
return buffer.tostring(EncodingService:Base64Encode(buffer.fromstring(input)))
end,
}
| 66 |
argon-rbx/argon-roblox | argon-rbx-argon-roblox-30fd38d/src/Lib/Dom/customProperties.luau | luau | .luau | local CollectionService = game:GetService("CollectionService")
local ScriptEditorService = game:GetService("ScriptEditorService")
local Error = require(script.Parent.Error)
--- A list of `Enum.Material` values that are used for Terrain.MaterialColors
local TERRAIN_MATERIAL_COLORS = {
Enum.Material.Grass,
Enum.Mater... | 1,579 |
argon-rbx/argon-roblox | argon-rbx-argon-roblox-30fd38d/src/Lib/Dom/init.luau | luau | .luau | local database = require(script.database)
local Error = require(script.Error)
local PropertyDescriptor = require(script.PropertyDescriptor)
local function findCanonicalPropertyDescriptor(className, propertyName)
local currentClassName = className
repeat
local currentClass = database.Classes[currentClassName]
i... | 544 |
argon-rbx/argon-roblox | argon-rbx-argon-roblox-30fd38d/src/Lib/MsgPack.luau | luau | .luau | --!native
--!strict
local MsgPack = {}
local band = bit32.band
local bor = bit32.bor
local bufferCreate = buffer.create
local bufferLen = buffer.len
local bufferCopy = buffer.copy
local bufferToString = buffer.tostring
local readstring = buffer.readstring
local writestring = buffer.writestring
local readu8 = buffer.re... | 6,784 |
argon-rbx/argon-roblox | argon-rbx-argon-roblox-30fd38d/src/Log.luau | luau | .luau | --!strict
local Argon = script:FindFirstAncestor("Argon")
local Util = require(Argon.Util)
local function format(...: any): string
local args = ""
for _, arg in { ... } do
args ..= " " .. Util.stringify(arg)
end
return args
end
local Log = {
Level = {
Off = 0,
Error = 1,
Warn = 2,
Info = 3,
Debug ... | 322 |
argon-rbx/argon-roblox | argon-rbx-argon-roblox-30fd38d/src/Place.luau | luau | .luau | --!strict
local MarketPlaceService = game:GetService("MarketplaceService")
local name = game.Name
local isFile = (name:find(".rbxl") or name:find(".rbxlx")) ~= nil
if not isFile then
pcall(function()
name = MarketPlaceService:GetProductInfo(game.PlaceId).Name
end)
end
return {
Name = name,
IsFile = isFile,
Ve... | 96 |
argon-rbx/argon-roblox | argon-rbx-argon-roblox-30fd38d/src/SemVer.luau | luau | .luau | --!strict
type SemVer = typeof(setmetatable(
{} :: {
major: number,
minor: number,
patch: number,
},
{} :: SemVerImpl
))
type SemVerImpl = {
__index: SemVerImpl,
new: (major: number, minor: number, patch: number) -> SemVer,
parse: (version: string) -> SemVer,
toString: (self: SemVer) -> string,
isCompati... | 474 |
argon-rbx/argon-roblox | argon-rbx-argon-roblox-30fd38d/src/Types.luau | luau | .luau | -- General structs
export type Ref = buffer
export type ClassName = string
export type Properties = {
[string]: any,
}
export type Meta = {
keepUnknowns: boolean,
meshSource: string?,
}
-- Snapshots
export type Snapshot = {
id: Ref,
meta: Meta,
name: string,
class: ClassName,
properties: Properties,
child... | 330 |
argon-rbx/argon-roblox | argon-rbx-argon-roblox-30fd38d/src/Util.luau | luau | .luau | --!strict
local HttpService = game:GetService("HttpService")
local Util = {}
--- Get length of non-numerically indexed table
function Util.len(table: { [any]: any }): number
local count = 0
for _ in table do
count += 1
end
return count
end
--- Join second table to the first one
function Util.join(table1: { a... | 1,048 |
argon-rbx/argon-roblox | argon-rbx-argon-roblox-30fd38d/src/Watcher.luau | luau | .luau | --!strict
local CollectionService = game:GetService("CollectionService")
local Argon = script:FindFirstAncestor("Argon")
local Signal = require(Argon.Packages.Signal)
local Types = require(Argon.Types)
local Log = require(Argon.Log)
type Watcher = typeof(setmetatable(
{} :: {
isActive: boolean,
connections: { ... | 1,190 |
argon-rbx/argon-roblox | argon-rbx-argon-roblox-30fd38d/src/init.server.luau | luau | .luau | --!strict
local RunService = game:GetService("RunService")
if RunService:IsRunning() then
return
end
local Config = require(script.Config)
local Log = require(script.Log)
local App = require(script.App)
Config.load()
Log.__setLevel(Config:get("LogLevel"))
App.new()
Config:onChanged("LogLevel", function(level)
Log... | 80 |
ericplane/Scribe | ericplane-Scribe-e3309e9/adapters/Fusion.luau | luau | .luau | --!strict
-- Fusion adapter. Copy into your game; not part of the Scribe package.
-- local useScribe = require(path.to.Fusion)(Fusion, scope) -- 0.3
-- local useScribe = require(path.to.Fusion)(Fusion) -- 0.2
-- local coins, disconnect = useScribe(Data.Coins)
export type Disconnect = () -> ()
--- `scop... | 240 |
ericplane/Scribe | ericplane-Scribe-e3309e9/adapters/React.luau | luau | .luau | --!strict
-- React adapter. Copy into your game; not part of the Scribe package.
-- local Scribe = require(path.to.React)(React)
-- local coins = Scribe.useScribe(Data.Coins) -- re-renders
-- local coins = Scribe.useScribeBinding(Data.Coins) -- property only
--
-- useState + useEffect, not useSyncExter... | 341 |
ericplane/Scribe | ericplane-Scribe-e3309e9/adapters/Vide.luau | luau | .luau | --!strict
-- Vide adapter. Copy into your game; not part of the Scribe package.
-- local useScribe = require(path.to.Vide)(vide)
-- local coins, disconnect = useScribe(Data.Coins)
export type Disconnect = () -> ()
return function(vide: any)
--- A source tracking one accessor. Hand the disconnect to `vide.cleanup... | 122 |
ericplane/Scribe | ericplane-Scribe-e3309e9/bundle/README.luau | luau | .luau | --[[
Scribe installation
This bundle contains everything Scribe needs, in one folder:
Packages (put this in ReplicatedStorage)
Scribe
Steps
1. Drag the "Packages" folder into ReplicatedStorage.
2. Delete this outer folder once it is in place.
3. Require Scribe from a shared m... | 248 |
ericplane/Scribe | ericplane-Scribe-e3309e9/lune/check-log-codes.luau | luau | .luau | --!strict
-- Every log code Scribe emits must be declared in Types.LogCode and documented
-- in the log-codes guide -- AND every code declared or documented must actually
-- be emitted. Both directions, because the decay runs both ways.
--
-- WHY THIS IS A GATE RATHER THAN A CONVENTION. Nothing else checks it. The type... | 2,100 |
ericplane/Scribe | ericplane-Scribe-e3309e9/src/Internal/Big.luau | luau | .luau | --!strict
-- Mantissa/exponent numbers for values past 2^53. Trades precision for range: a value
-- carries exactly 15 significant digits at any magnitude, so `1e20 + 1 == 1e20`, and
-- anything that must be exact belongs in Scribe.Int. Stored as the two-element array
-- { mantissa, exponent }, normalized to either { 0... | 6,395 |
ericplane/Scribe | ericplane-Scribe-e3309e9/src/Internal/Budget.luau | luau | .luau | --!strict
-- DataStore request budgets: what the engine says is left, whether a deferrable
-- background request should wait, and a FIFO queue for callers willing to wait.
local Clock = require(script.Parent.Clock)
local Sched = require(script.Parent.Sched)
local Metrics = require(script.Parent.Metrics)
local Defaults... | 2,591 |
ericplane/Scribe | ericplane-Scribe-e3309e9/src/Internal/Clock.luau | luau | .luau | --!strict
-- The clock seam: every time reading and timed wait goes through here, so a test can
-- replace them and fast-forward. Two clocks, because conflating them is a real bug:
-- Now() wall time (os.time). For anything persisted or compared across servers;
-- it can jump when corrected, so ne... | 580 |
ericplane/Scribe | ericplane-Scribe-e3309e9/src/Internal/Config.luau | luau | .luau | --!strict
-- Process-scoped configuration. ProfileStore's AUTO_SAVE_PERIOD is a module-wide
-- constant, not a per-store one, so the autosave cadence belongs to the process
-- rather than to any one bundle. Keeping the resolved value here lets Scribe notice
-- two bundles asking for different cadences instead of silent... | 150 |
ericplane/Scribe | ericplane-Scribe-e3309e9/src/Internal/Conform.luau | luau | .luau | --!strict
-- Checks a stored profile against the compiled template. Read-only and free of policy:
-- it reports violations, and Persistence decides what one costs. Data-driven, not
-- schema-driven: walking the schema would flag every field a profile predates, which
-- Reconcile backfills moments later.
-- Stored form ... | 3,802 |
ericplane/Scribe | ericplane-Scribe-e3309e9/src/Internal/Datatypes.luau | luau | .luau | --!strict
-- Packed-buffer codecs for Roblox datatypes. Declared fields (Scribe.Vector3,
-- Scribe.CFrame, ...) store this packed form; persistence, replication, cloning and the
-- wipe guard only ever see plain buffers, and the node accessor converts at the boundary
-- (Set packs, Get unpacks). Roblox stores these typ... | 6,391 |
ericplane/Scribe | ericplane-Scribe-e3309e9/src/Internal/Defaults.luau | luau | .luau | --!strict
-- Timeout defaults. The client waits only on the handshake; a server load can sit
-- behind a session steal, which is the 30 against the 60.
return table.freeze({
ClientWaitForData = 30,
ServerWaitForData = 60,
Request = 10,
OwnsAsync = 10,
ProductInfo = 10,
AwaitBudget = 120,
})
| 86 |
ericplane/Scribe | ericplane-Scribe-e3309e9/src/Internal/Derived.luau | luau | .luau | --!strict
-- Derived fields. A derived field is computed from other declared fields instead of
-- accepting writes: never persisted, recomputed when an input changes, and replicated
-- only when the receiving realm cannot compute it for itself. This module owns the
-- compile-time half (resolve input paths, order the g... | 3,635 |
ericplane/Scribe | ericplane-Scribe-e3309e9/src/Internal/Exchange.luau | luau | .luau | --!strict
-- ClaimExchange orchestration: one same-server exchange, start to finish.
--
-- Everything fallible happens BEFORE the verdict. After it there are two kinds of step:
-- SETTLE, which writes only under the reserved root and cannot be refused by any shape,
-- cap or bound; and DELIVER, which can fail but rolls... | 5,513 |
ericplane/Scribe | ericplane-Scribe-e3309e9/src/Internal/ExchangeLeg.luau | luau | .luau | --!strict
-- The total-apply primitive for ClaimExchange: moves value off a declared path into the
-- owner's reserved root and later back onto a declared path, proving every step from a
-- return value AND a post-mutation re-read. Never Increment, Decrement or a bare Insert:
-- those can no-op or clamp and still repor... | 14,497 |
ericplane/Scribe | ericplane-Scribe-e3309e9/src/Internal/ExchangeVerdict.luau | luau | .luau | --!strict
-- The verdict key: the single point of no return for an exchange. Two players are two
-- DataStore keys with no multi-key transaction, so ONE key decides and everything after
-- it is infallible or infinitely retryable. The only property owed: every participant,
-- on every server, on every retry, reads the ... | 1,222 |
ericplane/Scribe | ericplane-Scribe-e3309e9/src/Internal/Log.luau | luau | .luau | --!strict
-- Structured logger. Library-level singleton.
-- Every entry: { At, Level, Category, Code, Message, Context }.
local LogService = game:GetService("LogService")
local RunService = game:GetService("RunService")
local HttpService = game:GetService("HttpService")
local Util = require(script.Parent.Util)
local ... | 2,086 |
ericplane/Scribe | ericplane-Scribe-e3309e9/src/Internal/Marker.luau | luau | .luau | --!strict
-- Declarator markers. Declarators return marker tables at runtime (cast to their
-- base Luau type at the type level); the template compiler strips them into
-- (defaultValue, schemaMeta) and deep-freezes the rest.
local MARKER_KEY = "__scribeMarker"
export type MarkerKind =
"Int"
| "Number"
| "Big"
| ... | 693 |
ericplane/Scribe | ericplane-Scribe-e3309e9/src/Internal/Metrics.luau | luau | .luau | --!strict
-- Metrics counters. Library-level singleton.
--
-- Pull only: a host reads Metrics.Get() (published as Scribe.GetMetrics) on whatever
-- cadence it wants, as DebugHook does on a 1 Hz timer. Do not add a sink hook to Add;
-- counters are bumped on hot paths, and a sink there would put arbitrary game code
-- i... | 984 |
ericplane/Scribe | ericplane-Scribe-e3309e9/src/Internal/Node.luau | luau | .luau | --!strict
-- The Value tree runtime: a metatable-backed accessor tree that lazily materializes
-- child nodes, records paths for replication, validates every write, and holds
-- per-node callback lists. Used for the server tree and the client mirror alike.
local Util = require(script.Parent.Util)
local Big = require(s... | 45,341 |
ericplane/Scribe | ericplane-Scribe-e3309e9/src/Internal/Profile.luau | luau | .luau | --!strict
-- MicroProfiler spans and memory attribution. `debug.profilebegin` exists only in the
-- Roblox VM, so the functions are resolved once here and the headless path costs one
-- nil check. There is no exposed Begin/End pair on purpose: an unclosed span skews every
-- label after it for the rest of the frame, so... | 698 |
ericplane/Scribe | ericplane-Scribe-e3309e9/src/Internal/Rng.luau | luau | .luau | --!strict
-- The randomness seam: every draw goes through here, so a simulation can replay a run.
-- Next() returns a float in [0, 1). Not math.random, whose state the game shares, and
-- not Random.new, which does not exist outside Roblox.
-- Seeded from JobId mixed with Clock.Now(), because a fleet booted by one depl... | 808 |
ericplane/Scribe | ericplane-Scribe-e3309e9/src/Internal/Sched.luau | luau | .luau | --!strict
-- The scheduling seam: starting a thread goes through here, so a simulation can decide
-- the interleaving. A replacement must keep the engine's semantics, or it finds bugs
-- that cannot happen and hides ones that can:
-- Spawn(fn, ...) runs `fn` immediately on the caller's stack, like task.spawn. Code
... | 550 |
ericplane/Scribe | ericplane-Scribe-e3309e9/src/Internal/Signal.luau | luau | .luau | --!strict
-- Signal: the batched, yield-safe Roblox signal (GoodSignal), vendored so Scribe carries
-- no external Signal dependency. Handlers run on a cached runner thread (cheap yielding),
-- connections form a linked list so a listener can disconnect another mid-fire, and a
-- throwing handler is surfaced by the sch... | 2,563 |
ericplane/Scribe | ericplane-Scribe-e3309e9/src/Internal/Store/init.luau | luau | .luau | --!strict
-- Scribe's session/profile store: a vendored fork of ProfileStore v1.0.3, additive only.
-- The lock (ForceLoadSession, the steal ladder, ASSUME_DEAD, the MessagingService
-- release, the record shape) and the stored key are byte-identical to upstream, so a
-- fleet can run mixed versions and roll back witho... | 238 |
ericplane/Scribe | ericplane-Scribe-e3309e9/src/Internal/StudioCodec.luau | luau | .luau | --!strict
-- Studio debug-hook codec: a self-describing, length-prefixed text encoding for
-- arbitrary Luau data tables crossing the plugin/game VM boundary. Carries
-- string/number/boolean/nil/buffer values under string/number keys, including the
-- mixed and sparse tables neither JSON nor cross-VM reflection can ca... | 1,249 |
ericplane/Scribe | ericplane-Scribe-e3309e9/src/Internal/Transport.luau | luau | .luau | --!strict
-- Transport. A transport moves opaque buffers; Scribe owns serialization, batching
-- and RPC correlation. "Default" is two RemoteEvents under a folder in
-- ReplicatedStorage.
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")
local Types = requ... | 1,408 |
ericplane/Scribe | ericplane-Scribe-e3309e9/src/Internal/Util.luau | luau | .luau | --!strict
-- Small shared utilities.
local HttpService = game:GetService("HttpService")
-- Datatypes requires nothing, so this cannot cycle back into Util. Used only to
-- tell a raw-but-packable datatype apart from a genuinely unstorable value.
local Datatypes = require(script.Parent.Datatypes)
local Util = {}
-- ... | 4,808 |
ericplane/Scribe | ericplane-Scribe-e3309e9/src/Internal/Version.luau | luau | .luau | --!strict
-- Single source of truth for the release version. Keep wally.toml in sync.
return "2.3.0"
| 30 |
ericplane/Scribe | ericplane-Scribe-e3309e9/src/Internal/Wire.luau | luau | .luau | --!strict
-- Buffer wire format. Transports carry opaque buffers; both sides derive an
-- identical schema from the shared template, so paths intern to field IDs and
-- values pack by declared type. A 1-byte header per value lets anything the
-- schema cannot describe fall back to the generic codec.
local Template = r... | 12,050 |
ericplane/Scribe | ericplane-Scribe-e3309e9/src/Server/Analytics.luau | luau | .luau | --!strict
-- Economy source/sink analytics. Currency mutations tagged via Increment/Decrement (and
-- Data.Purchase) auto-emit AnalyticsService:LogEconomyEvent, with the currency taken from
-- the mutated field's name. Custom fields, an ambient Resolve and a label override are
-- declared once in options.Economy. Failu... | 1,982 |
ericplane/Scribe | ericplane-Scribe-e3309e9/src/Server/Exchanges.luau | luau | .luau | --!strict
-- The ClaimExchange subsystem: what owns the verdict key, the in-flight set, and the
-- resolution that runs on every load. The primitives underneath are dependency-injected
-- so the specs can drive them against a modelled disk; this layer is thin on purpose and
-- only decides what the real server passes t... | 6,123 |
ericplane/Scribe | ericplane-Scribe-e3309e9/src/Server/Persistence.luau | luau | .luau | --!strict
-- Persistence on ProfileStore: session lifecycle, fail-closed
-- migrations, offline access, version history/restore, save observability,
-- wipe guard, and BindToClose.
local Players = game:GetService("Players")
local HttpService = game:GetService("HttpService")
local Internal = script.Parent.Parent.Inter... | 34,777 |
ericplane/Scribe | ericplane-Scribe-e3309e9/src/Server/ServerStore.luau | luau | .luau | --!strict
-- The server-owned tree: one store per bundle, shared by everyone on the server.
-- Nothing here persists (store roots compile with Persist = false), so there is no key,
-- no session lock and no migration. Built with the bundle, destroyed with it.
local Internal = script.Parent.Parent.Internal
local Node =... | 718 |
playcurrent/shards | playcurrent-shards-946b20a/lib/init.luau | luau | .luau | --
-- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
-- distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
--
local HttpService = game:GetService("HttpService")
local LocalizationService = game:GetService("LocalizationServi... | 514 |
rorooms/rorooms | rorooms-rorooms-3d06941/ext_packages/AnimatedComponent.luau | luau | .luau | export type AnimatedComponent = {
_Animator: Animator,
_AnimationTracks: { [Animation]: AnimationTrack },
_Animations: { [string]: Animation },
PlayAnimation: (self: any, AnimationId: string) -> Animation,
StopAnimation: (self: any, AnimationId: string) -> (),
StopAnimations: (self: any) -> (),
GetAnimationTrac... | 550 |
rorooms/rorooms | rorooms-rorooms-3d06941/ext_packages/AttributeBind.luau | luau | .luau | local Signal = require(script.Parent.Parent.Parent.Parent.Parent.Signal)
export type AttributeBind = {
Instance: Instance,
Attribute: string,
Value: any,
Fallback: any?,
_Connections: { RBXScriptConnection | Signal.Connection },
Changed: Signal.Signal<any>,
_Update: (self: AttributeBind) -> any,
Get: (self: ... | 469 |
rorooms/rorooms | rorooms-rorooms-3d06941/ext_packages/CoreThemer/init.luau | luau | .luau | local Players = game:GetService("Players")
local StarterGui = game:GetService("StarterGui")
local TextChatService = game:GetService("TextChatService")
local MouseLockController = Players.LocalPlayer.PlayerScripts
:WaitForChild("PlayerModule")
:WaitForChild("CameraModule")
:WaitForChild("MouseLockController")
local... | 1,318 |
rorooms/rorooms | rorooms-rorooms-3d06941/ext_packages/DeepCopy.luau | luau | .luau | local function DeepCopy(Table: { [any]: any })
local NewTable = {}
for Key, Value in pairs(Table) do
if typeof(Value) == "table" then
NewTable[Key] = DeepCopy(Value)
else
NewTable[Key] = Value
end
end
return NewTable
end
return DeepCopy
| 75 |
rorooms/rorooms | rorooms-rorooms-3d06941/ext_packages/FilterString.luau | luau | .luau | local TextService = game:GetService("TextService")
return function(String: string, Player: Player)
local FilteredText
local Success, Log = pcall(function()
local FilterResult = TextService:FilterStringAsync(String, Player.UserId)
FilteredText = FilterResult:GetNonChatStringForBroadcastAsync()
end)
if S... | 100 |
rorooms/rorooms | rorooms-rorooms-3d06941/ext_packages/GetEntriesFromArray.luau | luau | .luau | local function GetEntriesFromArray(Array: { [number]: any }, Start: number, End: number)
local Entries = {}
for Index = Start, End do
table.insert(Entries, Array[Index])
end
return Entries
end
return GetEntriesFromArray
| 54 |
rorooms/rorooms | rorooms-rorooms-3d06941/ext_packages/LeaderStats.luau | luau | .luau | local ValueClassNames = {
int = "IntValue",
number = "NumberValue",
string = "StringValue",
boolean = "BoolValue",
Instance = "ObjectValue",
BrickColor = "BrickColorValue",
Color3 = "Color3Value",
Vector3 = "Vector3Value",
}
local InternalLeaderStats = {}
local LeaderStats = {}
LeaderStats.__index = L... | 353 |
rorooms/rorooms | rorooms-rorooms-3d06941/ext_packages/Nametagger/Nametag.luau | luau | .luau | local RunService = game:GetService("RunService")
local RoRooms = script.Parent.Parent.Parent.Parent.Parent
local OnyxUI = require(RoRooms.Parent.OnyxUI)
local Fusion = require(RoRooms.Parent.Fusion)
local Util = OnyxUI.Util
local Themer = OnyxUI.Themer
local Children = Fusion.Children
local TagText = require(script.... | 1,024 |
rorooms/rorooms | rorooms-rorooms-3d06941/ext_packages/Nametagger/PropertyEntry.luau | luau | .luau | local RoRooms = script.Parent.Parent.Parent.Parent.Parent
local OnyxUI = require(RoRooms.Parent.OnyxUI)
local Fusion = require(RoRooms.Parent.Fusion)
local Children = Fusion.Children
local Themer = OnyxUI.Themer
local Util = OnyxUI.Util
local TagText = require(script.Parent.TagText)
export type Props = {
Value: Fus... | 391 |
rorooms/rorooms | rorooms-rorooms-3d06941/ext_packages/Nametagger/TagText.luau | luau | .luau | local RoRooms = script.Parent.Parent.Parent.Parent.Parent
local OnyxUI = require(RoRooms.Parent.OnyxUI)
local Fusion = require(RoRooms.Parent.Fusion)
local Util = OnyxUI.Util
export type Props = {}
return function(Scope: Fusion.Scope<any>, Props: Props)
local Scope = Fusion.innerScope(Scope, Fusion, OnyxUI.Componen... | 174 |
rorooms/rorooms | rorooms-rorooms-3d06941/ext_packages/Nametagger/init.luau | luau | .luau | local Players = game:GetService("Players")
local RoRooms = script.Parent.Parent.Parent.Parent
local Nametag = require(script.Nametag)
local Fusion = require(RoRooms.Parent.Fusion)
export type Property = {
Value: any,
Image: string?,
}
export type Properties = { Property? }
export type Config = {
DisplayName: strin... | 410 |
rorooms/rorooms | rorooms-rorooms-3d06941/ext_packages/ReconcileTable.luau | luau | .luau | local function DeepCopyTable(Table)
local Copy = {}
for Key, Value in pairs(Table) do
if type(Value) == "table" then
Copy[Key] = DeepCopyTable(Value)
else
Copy[Key] = Value
end
end
return Copy
end
local function ReconcileTable(Target, Template)
for Key, Value in pairs(Template) do
if type(Key) == "s... | 191 |
rorooms/rorooms | rorooms-rorooms-3d06941/ext_packages/SessionStore/DataTemplate.luau | luau | .luau | export type Data = {
XPMultipliers: { [string]: number },
}
local DataTemplate: Data = {
XPMultipliers = {},
}
return DataTemplate
| 35 |
rorooms/rorooms | rorooms-rorooms-3d06941/ext_packages/SessionStore/init.luau | luau | .luau | local Players = game:GetService("Players")
local RoRooms = script.Parent.Parent.Parent.Parent
local Signal = require(RoRooms.Parent.Signal)
local DataTemplate = require(script.DataTemplate)
export type SessionData = DataTemplate.Data
export type MetaData = {
CreationTime: number,
}
export type SessionProfile = {
Da... | 375 |
rorooms/rorooms | rorooms-rorooms-3d06941/ext_packages/ShuffleArray.luau | luau | .luau | return function(array)
local n = #array
for i = 1, n - 1 do
local j = math.random(i, n)
array[i], array[j] = array[j], array[i]
end
return array
end
| 53 |
rorooms/rorooms | rorooms-rorooms-3d06941/ext_packages/ToolComponent/init.luau | luau | .luau | local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
export type Holder = {
Character: Model | nil,
Humanoid: Humanoid | nil,
Animator: Animator | nil,
Player: Player | nil,
}
export type ToolComponent = {
Tag: string,
Instance: Tool,
Holder: Holder?,
Handle: BasePart?,
... | 623 |
rorooms/rorooms | rorooms-rorooms-3d06941/include/EasyLoader/Client/init.server.luau | luau | .luau | local Rorooms = require(script.Parent.Parent.Rorooms)
local Config = require(script.Parent.Config)
Rorooms.Config:Update(Config)
Rorooms:Start()
| 39 |
rorooms/rorooms | rorooms-rorooms-3d06941/include/EasyLoader/Config/init.luau | luau | .luau | local ConfigUtils = require(script.Parent.ConfigUtils)
local Config = {
Systems = {
Profiles = {
Roles = ConfigUtils:CompileRoles(script.Roles),
DefaultRoleId = script.Roles:GetAttribute("DefaultRoleId"),
AvatarEditorCallback = ConfigUtils:GetAvatarEditorCallback(script),
},
Music = {
SoundGroup = s... | 264 |
rorooms/rorooms | rorooms-rorooms-3d06941/include/EasyLoader/ConfigUtils.luau | luau | .luau | local ConfigUtils = {}
function ConfigUtils:IfString(Value: any): string?
if typeof(Value) == "string" then
return Value
else
return nil
end
end
function ConfigUtils:IfNumber(Value: any): number?
if typeof(Value) == "number" then
return Value
else
return nil
end
end
function ConfigUtils:GetColor(Instan... | 1,079 |
rorooms/rorooms | rorooms-rorooms-3d06941/include/Linking.luau | luau | .luau | return require(script.Packages["Rorooms"]) | 11 |
rorooms/rorooms | rorooms-rorooms-3d06941/src/API/Client.luau | luau | .luau | local SOURCE = script.Parent.SourceCode
local PACKAGES = script.Parent.Parent
local SHARED = SOURCE.Shared
local CLIENT = SOURCE.Client
local DEFAULT_CONTROLLERS = {
"UIController",
"BloxstrapController",
"ComponentsController",
"DefaultsController",
"UpdatesController",
"PreloadingController",
}
local Config = ... | 364 |
rorooms/rorooms | rorooms-rorooms-3d06941/src/API/Config.luau | luau | .luau | export type CategoryName = string
export type Category = {
DisplayName: string?,
Icon: string,
LayoutOrder: number?,
Color: Color3?,
}
export type Categories = {
[CategoryName]: Category,
}
export type Item = {
Enabled: boolean?,
Tool: Tool,
DisplayName: string?,
Category: string?,
Color: Color3?,
LayoutOrde... | 1,068 |
rorooms/rorooms | rorooms-rorooms-3d06941/src/API/Server.luau | luau | .luau | local SOURCE = script.Parent.SourceCode
local PACKAGES = script.Parent.Parent
local SERVER = SOURCE.Server
local DEFAULT_SERVICES = { "PlayerDataStoreService", "CharacterDefaultsService", "ComponentsService", "UpdatesService" }
local Config = require(script.Parent.Config)
local Knit = require(PACKAGES.Knit)
local Load... | 305 |
rorooms/rorooms | rorooms-rorooms-3d06941/src/API/Version.luau | luau | .luau | return "0.6.5"
| 8 |
rorooms/rorooms | rorooms-rorooms-3d06941/src/Client/Bloxstrap/BloxstrapController.luau | luau | .luau | local MarketplaceService = game:GetService("MarketplaceService")
local RunService = game:GetService("RunService")
local Rorooms = script.Parent.Parent.Parent.Parent
local Future = require(script.Parent.Parent.Parent.Parent.Parent.Future)
local BloxstrapRPC = require(Rorooms.Parent.BloxstrapRPC)
local BloxstrapControl... | 298 |
rorooms/rorooms | rorooms-rorooms-3d06941/src/Client/Components/AnimatedItemComponent.luau | luau | .luau | local Rorooms = script.Parent.Parent.Parent.Parent
local Component = require(Rorooms.Parent.Component)
local ToolComponent = require(Rorooms.SourceCode.Shared.ExtPackages.ToolComponent)
local AnimatedComponent = require(Rorooms.SourceCode.Shared.ExtPackages.AnimatedComponent)
local AnimatedItemComponent = Component.ne... | 512 |
rorooms/rorooms | rorooms-rorooms-3d06941/src/Client/Components/AnimatedSeatComponent.luau | luau | .luau | local Players = game:GetService("Players")
local Rorooms = script.Parent.Parent.Parent.Parent
local Component = require(Rorooms.Parent.Component)
local Fusion = require(Rorooms.Parent.Fusion)
local AttributeBind = require(Rorooms.SourceCode.Shared.ExtPackages.AttributeBind)
local Trove = require(Rorooms.Parent.Trove)
... | 805 |
rorooms/rorooms | rorooms-rorooms-3d06941/src/Client/Components/ComponentsController.luau | luau | .luau | local ComponentsController = {
Name = script.Name,
}
function ComponentsController:KnitStart()
for _, Module in ipairs(script.Parent:GetChildren()) do
if Module:IsA("ModuleScript") and Module ~= script then
require(Module)
end
end
end
return ComponentsController
| 61 |
rorooms/rorooms | rorooms-rorooms-3d06941/src/Client/Components/ItemGiverComponent.luau | luau | .luau | local Players = game:GetService("Players")
local Rorooms = script.Parent.Parent.Parent.Parent
local Component = require(Rorooms.Parent.Component)
local Fusion = require(Rorooms.Parent.Fusion)
local States = require(Rorooms.SourceCode.Client.UI.States)
local ItemsController = require(Rorooms.SourceCode.Client.Items.Ite... | 719 |
rorooms/rorooms | rorooms-rorooms-3d06941/src/Client/Components/LockedDoorComponent.luau | luau | .luau | local Players = game:GetService("Players")
local Rorooms = script.Parent.Parent.Parent.Parent
local Component = require(Rorooms.Parent.Component)
local Fusion = require(Rorooms.Parent.Fusion)
local States = require(Rorooms.SourceCode.Client.UI.States)
local AttributeBind = require(Rorooms.SourceCode.Shared.ExtPackages.... | 574 |
rorooms/rorooms | rorooms-rorooms-3d06941/src/Client/Components/WorldTeleporterComponent.luau | luau | .luau | local Players = game:GetService("Players")
local Rorooms = script.Parent.Parent.Parent.Parent
local AttributeBind = require(Rorooms.SourceCode.Shared.ExtPackages.AttributeBind)
local Component = require(Rorooms.Parent.Component)
local States = require(Rorooms.SourceCode.Client.UI.States)
local Fusion = require(Rorooms... | 486 |
rorooms/rorooms | rorooms-rorooms-3d06941/src/Client/Defaults/DefaultsController.luau | luau | .luau | local Rorooms = script.Parent.Parent.Parent.Parent
local CoreThemer = require(Rorooms.SourceCode.Shared.ExtPackages.CoreThemer)
local NeoHotbar = require(Rorooms.Parent.NeoHotbar)
local DefaultsController = {
Name = script.Name,
}
function DefaultsController:KnitStart()
CoreThemer:SetDefaults()
end
NeoHotbar:Start... | 85 |
rorooms/rorooms | rorooms-rorooms-3d06941/src/Client/Emotes/EmotesController.luau | luau | .luau | local Rorooms = script.Parent.Parent.Parent.Parent
local Knit = require(Rorooms.Parent.Knit)
local Topbar = require(Rorooms.SourceCode.Client.UI.States.Topbar)
local Prompts = require(Rorooms.SourceCode.Client.UI.States.Prompts)
local UIController = require(Rorooms.SourceCode.Client.UI.UIController)
local EmotesServic... | 281 |
rorooms/rorooms | rorooms-rorooms-3d06941/src/Client/Friends/FriendsController.luau | luau | .luau | local Players = game:GetService("Players")
local Rorooms = script.Parent.Parent.Parent.Parent
local Future = require(script.Parent.Parent.Parent.Parent.Parent.Future)
local UIController = require(Rorooms.SourceCode.Client.UI.UIController)
local States = require(Rorooms.SourceCode.Client.UI.States)
local Knit = require... | 655 |
rorooms/rorooms | rorooms-rorooms-3d06941/src/Client/Items/ItemsController.luau | luau | .luau | local Players = game:GetService("Players")
local Rorooms = script.Parent.Parent.Parent.Parent
local Knit = require(Rorooms.Parent.Knit)
local Fusion = require(Rorooms.Parent.Fusion)
local Signal = require(Rorooms.Parent.Signal)
local NeoHotbar = require(Rorooms.Parent.NeoHotbar)
local States = require(Rorooms.SourceCo... | 781 |
rorooms/rorooms | rorooms-rorooms-3d06941/src/Client/Music/MusicController.luau | luau | .luau | local SoundService = game:GetService("SoundService")
local Rorooms = script.Parent.Parent.Parent.Parent
local Knit = require(Rorooms.Parent.Knit)
local States = require(Rorooms.SourceCode.Client.UI.States)
local Fusion = require(Rorooms.Parent.Fusion)
local Config = require(Rorooms.Config).Config
local Peek = Fusion.... | 326 |
rorooms/rorooms | rorooms-rorooms-3d06941/src/Client/Preloading/PreloadingController.luau | luau | .luau | local ContentProvider = game:GetService("ContentProvider")
local Rorooms = script.Parent.Parent.Parent.Parent
local Assets = require(Rorooms.SourceCode.Shared.Assets)
export type ContentIds = { string }
export type ContentIdTree = string | { [string]: ContentIdTree }
local PreloadingController = {
Name = script.Nam... | 243 |
rorooms/rorooms | rorooms-rorooms-3d06941/src/Client/Profiles/AvatarSelector.luau | luau | .luau | local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local Rorooms = script.Parent.Parent.Parent.Parent
local Signal = require(Rorooms.Parent.Signal)
local AvatarSelector = {
AvatarSelected = Signal.new(),
AvatarDese... | 554 |
rorooms/rorooms | rorooms-rorooms-3d06941/src/Client/Profiles/ProfilesController.luau | luau | .luau | local Players = game:GetService("Players")
local Rorooms = script.Parent.Parent.Parent.Parent
local Topbar = require(Rorooms.SourceCode.Client.UI.States.Topbar)
local UIController = require(Rorooms.SourceCode.Client.UI.UIController)
local Fusion = require(Rorooms.Parent.Fusion)
local States = require(Rorooms.SourceCode... | 580 |
rorooms/rorooms | rorooms-rorooms-3d06941/src/Client/Settings/SettingsController.luau | luau | .luau | local Rorooms = script.Parent.Parent.Parent.Parent
local Knit = require(Rorooms.Parent.Knit)
local Topbar = require(Rorooms.SourceCode.Client.UI.States.Topbar)
local UIController = require(Rorooms.SourceCode.Client.UI.UIController)
local SettingsMenu = require(Rorooms.SourceCode.Client.UI.ScreenGuis.SettingsMenu)
loc... | 139 |
rorooms/rorooms | rorooms-rorooms-3d06941/src/Client/UI/Components/CategoriesSidebar.luau | luau | .luau | local Rorooms = script.Parent.Parent.Parent.Parent.Parent
local OnyxUI = require(Rorooms.Parent.OnyxUI)
local Fusion = require(Rorooms.Parent.Fusion)
local Children = Fusion.Children
local Util = OnyxUI.Util
local Themer = OnyxUI.Themer
return function(Scope: Fusion.Scope<any>, Props)
local Scope = Fusion.innerScope... | 255 |
rorooms/rorooms | rorooms-rorooms-3d06941/src/Client/UI/Components/CategoryButton.luau | luau | .luau | local Rorooms = script.Parent.Parent.Parent.Parent.Parent
local OnyxUI = require(Rorooms.Parent.OnyxUI)
local Fusion = require(Rorooms.Parent.Fusion)
local Assets = require(Rorooms.SourceCode.Shared.Assets)
local Children = Fusion.Children
local Util = OnyxUI.Util
local Themer = OnyxUI.Themer
local Peek = Fusion.peek
... | 442 |
rorooms/rorooms | rorooms-rorooms-3d06941/src/Client/UI/Components/CustomButton.luau | luau | .luau | local Rorooms = script.Parent.Parent.Parent.Parent.Parent
local OnyxUI = require(Rorooms.Parent.OnyxUI)
local Fusion = require(Rorooms.Parent.Fusion)
local ColorUtils = require(Rorooms.Parent.ColorUtils)
local Util = OnyxUI.Util
local Themer = OnyxUI.Themer
export type Props = {}
return function(Scope: Fusion.Scope<... | 357 |
rorooms/rorooms | rorooms-rorooms-3d06941/src/Client/UI/Components/EditableText.luau | luau | .luau | local Rorooms = script.Parent.Parent.Parent.Parent.Parent
local OnyxUI = require(Rorooms.Parent.OnyxUI)
local Fusion = require(Rorooms.Parent.Fusion)
local Util = OnyxUI.Util
local Themer = OnyxUI.Themer
export type Props = {}
return function(Scope, Props: Props)
local Scope = Fusion.innerScope(Scope, Fusion, OnyxU... | 262 |
rorooms/rorooms | rorooms-rorooms-3d06941/src/Client/UI/Components/EmoteButton.luau | luau | .luau | local RunService = game:GetService("RunService")
local Rorooms = script.Parent.Parent.Parent.Parent.Parent
local OnyxUI = require(Rorooms.Parent.OnyxUI)
local Fusion = require(Rorooms.Parent.Fusion)
local ColorUtils = require(Rorooms.Parent.ColorUtils)
local Assets = require(Rorooms.SourceCode.Shared.Assets)
local Emo... | 1,315 |
rorooms/rorooms | rorooms-rorooms-3d06941/src/Client/UI/Components/EmoteCategoriesSidebar.luau | luau | .luau | local Rorooms = script.Parent.Parent.Parent.Parent.Parent
local OnyxUI = require(Rorooms.Parent.OnyxUI)
local Fusion = require(Rorooms.Parent.Fusion)
local States = require(Rorooms.SourceCode.Client.UI.States)
local Config = require(Rorooms.Config).Config
local Children = Fusion.Children
local Util = OnyxUI.Util
loca... | 310 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.