messages
listlengths
1
1
[ { "role": "assistant", "content": "--[=[\n\tCryptography library: Curve25519 Montgomery\n\n\tReturn type: varies by function\n\tExample usage:\n\t\tlocal Curve25519 = require(\"Curve25519\")\n\t\tlocal FieldQuadratic = require(\"FieldQuadratic\")\n\n\t\t--------Usage Case 1: Point multiplication--------\n\t...
[ { "role": "assistant", "content": "--[=[\n\tCryptography library: Edwards25519\n\n\tReturn type: varies by function\n\tExample usage:\n\t\tlocal Edwards = require(\"Edwards25519\")\n\t\tlocal FieldQuadratic = require(\"FieldQuadratic\")\n\n\t\t--------Usage Case 1: Point addition--------\n\t\tlocal Point1 =...
[ { "role": "assistant", "content": "--[=[\n\tCryptography library: Field Prime (Curve25519 Base Field)\n\n\tReturn type: varies by function\n\tExample usage:\n\t\tlocal FieldPrime = require(\"FieldPrime\")\n\n\t\t--------Usage Case 1: Basic arithmetic--------\n\t\tlocal ElementA = FieldPrime.Num(42)\n\t\tloc...
[ { "role": "assistant", "content": "--[=[\n\tCryptography library: Field Quadratic (Curve25519 Scalar Field)\n\n\tReturn type: varies by function\n\tExample usage:\n\t\tlocal FieldQuadratic = require(\"FieldQuadratic\")\n\n\t\t--------Usage Case 1: Basic scalar arithmetic--------\n\t\tlocal ScalarA = FieldQu...
[ { "role": "assistant", "content": "--[=[\n\tCryptography library: Multi-Precision Arithmetic (264-bit integers)\n\n\tReturn type: varies by function\n\tExample usage:\n\t\tlocal MultiPrecision = require(\"MultiPrecision\")\n\n\t\t--------Usage Case 1: Basic arithmetic--------\n\t\tlocal NumberA = MultiPreci...
[ { "role": "assistant", "content": "--!strict\n--!optimize 2\n--!native\n\nlocal K_HI = {\n\t0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,\n\t0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,\n\t0xe49b69c1, 0xefbe...
[ { "role": "assistant", "content": "--[=[\n\tCryptography library: X25519 with cofactor clearing\n\n\tReturn type: varies by function\n\tExample usage:\n\t\tlocal AlicePrivate = CSPRNG.Ed25519Random()\n\t\tlocal BobPrivate = CSPRNG.Ed25519Random()\n\n\t\tlocal AliceMasked = X25519.Mask(AlicePrivate)\n\t\tloc...
[ { "role": "assistant", "content": "--[=[\n\tCryptography library: Cryptographically Secure RNG\n\t\n\tUsage:\n\t\tlocal RandomFloat = CSPRNG.Random()\n\t\tlocal RandomInt = CSPRNG.RandomInt(1, 100)\n\t\tlocal RandomNumber = CSPRNG.RandomNumber(0.5, 10.5)\n\t\tlocal RandomBytes = CSPRNG.RandomBytes(32)\n\t\t...
[ { "role": "assistant", "content": "--[=[\n\tFinite field arithmetic modulo Q = 8380417\n\t\n\tArithmetic operations over the prime field Z_q where q = 2^23 - 2^13 + 1.\n\tAll operations maintain elements in canonical form [0, Q).\n\n\tExample usage:\n\t\tlocal Field = require(script)\n\t\t\n\t\tlocal A = 12...
[ { "role": "assistant", "content": "--[=[\n\tNumber Theoretic Transform for degree-255 polynomials\n\t\n\t Forward and inverse NTT over Z_q for polynomial multiplication.\n\tUses Cooley-Tukey and Gentleman-Sande algorithms with precomputed roots.\n\n\tExample usage:\n\t\tlocal NTT = require(script)\n\t\t\n\t...
[ { "role": "assistant", "content": "--[=[\n\tBit packing and unpacking utilities\n\t\n\tSerializes polynomials to byte arrays with various bit widths.\n\tSupports encoding/decoding of polynomial coefficients and hint bits.\n\n\tExample usage:\n\t\tlocal BitPacking = require(script)\n\t\t\n\t\tlocal Poly = bu...
[ { "role": "assistant", "content": "--[=[\n\tParameter validation for ML-DSA algorithms\n\t\n\tFIPS 204 specification.\n\n\tExample usage:\n\t\tlocal Params = require(script)\n\t\t\n\t\tlocal IsValid = Params.CheckKeygenParams(4, 4, 13, 2) -- ML-DSA-44\n\t\tlocal ValidEta = Params.CheckEta(2)\n--]=]\n\n--!st...
[ { "role": "assistant", "content": "--[=[\n\tVector operations on degree-255 polynomials\n\t\n\tWorks on vectors of polynomials including matrix multiplication,\n\tNTT transforms, and encoding/decoding for ML-DSA.\n\n\tExample usage:\n\t\tlocal PolyVec = require(script)\n\t\t\n\t\tlocal Vec = buffer.create(4...
[ { "role": "assistant", "content": "--!strict\n--!optimize 2\n--!native\n\nlocal SHA3 = {}\n\nlocal LOW_ROUND, HIGH_ROUND = buffer.create(96), buffer.create(96) do\n\tlocal HighFactorKeccak = 0\n\tlocal ShiftRegister = 29\n\tlocal function GetNextBit(): number\n\t\tlocal Result = ShiftRegister % 2\n\t\tShift...
[ { "role": "assistant", "content": "--[=[\n\tML-DSA Sampling\n\t\n\tExample usage:\n\t\tlocal Sampling = require(script)\n\t\t\n\t\tlocal Rho = buffer.create(32)\n\t\tlocal Matrix = buffer.create(4 * 4 * 256 * 4)\n\t\tSampling.ExpandA(Rho, Matrix, 4, 4)\n--]=]\n\n--!strict\n--!optimize 2\n--!native\n\nlocal ...
[ { "role": "assistant", "content": "--[=[\n\tUtility functions for ML-DSA key and signature sizes\n\t\n\t ML-DSA parameters.\n\n\tExample usage:\n\t\tlocal Utils = require(script)\n\t\t\n\t\tlocal PubKeySize = Utils.PubKeyLen(4, 13) -- 1312 bytes for ML-DSA-44\n\t\tlocal SecKeySize = Utils.SecKeyLen(4, 4, 2,...
[ { "role": "assistant", "content": "--[=[\n\tStateful SHAKE XOF (Extensible Output Function)\n\t\n\tNon-OOP implementation with reusable state buffers.\n\tFor ML-DSA sampling functions that use rejection sampling.\n\t\n\tExample usage:\n\t\tlocal XOF = require(script)\n\t\t\n\t\tXOF.Reset128()\n\t\tXOF.Absor...
[ { "role": "assistant", "content": "--[=[\n\tML-DSA (FIPS 204) Digital Signature Algorithm\n\t\n\tPost quantum digital signature scheme based on lattice cryptography.\n\tHas three security levels: ML-DSA-44, ML-DSA-65, ML-DSA-87.\n\n\tExample usage:\n\t\tlocal MLDSA = require(\"@self/MlDSA\")\n\t\t\n\t\tloca...
[ { "role": "assistant", "content": "--[=[\n\tML-KEM Compression Module\n\t\n\tPolynomial coefficient compression and decompression operations for ML-KEM.\n\tMaps field elements to and from reduced bit representations.\n--]=]\n\n--!strict\n--!optimize 2\n--!native\n\nlocal Params = require(\"./Params\")\n\nlo...
[ { "role": "assistant", "content": "--[=[\n\tML-KEM Field Arithmetic Module\n\t\n\tPrime field Zq arithmetic operations for ML-KEM.\n\tModular arithmetic over the field Z_q where q = 3329.\n\t\n\tExample usage:\n\t\tlocal Field = require(script.Field)\n\t\t\n\t\tlocal Sum = Field.Add(1234, 567)\n\t\tlocal Pr...
[ { "role": "assistant", "content": "--[=[\n\tML-KEM Number Theoretic Transform Module\n\t\n\tNumber Theoretic Transform (NTT) operations for polynomial multiplication.\n\tCooley-Tukey NTT and Gentleman-Sande inverse NTT algorithms\n\t\t\n\tExample usage:\n\t\tlocal NTT = require(script.NTT)\n\t\t\n\t\tlocal ...
[ { "role": "assistant", "content": "--[=[\n\tML-KEM Public Key Encryption Module\n\t\n\tK-PKE (CPA-secure public key encryption) implementation for ML-KEM.\n\tProvides key generation, encryption, and decryption operations\n\tas specified in NIST FIPS 203.\n\t\n\tExample usage:\n\t\tlocal PKE = require(script...
[ { "role": "assistant", "content": "--[=[\n\tML-KEM Parameters Module\n\t\n\tParameter validation functions for ML-KEM.\n\t NIST FIPS 203 specification.\n\n\tExample usage:\n\t\tlocal Params = require(script.Params)\n\t\tlocal IsValid = Params.CheckKeygenParams(4, 2) -- true\n\t\t\n\t\tlocal ValidD = Params....
[ { "role": "assistant", "content": "--[=[\n\tML-KEM Polynomial Vector Module\n\t\n\tPolynomial vector and matrix operations for ML-KEM.\n\tVector arithmetic, matrix multiplication, and encoding/decoding\n\toperations on vectors of degree-255 polynomials.\n--]=]\n\n--!strict\n--!optimize 2\n--!native\n\nlocal...
[ { "role": "assistant", "content": "--!strict\n--!optimize 2\n--!native\n\nlocal SHA3 = {}\n\nlocal LOW_ROUND, HIGH_ROUND = buffer.create(96), buffer.create(96) do\n\tlocal HighFactorKeccak = 0\n\tlocal ShiftRegister = 29\n\tlocal function GetNextBit(): number\n\t\tlocal Result = ShiftRegister % 2\n\t\tShift...
[ { "role": "assistant", "content": "--[=[\n\tML-KEM Sampling Module\n\t\n\tPolynomial sampling operations for ML-KEM.\n\t Uniform sampling from Rq and centered binomial distribution sampling.\n\t\n\tExample usage:\n\t\tlocal Sampling = require(script.Sampling)\n\t\t\n\t\tlocal Rho = buffer.create(32)\n\t\tlo...
[ { "role": "assistant", "content": "--[=[\n\tML-KEM Serialization Module\n\t\n\tPolynomial encoding and decoding operations for ML-KEM.\n\tConverts polynomials to/from byte arrays with different bit lengths.\n\t\t\n\tExample usage:\n\t\tlocal Serialize = require(script.Serialize)\n\t\t\n\t\tlocal Poly = buff...
[ { "role": "assistant", "content": "--[=[\n\tML-KEM Utilities Module\n\t\n\tUtility functions for ML-KEM implementation\n\t\n\tExample usage:\n\t\tlocal Utils = require(script.Utils)\n\t\tlocal IsEqual = Utils.CtMemcmp(Buffer1, Buffer2)\n\t\t\n\t\tUtils.CtCondMemcpy(Condition, Dest, Src1, Src2)\n\t\t\n\t\tlo...
[ { "role": "assistant", "content": "--[=[\n\tML-KEM Main Module (Key Encapsulation Mechanism)\n\t\n\tThe complete ML-KEM post quantum key encapsulation.\n\tKey generation, encapsulation, and decapsulation operations with\n\tCCA security using the Fujisaki Okamoto transform.\n\t\n\tExample usage:\n\t\tlocal M...
[ { "role": "assistant", "content": "--!strict\n\nlocal Algorithms = table.freeze({\n\tEdDSA = require(\"@self/EdDSA\"),\n\tMlDSA = require(\"@self/MlDSA\"),\n\tMlKEM = require(\"@self/MlKEM\"),\n})\n\nreturn Algorithms" } ]
[ { "role": "assistant", "content": "--!strict \n\nlocal Cryptography = table.freeze({\n\tHashing = require(\"@self/Hashing\"),\n\tChecksums = require(\"@self/Checksums\"),\n\tUtilities = require(\"@self/Utilities\"),\n\tEncryption = require(\"@self/Encryption\"),\n\tVerification = require(\"@self/Verificatio...
[ { "role": "assistant", "content": "--!strict\n\nlocal RunService = game:GetService(\"RunService\") :: RunService\nlocal ReplicatedStorage = game:GetService(\"ReplicatedStorage\")\n\nlocal Demo = ReplicatedStorage.Demo\nlocal ViewportWindow = require(ReplicatedStorage.Packages.ViewportWindow)\n\nlocal sky = ...
[ { "role": "assistant", "content": "--!strict\n\nlocal Copy = {}\n\nfunction Copy.instance<T>(instance: T & Instance)\n\tlocal archivableMap = {}\n\tfor _, child in instance:GetChildren() do\n\t\tarchivableMap[child] = child.Archivable\n\t\tchild.Archivable = false\n\tend\n\n\tlocal archivable = instance.Arc...
[ { "role": "assistant", "content": "--!strict\n\nlocal RunService = game:GetService(\"RunService\") :: RunService\n\nlocal Trove = require(game.ReplicatedStorage.Packages.Trove)\n\nlocal MatchHandlers: { [string]: (Instance, Instance, Trove.Trove) -> () } = {}\n\nfunction MatchHandlers.Default(real, copy, tr...
[ { "role": "assistant", "content": "--!strict\n\n-- This is kind of messy, but it gets the job done\n-- Allows for cloning of instance hierarchies in the data model and matching their properties\n-- Useful for having a matching world in viewport frames\n\nlocal Trove = require(game.ReplicatedStorage.Packages...
[ { "role": "assistant", "content": "--!strict\n\nlocal RunService = game:GetService(\"RunService\")\n\nlocal ViewportWindow = require(game.ReplicatedStorage.Packages.ViewportWindow)\nlocal Trove = require(game.ReplicatedStorage.Packages.Trove)\nlocal CloneMatch = require(script.Parent.Helpers.CloneMatch)\n\n...
[ { "role": "assistant", "content": "--!strict\n\nlocal ViewportWindow = require(game.ReplicatedStorage.Packages.ViewportWindow)\nlocal CloneMatch = require(script.Parent.Helpers.CloneMatch)\n\nlocal PortalClass = {}\nPortalClass.__index = PortalClass\nPortalClass.ClassName = \"Portal\"\n\ntype ViewportWindow...
[ { "role": "assistant", "content": "--!strict\n\nlocal SKYBOX_MAP: { [string]: CFrame } = {\n\t[\"Bk\"] = CFrame.fromEulerAnglesYXZ(0, math.rad(180), 0),\n\t[\"Dn\"] = CFrame.fromEulerAnglesYXZ(-math.rad(90), math.rad(90), 0),\n\t[\"Ft\"] = CFrame.fromEulerAnglesYXZ(0, 0, 0),\n\t[\"Lf\"] = CFrame.fromEulerAn...
[ { "role": "assistant", "content": "--!strict\n\nlocal Players = game:GetService(\"Players\") :: Players\nlocal Lighting = game:GetService(\"Lighting\") :: Lighting\n\nlocal Trove = require(script.Parent.Trove)\nlocal SkyboxHelper = require(script.SkyboxHelper)\n\nlocal VEC_XZ = Vector3.new(1, 0, 1)\nlocal V...
[ { "role": "assistant", "content": "--!optimize 2\n--!strict\n--@EternityDev\nlocal Client = {}\n\nlocal RunService = game:GetService(\"RunService\")\nlocal Thread = require(\"./Util/Thread\")\nlocal Buffer = require(\"./Util/Buffer\")\nlocal Replication = require(\"./Replication\")\nlocal Event: RemoteEvent...
[ { "role": "assistant", "content": "--!optimize 2\n--!strict\nlocal Replication = {}\n\nlocal RunService = game:GetService(\"RunService\")\nlocal _repl: RemoteEvent = script.Parent:WaitForChild(\"_repl\")\n\nlocal Buffer = require(\"./Util/Buffer\")\nlocal Identifier = require(\"./Util/Identifier\")\n\nlocal...
[ { "role": "assistant", "content": "--!optimize 2\n--!strict\n--@EternityDev\nlocal BITS: number = 8\nlocal MAX_VALUE: number = bit32.lshift(1, BITS) - 1\nlocal hook_fn: (string, number) -> ()\n\nif not shared.__warp_identifier_registry then\n\tshared.__warp_identifier_registry = {\n\t\tcache = {} :: { [stri...
[ { "role": "assistant", "content": "--!strict\n--!optimize 2\n--@EternityDev\nlocal thread: thread?\n\nlocal function passer<T...>(func: (T...) -> (), ...: T...): ()\n\tlocal HoldThread: thread = thread :: thread\n\tthread = nil\n\tfunc(...)\n\tthread = HoldThread\nend\n\nlocal function newThread(): ()\n\tth...
[ { "role": "assistant", "content": "--!strict\n--@EternityDev\nlocal Remote = {}\n\nif game.RunService:IsServer() then\n\tif not script:FindFirstChild(\"_repl\") then\n\t\tInstance.new(\"RemoteEvent\", script).Name = \"_repl\"\n\tend\n\tif not script:FindFirstChild(\"Event\") then\n\t\tInstance.new(\"RemoteE...
[ { "role": "assistant", "content": "local fs = require(\"@lune/fs\")\nlocal roblox = require(\"@lune/roblox\")\nlocal process = require(\"@lune/process\")\nlocal run = require(\"@utils/run\")\n\nrun(\"rojo\", { \"build\", \"test.project.json\", \"--output\", \"test-place.rbxl\" })\n\nlocal function trim(s: s...
[ { "role": "assistant", "content": "local fs = require(\"@lune/fs\")\nlocal process = require(\"@lune/process\")\nlocal run = require(\"@utils/run\")\n\nlocal commandName = process.args[1]\nlocal writePath = process.args[2]\n\nlocal result\npcall(function()\n\trun(\"rojo\", { \"build\", \"test.project.json\"...
[ { "role": "assistant", "content": "local pkgRoot = game.ReplicatedStorage.Packages.Bufferize\nlocal dataTypes = require(pkgRoot.DataTypes)\n\n-- https://tableconvert.com/csv-to-markdown\n\nlocal SUPPORT_MAP = {\n\t[\"implemented\"] = \"✔\",\n\t[\"unimplemented\"] = \"❌\",\n\t[\"never\"] = \"⛔\",\n}\n\nlocal...
[ { "role": "assistant", "content": "local pkgRoot = game.ReplicatedStorage.Packages.Bufferize\nlocal dataTypes = require(pkgRoot.DataTypes)\n\nlocal definitionsByTypeId = dataTypes.Encoder.definitionsByTypeId\n\nlocal maxTypeId = -1\nfor _, definition in definitionsByTypeId do\n\tmaxTypeId = math.max(definit...
[ { "role": "assistant", "content": "local fs = require(\"@lune/fs\")\nlocal serde = require(\"@lune/serde\")\nlocal roblox = require(\"@lune/roblox\")\nlocal run = require(\"@utils/run\")\n\nlocal function enableFFlagEnableLoadModule()\n\tlocal hadFolder = true\n\tlocal pathToStudio = roblox.studioApplicatio...
[ { "role": "assistant", "content": "local fs = require(\"@lune/fs\")\nlocal run = require(\"@utils/run\")\n\nrun(\"wally\", { \"install\" })\nfor _, folderName in { \"Packages\", \"DevPackages\", \"ServerPackages\" } do\n\tif not fs.isDir(folderName) then\n\t\tfs.writeDir(folderName)\n\tend\nend\n\nrun(\"roj...
[ { "role": "assistant", "content": "--!strict\n\nlocal BufferStreamStatic = {}\n\nlocal BufferStreamClass = {}\nBufferStreamClass.__index = BufferStreamClass\nBufferStreamClass.ClassName = \"BufferStream\"\n\nexport type BufferStream = typeof(setmetatable(\n\t{} :: {\n\t\tb: buffer,\n\t\tcursor: number,\n\t\...
[ { "role": "assistant", "content": "local dataTypesRoot = script.Parent\nlocal TypeIds = require(dataTypesRoot.TypeIds)\nlocal BufferStream = require(dataTypesRoot.Parent.BufferStream)\n\nlocal DataTypeDefinitionStatic = {}\n\nlocal DataTypeDefinitionClass = {}\nDataTypeDefinitionClass.__index = DataTypeDefi...
[ { "role": "assistant", "content": "local dataTypesRoot = script.Parent\nlocal BufferStream = require(dataTypesRoot.Parent.BufferStream)\n\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\nlocal UserdataDefinition = require(dataTypesRoot.Standalone.Userdata.UserdataDefinition)\n\nlocal D...
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypePacker = require(dataTypesRoot.DataTypePacker)\n\nreturn DataTypePacker.packModules(script:GetChildren())\n" } ]
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal BufferStream = require(dataTypesRoot.Parent.BufferStream)\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\nlocal StandaloneDataTypes = require(dataTypesRoot.Standalone)\nlocal TableH...
[ { "role": "assistant", "content": "-- there are a few data types that need to read / write CFrames\n-- for these cases it's helpful to have a module that that can be\n-- required by other definitions\n\nlocal dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal BufferStream = require(dataTypesRoot...
[ { "role": "assistant", "content": "local TableHelper = {}\n\n-- Private\n\nlocal function standardProcessKV(kv: any)\n\treturn kv\nend\n\nlocal function standardCompare(a: any, b: any)\n\treturn a == b\nend\n\n-- Public\n\nfunction TableHelper.getUniqueTblsArray(rootTbl: { [any]: any })\n\tlocal i = 1\n\tlo...
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.new(\"boolean\", {\n\tread = function(stream)\n\t\treturn stream:readu8() == 1\n\tend,\n\twrite = function(strea...
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.new(\"buffer\", {\n\tread = function(stream)\n\t\treturn stream:readBuffer(stream:readu32())\n\tend,\n\twrite = ...
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\n-- named 'luaFunction' b/c auto-import is being annoying if the file is just called 'function'\n\nreturn DataTypeDefinition.never(\"functi...
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.new(\"nil\", {\n\tread = function(_stream)\n\t\treturn nil\n\tend,\n\twrite = function(_stream, _null) end,\n})\...
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nlocal number_nan = 1\nlocal number_huge = 2\nlocal number_int = 3\nlocal number_f64 = 4\n\nreturn DataTypeDefinition.new(\"number\", {\n\t...
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.new(\"string\", {\n\tread = function(stream)\n\t\tlocal bytes = stream:readu8()\n\t\tlocal length = stream:readU...
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.never(\"userdata\")\n" } ]
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nlocal AXIS_NAME_ORDER = { \"X\", \"Y\", \"Z\" }\n\nreturn DataTypeDefinition.new(\"Axes\", {\n\tread = function(stream)\n\t\tlocal index =...
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.new(\"BrickColor\", {\n\tread = function(stream)\n\t\treturn BrickColor.new(stream:readu32())\n\tend,\n\twrite =...
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal CFrameStream = require(dataTypesRoot.Helpers.CFrameStream)\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.new(\"CFrame\", {\n\tread = CFrameStream.read,...
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\n-- TODO: This can be supported, it just has a lot of properties...\nreturn DataTypeDefinition.unimplemented(\"CatalogSearchParams\")\n" ...
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.new(\"Color3\", {\n\tread = function(stream)\n\t\treturn Color3.fromRGB(stream:readu8(), stream:readu8(), stream...
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.new(\"ColorSequence\", {\n\tread = function(stream)\n\t\tlocal keypoints = {}\n\t\tlocal nKeypoints = stream:rea...
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.new(\"ColorSequenceKeypoint\", {\n\tread = function(stream)\n\t\tlocal t = stream:readf32()\n\t\tlocal color = C...
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.never(\"Content\")\n" } ]
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.never(\"DockWidgetPluginGuiInfo\")\n" } ]
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.new(\"Enum\", {\n\tread = function(stream)\n\t\tlocal enumTypeName = stream:readString(stream:readu8())\n\t\tret...
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.new(\"EnumItem\", {\n\tread = function(stream)\n\t\tlocal enumName = stream:readString(stream:readu8())\n\t\tloc...
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.new(\"Enums\", {\n\tread = function(_stream)\n\t\treturn Enum\n\tend,\n\twrite = function(_stream) end,\n})\n" ...
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nlocal FACE_NAME_ORDER = { \"Front\", \"Bottom\", \"Left\", \"Back\", \"Top\", \"Right\" }\n\nreturn DataTypeDefinition.new(\"Faces\", {\n\...
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nlocal function readTangent(stream: DataTypeDefinition.BufferStream, tangentId: number): number?\n\tlocal prevCursor = stream.cursor\n\tif ...
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.new(\"Font\", {\n\tread = function(stream)\n\t\tlocal weight = Enum.FontWeight:FromValue(stream:readu16()) :: En...
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.unimplemented(\"Instance\")\n" } ]
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.new(\"NumberRange\", {\n\tread = function(stream)\n\t\treturn NumberRange.new(stream:readf32(), stream:readf32()...
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.new(\"NumberSequence\", {\n\tread = function(stream)\n\t\tlocal keypoints = {}\n\t\tlocal nKeypoints = stream:re...
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.new(\"NumberSequenceKeypoint\", {\n\tread = function(stream)\n\t\treturn NumberSequenceKeypoint.new(stream:readf...
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.never(\"OverlapParams\")\n" } ]
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.new(\"Path2DControlPoint\", {\n\tread = function(stream)\n\t\tlocal pos = UDim2.new(stream:readf32(), stream:rea...
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nlocal label_u8 = 1\nlocal label_u16 = 2\nlocal label_u32 = 3\n\nlocal labelReader = DataTypeDefinition.createReader({\n\t[label_u8] = func...
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\n-- lsp doesn't seem to like acoustic absorption, but it does exist!\n\nlocal newPhysicalProps = PhysicalProperties.new :: (...number) -> P...
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.never(\"RBXScriptConnection\")\n" } ]
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.never(\"RBXScriptSignal\")\n" } ]
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.never(\"Random\")\n" } ]
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.new(\"Ray\", {\n\tread = function(stream)\n\t\treturn Ray.new(\n\t\t\tVector3.new(stream:readf32(), stream:readf...
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.never(\"RaycastParams\")\n" } ]
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.never(\"RaycastResult\")\n" } ]
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.new(\"Rect\", {\n\tread = function(stream)\n\t\treturn Rect.new(stream:readf32(), stream:readf32(), stream:readf...
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.new(\"Region3\", {\n\tread = function(stream)\n\t\tlocal vMin = Vector3.new(stream:readf32(), stream:readf32(), ...
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.new(\"Region3int16\", {\n\tread = function(stream)\n\t\tlocal vMin = Vector3int16.new(stream:readi16(), stream:r...
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal CFrameStream = require(dataTypesRoot.Helpers.CFrameStream)\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.new(\"RotationCurveKey\", {\n\tread = function...
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.never(\"Secret\")\n" } ]
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\n-- technically we could use a modified version of the table type, but that would require this to also be dependant\nreturn DataTypeDefinit...
[ { "role": "assistant", "content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.new(\"TweenInfo\", {\n\tread = function(stream)\n\t\tlocal t = stream:readf32()\n\t\tlocal easingStyle = Enum.Ea...