repo stringclasses 341
values | file_path stringlengths 29 173 | language stringclasses 2
values | file_type stringclasses 4
values | code stringlengths 2 1.66M | tokens int64 2 598k |
|---|---|---|---|---|---|
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/server/network.luau | luau | .luau | --!strict
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local services = require("@shared/network/services")
local RequestMethods = require("@shared/network/requestMethods")
local ServerRequestMethod = RequestMethods.Server
local ClientRequestMethod = RequestMethods.Clien... | 2,339 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/server/output.luau | luau | .luau | local Players = game:GetService("Players")
local Network = require("@server/network")
local MessageTypes = require("@shared/output/messageTypes")
local Functions = require("@shared/functions")
local Output = {}
Output.MessageType = MessageTypes
function Output:appendTo(player, messageType, message, dateTime)
assert... | 446 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/server/scriptManager.luau | luau | .luau | local Output = require("@server/output")
local Network = require("@server/network")
local compile = require("@server/compile")
local Assets = require("@shared/assets")
local WorkerManagers = require("@shared/workerManagers")
local DB = require("@server/db")
local PlayerList = require("@shared/playerList")
local Script... | 1,536 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/server/wm/sandbox/wrapper/reflection.luau | luau | .luau | local table = table
local setmetatable = setmetatable
local error = error
local coroutine = coroutine
local typeof = typeof
local type = type
local Wrapper
local Rules
local Functions = require("@shared/functions")
local Protection = require("@shared/wm/protection")
local Errors = require("@shared/errors")
local wrap... | 1,212 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/server/wm/stackTrace.luau | luau | .luau | local table = table
local ipairs = ipairs
local SharedStackTrace = require("@shared/stackTrace")
local Functions = require("@shared/functions")
local StackTrace = setmetatable({}, { __index = SharedStackTrace })
export type StackTrace = SharedStackTrace.StackTrace
-- Get the source of the worker manager (to filter ... | 145 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/server/world/init.luau | luau | .luau | local Players = game:GetService("Players")
local World = {}
World.Base = nil
function World:RemoveBase()
if not self.Base then
return
end
self.Base:Destroy()
self.Base = nil
end
function World:AddBase()
self:RemoveBase()
local base = Instance.new("Part")
base.Name = "Base"
base.Anchored = true
base.CFra... | 284 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/assets.luau | luau | .luau | local Log = require("@shared/log")
local Assets = {}
Assets.assets = {}
function Assets:get(asset)
assert(Assets.assets[asset], `Invalid asset "{asset}".`)
return Assets.assets[asset]
end
function Assets:Init(folderParent, folderName)
Log.debug("Fetching assets...")
-- Set a timeout warning the user if fetching... | 279 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/commands/inputContexts.luau | luau | .luau | return require("@shared/enum")({
"Chat",
"CommandBar",
})
| 18 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/commands/processResults.luau | luau | .luau | return require("@shared/enum")({
"Success", -- No errors occured, successfully processed and ran command.
"Fail", -- Failed to process command.
"Error", -- Command threw an error while validating or running.
})
| 48 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/crypto/AEAD/ChaCha.luau | luau | .luau | --[=[
Cryptography library: ChaCha20
Sizes:
Nonce: 12/24 bytes
Key: 16/32 bytes
Return type: buffer
Example usage:
local Data = buffer.fromstring("Hello World")
local Key = buffer.fromstring(string.rep("k", 32))
local Nonce = buffer.fromstring(string.rep("n", 12))
--------Usage Case 1--------
l... | 5,712 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/crypto/AEAD/Poly1305.luau | luau | .luau | --[=[
Cryptography library: Poly1305
Sizes:
Key: 32 bytes
Tag: 16 bytes
Return type: buffer
Example usage:
local Message = buffer.fromstring("Hello World")
local Key = buffer.fromstring(string.rep("k", 32))
local Tag = Poly1305(Message, Key)
--]=]
--!strict
--!optimize 2
--!native
local TAG_SIZE ... | 2,501 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/crypto/AEAD/init.luau | luau | .luau | --[=[
Cryptography library: ChaCha20-Poly1305 AEAD
Sizes:
Key: 16/32 bytes
Nonce: 12/24 bytes
Tag: 16 bytes
Rounds: even positive integer (default: 20)
Return type: buffer, buffer (ciphertext, tag)
Example usage:
local Plaintext = buffer.fromstring("Hello World")
local Key = buffer.fromstring(string... | 2,119 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/crypto/CSPRNG/Blake3.luau | luau | .luau | --[=[
Cryptography library: Blake3
Sizes:
Key: 32 bytes
Output: variable
Return type: string (hex)
Example usage:
local Message = buffer.fromstring("Hello World")
local Key = buffer.fromstring(string.rep("k", 32))
--------Standard Hash--------
local Hash = Blake3.Digest(Message, 32)
--------... | 3,436 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/crypto/CSPRNG/ChaCha20.luau | luau | .luau | --[=[
Cryptography library: ChaCha20
Sizes:
Nonce: 12 bytes
Key: 16/32 bytes
Return type: buffer
Example usage:
local Data = buffer.fromstring("Hello World")
local Key = buffer.fromstring(string.rep("k", 32))
local Nonce = buffer.fromstring(string.rep("n", 12))
--------Usage Case 1--------
loca... | 3,259 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/crypto/CSPRNG/Conversions.luau | luau | .luau | --[=[
Cryptography library: Conversions
Return type: string / buffer
Example Usage:
local HexString = Conversions.ToHex(buffer.fromstring("Hello World"))
local OriginalBuffer = Conversions.FromHex("48656c6c6f20576f726c64")
--]=]
--!strict
--!optimize 2
--!native
local ENCODE_LOOKUP = buffer.create(256 * 2)
d... | 1,622 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/crypto/CSPRNG/init.luau | luau | .luau | --[=[
Cryptography library: Cryptographically Secure RNG
Usage:
local RandomFloat = CSPRNG.Random()
local RandomInt = CSPRNG.RandomInt(1, 100)
local RandomNumber = CSPRNG.RandomNumber(0.5, 10.5)
local RandomBytes = CSPRNG.RandomBytes(32)
local RandomHex = CSPRNG.RandomHex(16)
local FastString = CSPRNG.R... | 5,293 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/crypto/MlDSA/CSPRNG/init.luau | luau | .luau | export type EntropyProvider = (BytesLeft: number) -> buffer?
return require("@shared/crypto/CSPRNG")
| 25 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/crypto/MlDSA/Field.luau | luau | .luau | --[=[
Finite field arithmetic modulo Q = 8380417
Arithmetic operations over the prime field Z_q where q = 2^23 - 2^13 + 1.
All operations maintain elements in canonical form [0, Q).
Example usage:
local Field = require(script)
local A = 12345
local B = 67890
local Sum = Field.Add(A, B)
local Product... | 452 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/crypto/MlDSA/NTT.luau | luau | .luau | --[=[
Number Theoretic Transform for degree-255 polynomials
Forward and inverse NTT over Z_q for polynomial multiplication.
Uses Cooley-Tukey and Gentleman-Sande algorithms with precomputed roots.
Example usage:
local NTT = require(script)
local Poly = buffer.create(256 * 4) -- 256 coefficients, 4 bytes... | 1,461 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/crypto/MlDSA/Pack.luau | luau | .luau | --[=[
Bit packing and unpacking utilities
Serializes polynomials to byte arrays with various bit widths.
Supports encoding/decoding of polynomial coefficients and hint bits.
Example usage:
local BitPacking = require(script)
local Poly = buffer.create(256 * 4)
local Encoded = buffer.create(96) -- For 3-... | 7,184 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/crypto/MlDSA/Params.luau | luau | .luau | --[=[
Parameter validation for ML-DSA algorithms
FIPS 204 specification.
Example usage:
local Params = require(script)
local IsValid = Params.CheckKeygenParams(4, 4, 13, 2) -- ML-DSA-44
local ValidEta = Params.CheckEta(2)
--]=]
--!strict
--!optimize 2
--!native
local Q_BIT_WIDTH = 23
local Q = 8380417... | 1,065 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/crypto/MlDSA/PolyVec.luau | luau | .luau | --[=[
Vector operations on degree-255 polynomials
Works on vectors of polynomials including matrix multiplication,
NTT transforms, and encoding/decoding for ML-DSA.
Example usage:
local PolyVec = require(script)
local Vec = buffer.create(4 * 256 * 4) -- 4 polynomials
PolyVec.ForwardNTT(Vec, 4)
local ... | 9,568 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/crypto/MlDSA/SHA3.luau | luau | .luau | --!strict
--!optimize 2
--!native
local SHA3 = {}
local LOW_ROUND, HIGH_ROUND = buffer.create(96), buffer.create(96)
do
local HighFactorKeccak = 0
local ShiftRegister = 29
local function GetNextBit(): number
local Result = ShiftRegister % 2
ShiftRegister = bit32.bxor((ShiftRegister - Result) // 2, 142 * Result... | 6,804 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/crypto/MlDSA/Sampling.luau | luau | .luau | --[=[
ML-DSA Sampling
Example usage:
local Sampling = require(script)
local Rho = buffer.create(32)
local Matrix = buffer.create(4 * 4 * 256 * 4)
Sampling.ExpandA(Rho, Matrix, 4, 4)
--]=]
--!strict
--!optimize 2
--!native
local XOF = require("./XOF")
local BitPacking = require("./Pack")
local Params = ... | 4,934 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/crypto/MlDSA/Utils.luau | luau | .luau | --[=[
Utility functions for ML-DSA key and signature sizes
ML-DSA parameters.
Example usage:
local Utils = require(script)
local PubKeySize = Utils.PubKeyLen(4, 13) -- 1312 bytes for ML-DSA-44
local SecKeySize = Utils.SecKeyLen(4, 4, 2, 13) -- 2560 bytes
local SigSize = Utils.SigLen(4, 4, 131072, ... | 450 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/crypto/MlDSA/XOF.luau | luau | .luau | --[=[
Stateful SHAKE XOF (Extensible Output Function)
Non-OOP implementation with reusable state buffers.
For ML-DSA sampling functions that use rejection sampling.
Example usage:
local XOF = require(script)
XOF.Reset128()
XOF.Absorb128(message)
local Chunk1 = XOF.Squeeze128(168)
local Chunk2 = XOF... | 7,993 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/crypto/MlDSA/init.luau | luau | .luau | --[=[
ML-DSA (FIPS 204) Digital Signature Algorithm
Post quantum digital signature scheme based on lattice cryptography.
Has three security levels: ML-DSA-44, ML-DSA-65, ML-DSA-87.
Example usage:
local MLDSA = require("@self/MlDSA")
local PubKey, SecKey = MLDSA.ML_DSA_44.GenerateKeys()
local Message = b... | 6,330 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/crypto/MlKEM/Compression.luau | luau | .luau | --[=[
ML-KEM Compression Module
Polynomial coefficient compression and decompression operations for ML-KEM.
Maps field elements to and from reduced bit representations.
--]=]
--!strict
--!optimize 2
--!native
local Params = require("./Params")
local N = 256
local Q = 3329
local Compression = {}
function Compr... | 1,450 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/crypto/MlKEM/Field.luau | luau | .luau | --[=[
ML-KEM Field Arithmetic Module
Prime field Zq arithmetic operations for ML-KEM.
Modular arithmetic over the field Z_q where q = 3329.
Example usage:
local Field = require(script.Field)
local Sum = Field.Add(1234, 567)
local Product = Field.Multiply(1234, 567)
local Inverse = Field.Invert(1234)
... | 732 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/crypto/MlKEM/NTT.luau | luau | .luau | --[=[
ML-KEM Number Theoretic Transform Module
Number Theoretic Transform (NTT) operations for polynomial multiplication.
Cooley-Tukey NTT and Gentleman-Sande inverse NTT algorithms
Example usage:
local NTT = require(script.NTT)
local Poly = buffer.create(512) -- 256 coefficients * 2 bytes
NTT.Ntt(Pol... | 3,184 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/crypto/MlKEM/PKE.luau | luau | .luau | --[=[
ML-KEM Public Key Encryption Module
K-PKE (CPA-secure public key encryption) implementation for ML-KEM.
Provides key generation, encryption, and decryption operations
as specified in NIST FIPS 203.
Example usage:
local PKE = require(script.PKE)
local Seed = buffer.fromstring("32_byte_seed_here..."... | 2,517 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/crypto/MlKEM/Params.luau | luau | .luau | --[=[
ML-KEM Parameters Module
Parameter validation functions for ML-KEM.
NIST FIPS 203 specification.
Example usage:
local Params = require(script.Params)
local IsValid = Params.CheckKeygenParams(4, 2) -- true
local ValidD = Params.CheckD(11) -- true
local ValidEncrypt = Params.CheckEncryptParams(4,... | 758 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/crypto/MlKEM/PolyVec.luau | luau | .luau | --[=[
ML-KEM Polynomial Vector Module
Polynomial vector and matrix operations for ML-KEM.
Vector arithmetic, matrix multiplication, and encoding/decoding
operations on vectors of degree-255 polynomials.
--]=]
--!strict
--!optimize 2
--!native
local Ntt = require("./NTT")
local MlKemParams = require("./Params")
... | 1,610 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/crypto/MlKEM/Sampling.luau | luau | .luau | --[=[
ML-KEM Sampling Module
Polynomial sampling operations for ML-KEM.
Uniform sampling from Rq and centered binomial distribution sampling.
Example usage:
local Sampling = require(script.Sampling)
local Rho = buffer.create(32)
local Matrix = Sampling.GenerateMatrix(3, Rho, false)
local Sigma = ... | 1,972 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/crypto/MlKEM/Serialize.luau | luau | .luau | --[=[
ML-KEM Serialization Module
Polynomial encoding and decoding operations for ML-KEM.
Converts polynomials to/from byte arrays with different bit lengths.
Example usage:
local Serialize = require(script.Serialize)
local Poly = buffer.create(512) -- 256 coefficients
local Encoded = Serialize.Encode... | 4,899 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/crypto/MlKEM/Utils.luau | luau | .luau | --[=[
ML-KEM Utilities Module
Utility functions for ML-KEM implementation
Example usage:
local Utils = require(script.Utils)
local IsEqual = Utils.CtMemcmp(Buffer1, Buffer2)
Utils.CtCondMemcpy(Condition, Dest, Src1, Src2)
local PubKeySize = Utils.GetKemPublicKeyLen(4) -- 1568 bytes
local SecKeySi... | 1,082 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/crypto/MlKEM/init.luau | luau | .luau | --[=[
ML-KEM Main Module (Key Encapsulation Mechanism)
The complete ML-KEM post quantum key encapsulation.
Key generation, encapsulation, and decapsulation operations with
CCA security using the Fujisaki Okamoto transform.
Example usage:
local MlKem = require(script.MlKem)
local CSPRNG = require(script.CSP... | 2,719 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/crypto/XXH32.luau | luau | .luau | --[=[
Cryptography library: XXHash32
⚠️ WARNING: XXHash32 wasn't designed with cryptographic security in mind!
Only use for non-security purposes. For security, use SHA256 or higher. ⚠️
Return type: number
Example usage:
local Message = buffer.fromstring("Hello World")
--------Usage Case 1--------
local... | 2,053 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/crypto/base64.luau | luau | .luau | --[=[
Cryptography library: Base64
Return type: buffer
Example usage:
local Input = buffer.fromstring("Hello World")
local Encoded = Base64.Encode(Input)
local Decoded = Base64.Decode(Encoded)
--]=]
--!strict
--!optimize 2
--!native
local PADDING_CHARACTER = 61
local ALPHABET_BYTES = buffer.create(64)
do
... | 3,311 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/crypto/blake2b.luau | luau | .luau | --[=[
Cryptography library: BLAKE2b
Return type: string
Example usage:
local Message = buffer.fromstring("Hello World")
-- BLAKE2b-128 (128-bit output)
local Result128 = BLAKE2b(Message, 16)
-- BLAKE2b-256 (256-bit output)
local Result256 = BLAKE2b(Message, 32)
-- BLAKE2b-384 (384-bit output)
... | 7,993 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/crypto/blake3.luau | luau | .luau | --[=[
Cryptography library: Blake3
Sizes:
Key: 32 bytes
Output: variable
Return type: string (hex)
Example usage:
local Message = buffer.fromstring("Hello World")
local Key = buffer.fromstring(string.rep("k", 32))
--------Standard Hash--------
local Hash = Blake3.Digest(Message, 32)
--------... | 5,105 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/enum.luau | luau | .luau | local ipairs = ipairs
local table = table
return function(enumItems)
local enum = {}
for index, name in ipairs(enumItems) do
enum[name] = index - 1
enum[index - 1] = name
end
if _G.dev then
setmetatable(enum, {
__index = function(_, index)
return error(`"{index}" is not a valid enum item.`, 2)
end... | 106 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/errors.luau | luau | .luau | local Functions = require("@shared/functions")
local getInstanceName = Functions.getInstanceName
local getFunctionName = Functions.getFunctionName
local Errors = {}
function Errors.cannotAccess(instance: Instance, capability: string?): string
if capability then
return `The current thread cannot access '{getInstan... | 397 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/functions.luau | luau | .luau | -- Maybe this should be rewritten to have each function in it's own file?
local string = string
local game = game
local coroutine = coroutine
local debug = debug
local table = table
local CSPRNG = require("@shared/crypto/CSPRNG")
local Functions = {}
function Functions.empty() end
function Functions.randomString(le... | 523 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/log.luau | luau | .luau | local table = table
local print = print
local warn = warn
local error = error
local TestService = game:GetService("TestService")
local prefix
local Log = {}
function Log:SetPrefix(_prefix)
if prefix then
return error("Prefix is already set.", 2)
end
prefix = _prefix
end
function Log.debug(...: any)
if _G.deb... | 136 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/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 readstring = buffer.readstring
local writestring = buffer.writestring
local readu8 = buffer.readu8
local readi8 = buffer.readi8
local... | 6,929 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/network/encoding.luau | luau | .luau | --!strict
local MessagePack = require("@shared/msgpack")
local XXH32 = require("@shared/crypto/XXH32")
-- thank you rojo
local CFRAME_ID_LOOKUP_TABLE = table.freeze({
[0x02] = CFrame.fromEulerAnglesYXZ(0, 0, 0),
[0x03] = CFrame.fromEulerAnglesYXZ(math.rad(90), 0, 0),
[0x05] = CFrame.fromEulerAnglesYXZ(0, math.rad(... | 2,240 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/network/requestMethods.luau | luau | .luau | local Enum = require("@shared/enum")
return {
Server = Enum({
"KeyExchange",
"Handshake",
"Event",
"Invoke",
}),
Client = Enum({
"Event",
"InvokeResult",
}),
}
| 57 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/network/services.luau | luau | .luau | -- A list of possible services that the network remotes can be parented to.
if _G.dev then
-- While in development, it might be helpful to know where the remotes are located at.
return { game:GetService("ReplicatedStorage") }
end
-- Some services are commented out because they either might break some scripts, or th... | 253 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/network/utils.luau | luau | .luau | --!strict
local Module = {}
-- as per fips 203 & 204
Module.ML_KEM_1024_PUBLIC_KEY_SIZE = 1568
Module.ML_KEM_1024_CIPHERTEXT_SIZE = 1568
local RunService = game:GetService("RunService")
local HttpService = game:GetService("HttpService")
local Blake3 = require("@shared/crypto/blake3")
local AEAD = require("@shared/c... | 823 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/output/messageTypes.luau | luau | .luau | return require("@shared/enum")({
"Log",
"Warning",
"Error",
"Success",
"Information",
"System",
})
| 33 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/playerList.luau | luau | .luau | --!strict
local table = table
local ipairs = ipairs
-- Only really used for a safe PlayerRemoved (fired after they leave!!) signal (for cleanup things).
local Signal = require("@shared/signal")
local PlayerList = {}
PlayerList.Added = Signal.new()
PlayerList.Removed = Signal.new()
local Players = game:GetService("... | 312 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/protection.luau | luau | .luau | --!strict
local WorkerManagers = require("@shared/workerManagers")
local function protect(instance: Instance, level: "remove" | "write" | "read")
WorkerManagers:Send("protect", instance, level)
end
local function unprotect(instance: Instance)
WorkerManagers:Send("unprotect", instance)
end
return table.freeze({
a... | 88 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/scriptManager/scriptTypes.luau | luau | .luau | return require("@shared/enum")({
"Script",
"LocalScript",
"ModuleScript",
})
| 23 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/signal.luau | luau | .luau | local setmetatable = setmetatable
local Instance = Instance
local math = math
local table = table
local Signal = {}
Signal.__index = Signal
function Signal.new()
local self = setmetatable({}, Signal)
self._bindable = Instance.new("BindableEvent")
self._argMap = {}
-- Events connected first always fire last
self... | 430 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/stackTrace.luau | luau | .luau | local debug = debug
local table = table
local string = string
local ipairs = ipairs
local Functions = require("@shared/functions")
local getFunctionName = Functions.getFunctionName
local StackTrace = {}
export type StackTrace = { { source: string, line: number, name: string? } }
function StackTrace.get(level: numb... | 451 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/wm/communication.luau | luau | .luau | local setmetatable = setmetatable
local table = table
local error = error
local Signal = require("@shared/signal")
local Log = require("@shared/log")
type Signal<Args...> = Signal.Signal<Args...>
local ManagerCommunication = {}
ManagerCommunication.__index = ManagerCommunication
function ManagerCommunication.new(..... | 1,166 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/wm/init.luau | luau | .luau | return {
isWorkerManager = nil :: boolean?,
}
| 11 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/wm/protection/init.luau | luau | .luau | --!strict
-- number = 0 | 1 | 2
--[[
each further level implies the last
0 - remove protection [ allow reads & writes & descendant inserts ]
1 - remove protection & no writing [ allow reads ]
2 - remove protection & write protection & read protection [ ghost ]
]]
-- local ManagerCommunication = require("@shared/wm/co... | 667 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/modules/shared/workerManagers.luau | luau | .luau | local Log = require("@shared/log")
local Functions = require("@shared/functions")
local ManagerCommunication = require("@shared/wm/communication")
local WorkerManagers = {}
function WorkerManagers:Init(root, managerName)
Log.debug("Creating WorkerManagers...")
-- Messy but whatever
local managerTemplate = root:W... | 758 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/src/client/sb.luau | luau | .luau | local __start = os.clock()
local networkAttribute = { next(script:GetAttributes()) }
local Log = require("@shared/log")
Log:SetPrefix("[SB Client]")
Log.print("Loading...")
do
local wm = require("@shared/wm")
wm.isWorkerManager = false
table.freeze(wm)
end
-- Fetch assets and destroy script
local sbActor = script... | 443 |
Open-SB/OpenSB | Open-SB-OpenSB-5852ada/src/server/sb.server.luau | luau | .luau | local __start = os.clock()
local Log = require("@shared/log")
Log:SetPrefix("[SB]")
Log.print("Loading...")
do
local wm = require("@shared/wm")
wm.isWorkerManager = false
table.freeze(wm)
end
-- Fetch assets and destroy script
local sbActor = script.Parent
local root = sbActor.Parent
do
local thread = coroutine... | 1,270 |
Vexot/CustomEmoteThumbnail | Vexot-CustomEmoteThumbnail-8ea26ff/FixPackages/Fusion.luau | luau | .luau | local Fusion = require(script.Parent.Wally._Index["elttob_fusion@0.3.0"]["fusion"])
export type Fusion = typeof(Fusion)
export type Animatable = Fusion.Animatable
export type UsedAs<T> = Fusion.UsedAs<T>
export type Child = Fusion.Child
export type Computed<T> = Fusion.Computed<T>
export type Contextual<T> = Fusion.Co... | 234 |
Vexot/CustomEmoteThumbnail | Vexot-CustomEmoteThumbnail-8ea26ff/FixPackages/Ignite.luau | luau | .luau | local Ignite = require(script.Parent.Wally._Index["cameronpcampbell_ignite@1.2.5"]["ignite"])
export type Ignite = typeof(Ignite)
return Ignite | 41 |
Vexot/CustomEmoteThumbnail | Vexot-CustomEmoteThumbnail-8ea26ff/plugin/Components/Atoms/Camera.luau | luau | .luau | --!strict
local MainPath = script.Parent.Parent.Parent
local Fusion = require(MainPath.Packages.Fusion)
local GeneralData = require(MainPath.GeneralData)
export type Props = {
CFrame: Fusion.Value<CFrame>?,
Focus: Fusion.UsedAs<CFrame>?,
}
return function(scope: Fusion.Scope<Fusion.Fusion>, props: Props): Cam... | 134 |
Vexot/CustomEmoteThumbnail | Vexot-CustomEmoteThumbnail-8ea26ff/plugin/Components/Atoms/CornerButton.luau | luau | .luau |
--!strict
local RunService = game:GetService('RunService')
local MainPath = script.Parent.Parent.Parent
local Fusion = require(MainPath.Packages.Fusion)
local Ignite = require(MainPath.Packages.Ignite)
local GeneralData = require(MainPath.GeneralData)
local SimpleShadow = require(script.Parent.SimpleShadow)
local O... | 818 |
Vexot/CustomEmoteThumbnail | Vexot-CustomEmoteThumbnail-8ea26ff/plugin/Components/Atoms/Div.luau | luau | .luau |
--!strict
local MainPath = script.Parent.Parent.Parent
local Fusion = require(MainPath.Packages.Fusion)
export type Props = {
Order: number,
Visible: Fusion.UsedAs<boolean>?,
}
return function(scope: Fusion.Scope<Fusion.Fusion>, props: Props)
return scope:New 'Frame' {
Name = 'Div',
Layou... | 125 |
Vexot/CustomEmoteThumbnail | Vexot-CustomEmoteThumbnail-8ea26ff/plugin/Components/Atoms/Loading.luau | luau | .luau | --!strict
local RunService = game:GetService("RunService")
local MainPath = script.Parent.Parent.Parent
local Fusion = require(MainPath.Packages.Fusion)
local peek = Fusion.peek
local DefaultSpeed = 180
export type Props = {
Size: UDim2,
Position: UDim2?,
AnchorPoint: Vector2?,
SizeConstraint: Enum.S... | 477 |
Vexot/CustomEmoteThumbnail | Vexot-CustomEmoteThumbnail-8ea26ff/plugin/Components/Atoms/PadArrow.luau | luau | .luau | --!strict
local RunService = game:GetService('RunService')
local MainPath = script.Parent.Parent.Parent
local Fusion = require(MainPath.Packages.Fusion)
local Ignite = require(MainPath.Packages.Ignite)
local Types = require(MainPath.Types)
local GeneralData = require(MainPath.GeneralData)
local States = require(MainP... | 929 |
Vexot/CustomEmoteThumbnail | Vexot-CustomEmoteThumbnail-8ea26ff/plugin/Components/Atoms/SimpleShadow.luau | luau | .luau | --!strict
local MainPath = script.Parent.Parent.Parent
local Fusion = require(MainPath.Packages.Fusion)
local GeneralData = require(MainPath.GeneralData)
export type Props = {
Size: Fusion.UsedAs<UDim2>,
AnchorPoint: Vector2?,
Position: UDim2?,
Transparency: Fusion.UsedAs<number>?,
}
return function(s... | 191 |
Vexot/CustomEmoteThumbnail | Vexot-CustomEmoteThumbnail-8ea26ff/plugin/Components/Atoms/Slider.luau | luau | .luau | --!strict
local MainPath = script.Parent.Parent.Parent
local Fusion = require(MainPath.Packages.Fusion)
local Ignite = require(MainPath.Packages.Ignite)
local Children = Fusion.Children
local OnEvent = Fusion.OnEvent
local Out = Fusion.Out
local peek = Fusion.peek
type scope = Fusion.Scope<typeof(Fusion) & typeof(Ign... | 1,628 |
Vexot/CustomEmoteThumbnail | Vexot-CustomEmoteThumbnail-8ea26ff/plugin/Components/Atoms/ToolbarButton.luau | luau | .luau | --!strict
local MainPath = script.Parent.Parent.Parent
local Fusion = require(MainPath.Packages.Fusion)
local Ignite = require(MainPath.Packages.Ignite)
local peek = Fusion.peek
local OnChange = Fusion.OnChange
export type Props = {
ButtonData: {
Id: string,
IconAsset: string,
ToolTip: str... | 294 |
Vexot/CustomEmoteThumbnail | Vexot-CustomEmoteThumbnail-8ea26ff/plugin/Components/Atoms/Viewport.luau | luau | .luau | --!strict
local MainPath = script.Parent.Parent.Parent
local Fusion = require(MainPath.Packages.Fusion)
local Ignite = require(MainPath.Packages.Ignite)
local Localization = require(MainPath.Util.Localization)
local Children = Fusion.Children
export type Props = {
Order: number,
Camera: Camera,
Children... | 555 |
Vexot/CustomEmoteThumbnail | Vexot-CustomEmoteThumbnail-8ea26ff/plugin/Components/Molecules/DynamicPad.luau | luau | .luau | --!strict
local MainPath = script.Parent.Parent.Parent
local Fusion = require(MainPath.Packages.Fusion)
local Ignite = require(MainPath.Packages.Ignite)
local GeneralData = require(MainPath.GeneralData)
local States = require(MainPath.Util.States)
export type Props = {
Order: number?,
Position: UDim2?,
A... | 937 |
Vexot/CustomEmoteThumbnail | Vexot-CustomEmoteThumbnail-8ea26ff/plugin/Components/Molecules/FrameSlider.luau | luau | .luau | --!strict
local MainPath = script.Parent.Parent.Parent
local Fusion = require(MainPath.Packages.Fusion)
local Ignite = require(MainPath.Packages.Ignite)
local peek = Fusion.peek
local Types = require(MainPath.Types)
local Localization = require(MainPath.Util.Localization)
local States = require(MainPath.Util.States)... | 1,021 |
Vexot/CustomEmoteThumbnail | Vexot-CustomEmoteThumbnail-8ea26ff/plugin/Components/Molecules/Option.luau | luau | .luau | --!strict
local MainPath = script.Parent.Parent.Parent
local Fusion = require(MainPath.Packages.Fusion)
local Ignite = require(MainPath.Packages.Ignite)
local States = require(MainPath.Util.States)
local Localization = require(MainPath.Util.Localization)
local peek = Fusion.peek
local Children = Fusion.Children
loc... | 866 |
Vexot/CustomEmoteThumbnail | Vexot-CustomEmoteThumbnail-8ea26ff/plugin/Components/Molecules/Viewport.luau | luau | .luau | --!strict
local MainPath = script.Parent.Parent.Parent
local Fusion = require(MainPath.Packages.Fusion)
local Ignite = require(MainPath.Packages.Ignite)
local ThumbnailUtil = require(MainPath.Util.Thumbnail)
local Character = require(MainPath.Util.Character)
local GeneralData = require(MainPath.GeneralData)
local Typ... | 735 |
Vexot/CustomEmoteThumbnail | Vexot-CustomEmoteThumbnail-8ea26ff/plugin/Components/Sections/Actions.luau | luau | .luau | --!strict
local MainPath = script.Parent.Parent.Parent
local Fusion = require(MainPath.Packages.Fusion)
local Ignite = require(MainPath.Packages.Ignite)
local Types = require(MainPath.Types)
local Localization = require(MainPath.Util.Localization)
local States = require(MainPath.Util.States)
local Clip = require(Main... | 454 |
Vexot/CustomEmoteThumbnail | Vexot-CustomEmoteThumbnail-8ea26ff/plugin/Components/Sections/Advanced.luau | luau | .luau | --!strict
local MainPath = script.Parent.Parent.Parent
local Fusion = require(MainPath.Packages.Fusion)
local Ignite = require(MainPath.Packages.Ignite)
local States = require(MainPath.Util.States)
local Molecules = MainPath.Components.Molecules
local Option = require(Molecules.Option)
type Props = {
Order: num... | 422 |
Vexot/CustomEmoteThumbnail | Vexot-CustomEmoteThumbnail-8ea26ff/plugin/Components/Sections/Simplified.luau | luau | .luau | --!strict
local MainPath = script.Parent.Parent.Parent
local Fusion = require(MainPath.Packages.Fusion)
local Ignite = require(MainPath.Packages.Ignite)
local Molecules = MainPath.Components.Molecules
local DynamicPad = require(Molecules.DynamicPad)
type Props = {
Order: number?,
Visible: Fusion.UsedAs<boole... | 352 |
Vexot/CustomEmoteThumbnail | Vexot-CustomEmoteThumbnail-8ea26ff/plugin/Components/Sections/UpdateWarning.luau | luau | .luau | --!strict
local MainPath = script.Parent.Parent.Parent
local Fusion = require(MainPath.Packages.Fusion)
local Ignite = require(MainPath.Packages.Ignite)
local Localization = require(MainPath.Util.Localization)
local Children = Fusion.Children
export type Props = {
Order: number?,
Visible: Fusion.UsedAs<bool... | 310 |
Vexot/CustomEmoteThumbnail | Vexot-CustomEmoteThumbnail-8ea26ff/plugin/GeneralData.luau | luau | .luau | --!strict
return table.freeze {
LongName = 'Custom Emote Thumbnail',
ShortName = 'CET',
Version = '0.1.3',
CameraFOV = 20,
FixMeshIds = table.freeze {
Head = 'https://assetdelivery.roblox.com/v1/asset/?id=7278806860',
LeftFoot = 'https://www.roblox.com/asset/?id=3575898930',
... | 654 |
Vexot/CustomEmoteThumbnail | Vexot-CustomEmoteThumbnail-8ea26ff/plugin/Types.luau | luau | .luau | --!strict
local Main = script.Parent
local Fusion = require(Main.Packages.Fusion)
export type Clip = CurveAnimation|KeyframeSequence|nil
export type ClipValue = Fusion.Value<Clip>
export type ParamValueIds = 'Time' | 'KeyFrame' | 'Rotation' | 'HorizontalOffset' | 'VerticalOffset' | 'Zoom'
export type ThumbParams = { ... | 93 |
Vexot/CustomEmoteThumbnail | Vexot-CustomEmoteThumbnail-8ea26ff/plugin/Util/Character/init.luau | luau | .luau | --!strict
local InsertService = game:GetService 'InsertService'
local MainPath = script.Parent.Parent
local Fusion = require(MainPath.Packages.Fusion)
local ThumbnailUtil = require(MainPath.Util.Thumbnail)
local GeneralData = require(MainPath.GeneralData)
local Types = require(MainPath.Types)
local Clip = require(sc... | 651 |
Vexot/CustomEmoteThumbnail | Vexot-CustomEmoteThumbnail-8ea26ff/plugin/Util/Clip.luau | luau | .luau | --!strict
local Selection = game:GetService("Selection")
local MainPath = script.Parent.Parent
local Fusion = require(MainPath.Packages.Fusion)
local Ignite = require(MainPath.Packages.Ignite)
local Thumbnail = require(MainPath.Util.Thumbnail)
local States = require(MainPath.Util.States)
local Types = require(MainP... | 1,252 |
Vexot/CustomEmoteThumbnail | Vexot-CustomEmoteThumbnail-8ea26ff/plugin/Util/Localization/init.luau | luau | .luau | --!strict
local StudioService = game:GetService("StudioService")
local Localization = {}
local currentLanguage: string? = nil
local fallbackLanguage = 'en'
local languageCache: {[string]: {[string]: string}} = {}
local function getCurrentLanguage(): string
if not currentLanguage then
local localeId = St... | 418 |
Vexot/CustomEmoteThumbnail | Vexot-CustomEmoteThumbnail-8ea26ff/plugin/Util/States.luau | luau | .luau | --!strict
local MainPath = script.Parent.Parent
local Fusion = require(MainPath.Packages.Fusion)
local GeneralData = require(MainPath.GeneralData)
local Types = require(MainPath.Types)
local States = {}
local defParams = GeneralData.DefaultParameters
local paramMapping = GeneralData.ParamMapping
local paramConfig = ... | 884 |
Vexot/CustomEmoteThumbnail | Vexot-CustomEmoteThumbnail-8ea26ff/plugin/init.server.luau | luau | .luau | --!strict
if not plugin then error('Code must be run in a plugin context') end
local Components, Util, Packages = script.Components, script.Util, script.Packages
local GeneralData = require(script.GeneralData)
local Types = require(script.Types)
local Fusion = require(Packages.Fusion)
local Ignite = require(Packages... | 1,089 |
thegalaxydev/Aloha | thegalaxydev-Aloha-51c1eac/Aloha/Classes/Color3.luau | luau | .luau | -- thegalaxydev
--[=[
@class Color3
The Color3 data type describes a color using red, green, and blue components in the range of 0 to 1.
]=]
local Color3 = {}
Color3.__index = Color3
export type Color3 = typeof(Color3) & {
R: number,
G: number,
B: number,
}
--[=[
Creates a new Color3.
@param r number
@param... | 1,134 |
thegalaxydev/Aloha | thegalaxydev-Aloha-51c1eac/Aloha/Classes/DiscordWebSocket.luau | luau | .luau | --[=[
@class DiscordWebSocket
Class to spawn sharded websockets for Discord.
]=]
local DiscordWebSocket = {}
DiscordWebSocket.__index = DiscordWebSocket
local Event = require("./Event")
local Bot = require("../Lib/Bot")
local Task = require("../Util/Task")
local Client = require("../Lib/Client")
local Misc = require(... | 1,707 |
thegalaxydev/Aloha | thegalaxydev-Aloha-51c1eac/Aloha/Classes/Embed.luau | luau | .luau | --[=[
@class Embed
Class to create Discord embeds.
]=]
local Embed = {}
local Color3 = require("Color3")
type Color3 = Color3.Color3
local DiscordTypes = require("../Lib/DiscordTypes")
export type Embed = {
setTitle: (title: string) -> Embed,
setDescription: (description: string) -> Embed,
setUrl: (url: string) ... | 1,598 |
thegalaxydev/Aloha | thegalaxydev-Aloha-51c1eac/Aloha/Classes/Event.luau | luau | .luau | --[=[
@class Event
Class to create events.
]=]
local Event = {}
Event.__index = Event
Event.__class = "Event"
export type Event<T...> = {
Callbacks : {[(T...)->any]: any};
Waiting : {thread};
Connect : (Event<T...>, func : (T...)->any) -> Connection,
Fire : (Event<T...>, T...) -> nil,
Wait : (Event<T...>, numb... | 507 |
thegalaxydev/Aloha | thegalaxydev-Aloha-51c1eac/Aloha/Classes/LinkedList.luau | luau | .luau | --[=[
@class LinkedList
A linked list implementation.
]=]
local LinkedList = {}
LinkedList.__index = function(self, key)
if type(key) == "number" then
local current = self.Head
for _ = 1, key - 1 do
if not current then return nil end
current = current.Next
end
return current
end
return LinkedList[key]
... | 1,514 |
thegalaxydev/Aloha | thegalaxydev-Aloha-51c1eac/Aloha/Classes/Snowflake.luau | luau | .luau | --[=[
@class Snowflake
A utility class for decoding and encoding Discord snowflakes.
]=]
local Snowflake = {}
export type Snowflake = {
id: string,
timestamp: string,
workerId: string,
processId: string,
increment: string,
}
local bit64 = require('Bit64')
--[=[
@private
@param id string -- The snowflake ID... | 429 |
thegalaxydev/Aloha | thegalaxydev-Aloha-51c1eac/Aloha/Classes/Sweeper.luau | luau | .luau | --[=[
@class Sweeper
A utility class for managing cleanup of objects and resources. Fork of Janitor by howmanysmall.
]=]
local Bot = require("../Lib/Bot")
local Task = require("../Util/Task")
local Sweeper = {}
Sweeper.__index = Sweeper
export type Sweeper = typeof(Sweeper) & {
RemoveNoClean: (index: any) -... | 683 |
thegalaxydev/Aloha | thegalaxydev-Aloha-51c1eac/Aloha/Classes/Timer.luau | luau | .luau | --[=[
@class Timer
A utility class for managing timed callbacks.
]=]
local Timer = {}
Timer.__index = Timer
export type Timer = typeof(Timer)
--[=[
@param time number -- The total time to run in seconds
@param interval number -- The interval between callbacks in seconds
@param interval_callback ((... | 472 |
thegalaxydev/Aloha | thegalaxydev-Aloha-51c1eac/Aloha/Classes/Vector3.luau | luau | .luau | local Vector3 = {}
Vector3.__index = Vector3
export type Vector3 = {
X: number,
Y: number,
Z: number,
Zero: () -> Vector3,
One: () -> Vector3,
}
function Vector3.new(x: number, y: number, z: number) : Vector3
local self = setmetatable({}, {
__index = Vector3,
__tostring = function(self)
return string.for... | 397 |
thegalaxydev/Aloha | thegalaxydev-Aloha-51c1eac/Aloha/Lib/Bot.luau | luau | .luau | --[=[
@class Bot
The main Bot class that handles Discord gateway connections and core functionality.
]=]
local Bot = {}
local process = require("@lune/process")
local DiscordTypes = require("./DiscordTypes")
type WebSocket = {
Close: () -> (),
Next: () -> (any),
Send: (data: string) -> ()
}
--[=[
@prop DISCORD... | 1,481 |
thegalaxydev/Aloha | thegalaxydev-Aloha-51c1eac/Aloha/Lib/Components.luau | luau | .luau | --[=[
@class Components
Module for handling Discord components.
]=]
local Components = {}
local DiscordTypes = require("./DiscordTypes")
local Objects = require("../Classes/Objects")
local Event = require("../Classes/Event")
local Enum = require("./Enum")
local Network = require("./Network")
type InteractionEvent = Ev... | 274 |
thegalaxydev/Aloha | thegalaxydev-Aloha-51c1eac/Aloha/Lib/Debug.luau | luau | .luau | --[=[
@class Debug
Handles debug functionality and user permissions for debugging
]=]
local Debug = {}
local Objects = require("../Classes/Objects")
--[=[
@prop AllowedUsers {string}
@within Debug
List of user IDs that are allowed to use debug functionality
]=]
Debug.AllowedUsers = {}
--[=[
@f... | 176 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.