repo
stringclasses
302 values
file_path
stringlengths
18
241
language
stringclasses
2 values
file_type
stringclasses
4 values
code
stringlengths
76
697k
tokens
int64
10
271k
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/datatypes/NumberRange.luau
luau
.luau
--!strict local Helper = require("./Helper"); local NumberRange = {}; NumberRange.__type = "NumberRange"; local isFn = Helper.DataTypeIsFn(NumberRange); NumberRange.__newindex = function() error("Cannot change"); end local CACHE = setmetatable({}, {__mode = "v"}); local function newNumberRange(min: number, max...
403
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/datatypes/NumberSequence.luau
luau
.luau
--!strict local Helper = require("./Helper"); local NumberSequenceKeypoint = require("./NumberSequenceKeypoint"); type NumberSequenceKeypoint = NumberSequenceKeypoint.NumberSequenceKeypoint; local NumberSequence = {}; NumberSequence.__type = "NumberSequence"; local isFn = Helper.DataTypeIsFn(NumberSequence); Number...
568
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/datatypes/NumberSequenceKeypoint.luau
luau
.luau
--!strict local Helper = require("./Helper"); local NumberSequenceKeypoint = {}; NumberSequenceKeypoint.__type = "NumberSequenceKeypoint"; local isFn = Helper.DataTypeIsFn(NumberSequenceKeypoint); NumberSequenceKeypoint.__newindex = function() error("Cannot change"); end local CACHE = setmetatable({}, {__mode =...
344
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/datatypes/PhysicalProperties.luau
luau
.luau
--!strict local Helper = require("./Helper"); local PhysicalProperties = {}; PhysicalProperties.__type = "PhysicalProperties"; local isFn = Helper.DataTypeIsFn(PhysicalProperties); PhysicalProperties.__newindex = function() error("Cannot change"); end local CACHE = setmetatable({}, {__mode = "v"}); local funct...
814
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/datatypes/Ray.luau
luau
.luau
--!strict local Helper = require("./Helper"); local Vector3 = require("./Vector3"); type Vector3 = Vector3.Vector3; local Ray = {}; Ray.__type = "Ray"; local isFn = Helper.DataTypeIsFn(Ray); Ray.__newindex = function() error("Cannot change"); end local CACHE = setmetatable({}, {__mode = "v"}); function Ray.ne...
441
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/datatypes/Rect.luau
luau
.luau
--!strict local Helper = require("./Helper"); local Vector2 = require("./Vector2"); type Vector2 = Vector2.Vector2; local Rect = {}; Rect.__type = "Rect"; local isFn = Helper.DataTypeIsFn(Rect); Rect.__newindex = function() error("Cannot change"); end local CACHE = setmetatable({}, {__mode = "v"}); local func...
605
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/datatypes/UDim.luau
luau
.luau
--!strict local Helper = require("./Helper"); local UDim = {}; UDim.__type = "UDim"; local isFn = Helper.DataTypeIsFn(UDim); UDim.__newindex = function() error("Cannot change"); end local CACHE = setmetatable({}, {__mode = "v"}); function UDim.new(Scale: number, Offset: number): UDim Offset = math.floor(Of...
380
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/datatypes/UDim2.luau
luau
.luau
--!strict local Helper = require("./Helper"); local UDim = require("./UDim"); type UDim = UDim.UDim; local UDim2 = {}; UDim2.__type = "UDim2"; local isFn = Helper.DataTypeIsFn(UDim2); UDim2.__newindex = function() error("Cannot change"); end local CACHE = setmetatable({}, {__mode = "v"}); local function newUD...
779
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/datatypes/UniqueId.luau
luau
.luau
--!strict local Helper = require("./Helper"); local UniqueId = {}; UniqueId.__type = "UniqueId"; local isFn = Helper.DataTypeIsFn(UniqueId); UniqueId.__newindex = function() error("Cannot change"); end local CACHE = setmetatable({}, {__mode = "v"}); function newUniqueId(index: number, time: number, random: buf...
400
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/datatypes/Vector2.luau
luau
.luau
--!strict local Helper = require("./Helper"); local Vector2 = {}; Vector2.__type = "Vector2"; local isFn = Helper.DataTypeIsFn(Vector2); Vector2.__newindex = function() error("Cannot change"); end local CACHE = setmetatable({}, {__mode = "v"}); -- TODO: use "vector" type instead of "any" when indexing .X, .Y, ...
921
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/datatypes/Vector2int16.luau
luau
.luau
--!strict local Helper = require("./Helper"); local Vector2int16 = {}; Vector2int16.__type = "Vector2int16"; local isFn = Helper.DataTypeIsFn(Vector2int16); Vector2int16.__newindex = function() error("Cannot change"); end local CACHE = setmetatable({}, {__mode = "v"}); function Vector2int16.new(X: number?, Y: ...
654
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/datatypes/Vector3.luau
luau
.luau
--!strict local Helper = require("./Helper"); local Vector3 = {}; Vector3.__type = "Vector3"; local isFn = Helper.DataTypeIsFn(Vector3); Vector3.__newindex = function() error("Cannot change"); end local CACHE = setmetatable({}, {__mode = "v"}); local function getNan(vec: vector): vector? local res = vector...
1,447
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/datatypes/Vector3int16.luau
luau
.luau
--!strict -- TODO: use native `vector` luau datatype local Helper = require("./Helper"); local Vector3int16 = {}; Vector3int16.__type = "Vector3int16"; local isFn = Helper.DataTypeIsFn(Vector3int16); Vector3int16.__newindex = function() error("Cannot change"); end local CACHE = setmetatable({}, {__mode = "v"});...
765
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/datatypes/init.luau
luau
.luau
local Axes = require("@self/Axes"); export type Axes = Axes.Axes; local BrickColor = require("@self/BrickColor"); export type BrickColor = BrickColor.BrickColor; local CFrame = require("@self/CFrame"); export type CFrame = CFrame.CFrame; local Color3 = require("@self/Color3"); export type Color3 = Color3.Color3; local ...
752
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/dom/binary/init.luau
luau
.luau
--!strict local polyfill = require("@polyfill"); local mem = polyfill.mem; local lz4 = polyfill.lz4; local zlib = polyfill.zlib; local zstd = polyfill.zstd; local base64 = polyfill.base64; local blake2 = polyfill.blake2; local sink = polyfill.sink; local stream = polyfill.stream; local ansi = require("./lib/ansi"); lo...
15,902
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/dom/binary/stream.luau
luau
.luau
--!strict local BufferStream = {}; BufferStream.__index = BufferStream; function BufferStream.new(size: number) return setmetatable({ len = 0, buffer = buffer.create(size), position = 0, capacity = size, }, BufferStream); end function BufferStream.fromBuffer(buf: buffer) lo...
1,546
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/dom/init.luau
luau
.luau
--!strict local roblox = require("@self/roblox"); local binary = require("@self/binary"); local xml = require("@self/xml"); export type DOM = roblox.Document; export type DOMInfo = roblox.DocumentInfo; export type DOMClass = roblox.Class; export type DOMInstance = roblox.Instance; export type DOMProperty = roblox.Prop...
346
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/dom/lib/ansi.luau
luau
.luau
--!strict --!native --!optimize 2 local COLORS = { black = 30, red = 31, green = 32, yellow = 33, blue = 34, magenta = 35, cyan = 36, white = 37, } local STYLES = { reset = 0, bold = 1, dim = 2, italic = 3, underline = 4, blink = 5, reverse = 7, hidden = ...
251
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/dom/lib/int64.luau
luau
.luau
--!native --!optimize 2 -- stylua: ignore local HEX_TO_BINARY = { ["0"] = "0000", ["1"] = "0001", ["2"] = "0010", ["3"] = "0011", ["4"] = "0100", ["5"] = "0101", ["6"] = "0110", ["7"] = "0111", ["8"] = "1000", ["9"] = "1001", ["a"] = "1010", ["b"] = "1011", ["c"] = "1100", ["d"] = "1101", ["e"] = "1110...
6,996
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/dom/roblox.luau
luau
.luau
--!strict export type Class = { index: number, name: string, isService: boolean, instances: {number}, }; export type Property = { type: number, value: any, } export type Instance = { className: string, referent: number, parent: number?, properties: {[string]: Property}, }; exp...
451
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/dom/xml/xml.luau
luau
.luau
--!strict local polyfill = require("@polyfill"); local mem = polyfill.mem; local xml = {}; export type Node = { tag: string, attributes: { [string]: string }, children: string | { Node }, cdata: boolean?, raw: boolean?, } local function parseAttributes(attrStr: string): { [string]: string } l...
1,535
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/init.luau
luau
.luau
local dom = require("@self/dom"); local manager = require("@self/core/manager"); local reflection = require("@self/reflection"); local polyfill = require("@polyfill"); local module = {}; module.dom = dom; module.manager = manager; module.reflection = reflection; module.polyfill = polyfill; function module.deserializ...
277
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/polyfill/impl/luau/datetime.luau
luau
.luau
--!strict --!native --!optimize 2 type TimeDictionary = { Year: number, Month: number, Day: number, Hour: number, Minute: number, Second: number, Millisecond: number, } local start_time = os.time() local start_clock = os.clock() local DateTime = { UnixTimestamp = (nil :: any) :: numbe...
664
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/polyfill/impl/luau/init.luau
luau
.luau
--!strict return { base64 = require("@self/base64"), blake2 = require("@self/blake2"), datetime = require("@self/datetime"), lz4 = require("@self/lz4"), md5 = require("@self/md5"), mem = require("@self/mem"), sink = require("@self/sink"), stream = require("@self/stream"), task = requ...
112
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/polyfill/impl/luau/sink.luau
luau
.luau
--!strict --!native --!optimize 2 type IoWritable = { write: (self: IoWritable, value: string | buffer) -> (), writei8: (self: IoWritable, value: number) -> (), writeu8: (self: IoWritable, value: number) -> (), writei16: (self: IoWritable, value: number) -> (), writeu16: (self: IoWritable, value: n...
1,161
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/polyfill/impl/luau/stream.luau
luau
.luau
--!strict --!native --!optimize 2 export type IoWritable = { write: (self: IoWritable, value: string | buffer) -> (), writei8: (self: IoWritable, value: number) -> (), writeu8: (self: IoWritable, value: number) -> (), writei16: (self: IoWritable, value: number) -> (), writeu16: (self: IoWritable, v...
1,405
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/polyfill/impl/luau/task.luau
luau
.luau
--!strict --!native --!optimize 2 return { spawn = function(f: (() -> ()) | thread): thread if (type(f) == "function") then local thread = coroutine.create(f); assert(coroutine.resume(thread)); return thread end assert(coroutine.resume(f)); return ...
153
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/polyfill/impl/luau/zlib.luau
luau
.luau
--!strict return { compress = function(...) error("Not implemented") end::any, decompress = function(...) error("Not implemented") end::any, };
40
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/polyfill/impl/luau/zstd.luau
luau
.luau
--!strict return { compress = function(...) error("Not implemented") end::any, decompress = function(...) error("Not implemented") end::any, }
40
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/polyfill/impl/lune/datetime.luau
luau
.luau
--!strict --!native --!optimize 2 type TimeDictionary = { Year: number, Month: number, Day: number, Hour: number, Minute: number, Second: number, Millisecond: number, } local lune_datetime = require("@lune/datetime") :: any; local DateTime = { UnixTimestamp = (nil :: any) :: number, ...
967
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/polyfill/impl/lune/init.luau
luau
.luau
--!strict --!native --!optimize 2 local serde = require("@lune/serde") :: any; return { base64 = require("./luau/base64"), -- fallback blake2 = require("./luau/blake2"), -- fallback datetime = require("@self/datetime"), lz4 = require("./luau/lz4"), -- fallback md5 = function(value: string): string ...
504
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/polyfill/impl/lute.luau
luau
.luau
--!strict --!native --!optimize 2 local task = require("@lute/task") :: any; local crypto = require("@lute/crypto") :: any; return { base64 = require("./luau/base64"), -- fallback blake2 = require("./luau/blake2"), -- fallback datetime = require("./luau/datetime"), -- fallback lz4 = require("./luau/lz4...
321
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/polyfill/impl/zune/datetime.luau
luau
.luau
--!strict --!native --!optimize 2 type TimeDictionary = { Year: number, Month: number, Day: number, Hour: number, Minute: number, Second: number, Millisecond: number, } local DateTime = { UnixTimestamp = (nil :: any) :: number, UnixTimestampMillis = (nil :: any) :: number, __in...
922
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/polyfill/impl/zune/init.luau
luau
.luau
--!strict --!native --!optimize 2 return { base64 = zune.serde.base64, blake2 = { b128 = function(input, encoding: ("hex" | "base64")?): buffer | string local hash = zune.crypto.createHash("blake2b128"); hash:update(input); return hash:digest(encoding or "binary"); ...
239
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/polyfill/init.luau
luau
.luau
--!strict --!native --!optimize 2 export type IoWritable = { write: (self: IoWritable, value: string | buffer) -> (), writei8: (self: IoWritable, value: number) -> (), writeu8: (self: IoWritable, value: number) -> (), writei16: (self: IoWritable, value: number) -> (), writeu16: (self: IoWritable, v...
635
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/reflection/generated/init.luau
luau
.luau
-- Luau code generated by api-dump.luau --!strict export type ThreadSafety = "Unsafe" | "ReadSafe" | "Safe" export type Security = string | { Read: string, Write: string, } export type Capabilities = { Read: {string}, } export type TypeInfo = { Category: string, Name: string, } export type Value...
497
Scythe-Technology/luau-roblox
Scythe-Technology-luau-roblox-50ce170/src/reflection/init.luau
luau
.luau
--!strict local dump = require("@self/generated"); local api_dump: dump.ApiDump = dump.ApiDump; local ReflectionDatabase = {}; export type ApiDump = dump.ApiDump; export type EnumInfo = dump.EnumInfo; export type Security = dump.Security; export type TypeInfo = dump.TypeInfo; export type ClassInfo = dump.ClassInfo; ...
743
PossiblePanda/QueryAuth
PossiblePanda-QueryAuth-d5bcf8a/lib/DefaultAuthConditions/AccountAge.luau
luau
.luau
local QueryAuthTypes = require(script.Parent.Parent.Types) type AuthCondition = QueryAuthTypes.AuthCondition --[=[ Checks if a player's account age meets the specified minimum and maximum days. @function AccountAge @within QueryAuth @param minimum number -- Minimum account age in days. @param maximum number? -- ...
153
PossiblePanda/QueryAuth
PossiblePanda-QueryAuth-d5bcf8a/lib/DefaultAuthConditions/Badge.luau
luau
.luau
local BadgeService = game:GetService("BadgeService") local QueryAuthTypes = require(script.Parent.Parent.Types) type AuthCondition = QueryAuthTypes.AuthCondition --[=[ Checks if the player owns the badge with the given badge ID. @function Badge @within QueryAuth @param badgeId number -- The badge ID to check agai...
131
PossiblePanda/QueryAuth
PossiblePanda-QueryAuth-d5bcf8a/lib/DefaultAuthConditions/FriendsWith.luau
luau
.luau
local QueryAuthTypes = require(script.Parent.Parent.Types) type AuthCondition = QueryAuthTypes.AuthCondition --[[ Checks to see if the player is friends with another player. @function FriendsWith @within QueryAuth @param otherPlayerId number -- The UserId of the other player to check friendship with. @return Aut...
120
PossiblePanda/QueryAuth
PossiblePanda-QueryAuth-d5bcf8a/lib/DefaultAuthConditions/Gamepass.luau
luau
.luau
local MarketplaceService = game:GetService("MarketplaceService") local QueryAuthTypes = require(script.Parent.Parent.Types) type AuthCondition = QueryAuthTypes.AuthCondition --[=[ Checks if the player owns the gamepass with the given asset ID. @function Gamepass @within QueryAuth @param gamepass number -- The gam...
139
PossiblePanda/QueryAuth
PossiblePanda-QueryAuth-d5bcf8a/lib/DefaultAuthConditions/GlobalThrottle.luau
luau
.luau
--[=[ A global time-based rate limiter, only returning true if you call it less than `times` amount of times within the `timeFrame` amount of time. @function GlobalThrottle @within QueryAuth @param timeFrame number -- The amount of time (seconds by default) between resetting the amount of calls that can happen. @p...
292
PossiblePanda/QueryAuth
PossiblePanda-QueryAuth-d5bcf8a/lib/DefaultAuthConditions/Group.luau
luau
.luau
local GroupService = game:GetService("GroupService") local QueryAuthTypes = require(script.Parent.Parent.Types) type AuthCondition = QueryAuthTypes.AuthCondition --[=[ Checks if the player is in the specified group with an optional rank range. @function Group @within QueryAuth @param group_id number -- The Roblox...
352
PossiblePanda/QueryAuth
PossiblePanda-QueryAuth-d5bcf8a/lib/DefaultAuthConditions/Once.luau
luau
.luau
--[=[ Checks to see if the player has not met this condition before. @function Once @within QueryAuth @return AuthCondition -- A lambda that returns true if the player did not get checked by the condition before. ]=] return function() local used = {} return function(player: Player) if used[player] ...
95
PossiblePanda/QueryAuth
PossiblePanda-QueryAuth-d5bcf8a/lib/DefaultAuthConditions/Policy.luau
luau
.luau
local QueryAuthTypes = require(script.Parent.Parent.Types) local PolicyService = game:GetService("PolicyService") type AuthCondition = QueryAuthTypes.AuthCondition type Policy = QueryAuthTypes.Policy --[=[ Checks if PolicyService allows the specified policy for the player. @function Policy @within QueryAuth @para...
156
PossiblePanda/QueryAuth
PossiblePanda-QueryAuth-d5bcf8a/lib/DefaultAuthConditions/Premium.luau
luau
.luau
local QueryAuthTypes = require(script.Parent.Parent.Types) type AuthCondition = QueryAuthTypes.AuthCondition --[=[ Checks to see if the player has premium. @function Premium @within QueryAuth @return AuthCondition -- A lambda that returns true if the player has premium. ]=] return function(): AuthCondition retur...
94
PossiblePanda/QueryAuth
PossiblePanda-QueryAuth-d5bcf8a/lib/DefaultAuthConditions/ServerTime.luau
luau
.luau
local Workspace = game:GetService("Workspace") local QueryAuthTypes = require(script.Parent.Parent.Types) type AuthCondition = QueryAuthTypes.AuthCondition --[=[ Checks to see if the server's time is greater or equal to the provided time. @function ServerTime @within QueryAuth @param time number -- The time to ch...
135
PossiblePanda/QueryAuth
PossiblePanda-QueryAuth-d5bcf8a/lib/DefaultAuthConditions/Studio.luau
luau
.luau
local RunService = game:GetService("RunService") local QueryAuthTypes = require(script.Parent.Parent.Types) type AuthCondition = QueryAuthTypes.AuthCondition --[=[ Checks to see if the game is running in studio. @function Studio @within QueryAuth @return AuthCondition -- A lambda that returns true if game is runn...
102
PossiblePanda/QueryAuth
PossiblePanda-QueryAuth-d5bcf8a/lib/DefaultAuthConditions/Team.luau
luau
.luau
local QueryAuthTypes = require(script.Parent.Parent.Types) type AuthCondition = QueryAuthTypes.AuthCondition --[=[ Checks if a player's team name is in the provided list of team names. @function Team @within QueryAuth @param values {string}? -- List of team names to check against. If nil, any team will pass. @re...
137
PossiblePanda/QueryAuth
PossiblePanda-QueryAuth-d5bcf8a/lib/DefaultAuthConditions/Throttle.luau
luau
.luau
--[=[ A player time-based rate limiter, only returning true if you call it less than `times` amount of times within the `timeFrame` amount of time for a given player. @function Throttle @within QueryAuth @param timeFrame number -- The amount of time (seconds by default) between resetting the amount of calls that ca...
370
PossiblePanda/QueryAuth
PossiblePanda-QueryAuth-d5bcf8a/lib/DefaultAuthConditions/UserId.luau
luau
.luau
local QueryAuthTypes = require(script.Parent.Parent.Types) type AuthCondition = QueryAuthTypes.AuthCondition --[=[ Checks if a player's UserId is in the provided list of UserIds. @function UserId @within QueryAuth @param values {number}? -- List of UserIds to check against. If nil, no UserId will pass. @return A...
127
PossiblePanda/QueryAuth
PossiblePanda-QueryAuth-d5bcf8a/lib/Types.luau
luau
.luau
--[=[ @class Types ]=] --[=[ @type AuthCondition (player: Player) -> boolean @within Types ]=] export type AuthCondition = (player: Player) -> boolean --[=[ A string which represents policies returned by [PolicyService.GetPolicyInfoForPlayerAsync](https://create.roblox.com/docs/reference/engine/classes/PolicyServ...
257
PossiblePanda/QueryAuth
PossiblePanda-QueryAuth-d5bcf8a/src/init.client.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService") local QueryAuth = require(ReplicatedStorage.QueryAuth) local plr = game.Players.LocalPlayer local test = QueryAuth.any({ QueryAuth.UserId(plr.UserId), }) if test(plr) == true then print("🟢 Expected test...
466
EgoMoose/patch-roblox-cameramodule
EgoMoose-patch-roblox-cameramodule-46a5293/src/ProxyTemplate/init.luau
luau
.luau
--!nonstrict local proxyValue = require(script:WaitForChild("_Proxy")) return proxyValue.value
23
EgoMoose/patch-roblox-cameramodule
EgoMoose-patch-roblox-cameramodule-46a5293/src/init.luau
luau
.luau
--!strict local ProxyTemplate = script:WaitForChild("ProxyTemplate") :: ModuleScript type ProxyValue<T> = { value: T } local function unknownRequire(instance: Instance) assert(instance:IsA("ModuleScript"), "The provided instance was not a ModuleScript.") return require(instance) :: any end local function createMo...
648
welcomestohell/rocket
welcomestohell-rocket-8775da5/.lute/analyze.luau
luau
.luau
local Summon = require("./lib/Summon") local config = require("@lib/config")() local fs = require("@std/fs") local net = require("@lute/net") local process = require("@lute/process") local ROBLOX_TYPEDEFS_FILENAME = "roblox.d.luau" do fs.writestringtofile( ROBLOX_TYPEDEFS_FILENAME, net.request("https://luau-lsp....
317
welcomestohell/rocket
welcomestohell-rocket-8775da5/.lute/batteries/cli.luau
luau
.luau
local cli = {} cli.__index = cli type ArgKind = "positional" | "flag" | "option" type ArgOptions = { help: string?, aliases: { string }?, default: string?, required: boolean?, } type ArgData = { name: string, kind: ArgKind, options: ArgOptions, } type ParseResult = { values: { [string]: string }, flags: { [...
1,165
welcomestohell/rocket
welcomestohell-rocket-8775da5/.lute/batteries/pp.luau
luau
.luau
type ExistingOptions = { rawStrings: boolean?, } local isPrimitiveType = { string = true, number = true, boolean = true } local typeSortOrder: { [string]: number } = { ["boolean"] = 1, ["number"] = 2, ["string"] = 3, ["function"] = 4, ["vector"] = 5, ["buffer"] = 6, ["thread"] = 7, ["table"] = 8, ["userdata...
1,214
welcomestohell/rocket
welcomestohell-rocket-8775da5/.lute/batteries/richterm.luau
luau
.luau
--#selene: allow(bad_string_escape, shadowing) --[[ richterm terminal ansi formatter ]] export type Formatter = (s: string, nocolor: boolean?) -> string -- @noinline (if it ever exists) local function format(s: string, open: string, close: string, replace: string): string local index = string.find(s, close, #open ...
1,191
welcomestohell/rocket
welcomestohell-rocket-8775da5/.lute/build-release.luau
luau
.luau
local Summon = require("@lib/Summon") do local build = Summon.new( "lute", "run", "build", "model", "--mark-attribution", "--mark-language-mode strict", "--mark-optimization-level 2" ) build:assert() end
72
welcomestohell/rocket
welcomestohell-rocket-8775da5/.lute/clean-build.luau
luau
.luau
local config = require("@lib/config")() local fs = require("@std/fs") local path = require("@std/path") local process = require("@lute/process") local function removeSafe<Args...>(remover: (string, Args...) -> (), filepath: string, ...: Args...) if fs.exists(filepath) then remover(filepath, ...) end end do local...
126
welcomestohell/rocket
welcomestohell-rocket-8775da5/.lute/clean-pkgs.luau
luau
.luau
local fs = require("@std/fs") local path = require("@std/path") local process = require("@lute/process") local PESDE_ARTIFACTS: { [string]: (string) -> () } = { luau_packages = fs.removedirectory, lune_packages = fs.removedirectory, roblox_packages = fs.removedirectory, ["pesde.lock"] = fs.remove, } do local cw...
150
welcomestohell/rocket
welcomestohell-rocket-8775da5/.lute/clean.luau
luau
.luau
local Summon = require("@lib/Summon") local process = require("@lute/process") do process.exit(Summon.codeFromMany(Summon.new("lute", "clean-build"), Summon.new("lute", "clean-pkgs"))) end
54
welcomestohell/rocket
welcomestohell-rocket-8775da5/.lute/export-to-downloads.luau
luau
.luau
local Summon = require("@lib/Summon") local fs = require("@std/fs") local path = require("@std/path") local process = require("@lute/process") local system = require("@lute/system") do local now = os.time() Summon.new("lute", "run", "build-release"):assert() if system.os == "Darwin" then local model = path.join(...
198
welcomestohell/rocket
welcomestohell-rocket-8775da5/.lute/lib/Summon.luau
luau
.luau
local cli = require("@batteries/cli") local process = require("@lute/process") local richterm = require("@batteries/richterm") local stringext = require("@std/stringext") local Summon = {} Summon.__index = Summon export type Summon = setmetatable<{ program: string, arguments: { string }, cwd: string, env: { [stri...
601
welcomestohell/rocket
welcomestohell-rocket-8775da5/.lute/lib/config.luau
luau
.luau
local Boba = require("@include/boba") local fs = require("@std/fs") local path = require("@std/path") local process = require("@lute/process") local toml = require("@batteries/toml") local Config = Boba.Struct { version = Boba.String.inner, copyright = Boba.String.inner, flags = Boba.Map(Boba.String, Boba.Unknown)...
246
welcomestohell/rocket
welcomestohell-rocket-8775da5/.lute/watch-docs.luau
luau
.luau
local Summon = require("@lib/Summon") local path = require("@std/path") local process = require("@lute/process") Summon.new("bun", "run", "dev"):withCwd(path.format(path.join(process.cwd(), "docs"))):assert()
54
welcomestohell/rocket
welcomestohell-rocket-8775da5/.lute/watch.luau
luau
.luau
local config = require("@lib/config")() local fs = require("@lute/fs") local path = require("@std/path") local process = require("@lute/process") local richterm = require("@batteries/richterm") local task = require("@lute/task") local commandArgs = { "lute", "build", "plugin" } table.move({ ... }, 2, select("#", ...),...
619
welcomestohell/rocket
welcomestohell-rocket-8775da5/extensions/color-picker.luau
luau
.luau
local Extension = require("@src/core/Extension") local UserIds = require("@src/constants/UserIds") local assets = require("@include/assets") local createCoreExtension = require("@src/core/constructors/createCoreExtension") local ext = createCoreExtension({ id = "rocket-color-picker", title = "Color Picker", descrip...
222
welcomestohell/rocket
welcomestohell-rocket-8775da5/extensions/insert/assetInserters.luau
luau
.luau
local types = require("./types") local function wrapClassInserter(class: string, assetProperty: string): types.Inserter return function(product) local instance = Instance.new(class); (instance :: any)[assetProperty] = `rbxassetid://{product.AssetId}` return instance end end local insertImageOptions: { types.I...
504
welcomestohell/rocket
welcomestohell-rocket-8775da5/extensions/insert/init.luau
luau
.luau
local UserInputService = game:GetService("UserInputService") local Workspace = game:GetService("Workspace") local Extension = require("@src/core/Extension") local Iris = require("@src/Iris") local UserIds = require("@src/constants/UserIds") local assetInserters = require("@self/assetInserters") local assets = require(...
935
welcomestohell/rocket
welcomestohell-rocket-8775da5/extensions/insert/products.luau
luau
.luau
local MarketplaceService = game:GetService("MarketplaceService") local pluginTrove = require("@src/pluginTrove") local types = require("./types") local cache: { [number]: types.ProductInfo } = {} local threads = {} local invalidIds = {} local function fetch(assetId: number): types.ProductInfo? local existing = cach...
266
welcomestohell/rocket
welcomestohell-rocket-8775da5/extensions/insert/types.luau
luau
.luau
export type Inserter = (product: ProductInfo) -> Instance export type InsertOptions = { label: string, insert: Inserter } export type ProductInfo = { Name: string, Description: string, PriceInRobux: number, ProductId: number, ProductType: string, Created: string, Updated: string, ContentRatingTypeId: number, ...
114
welcomestohell/rocket
welcomestohell-rocket-8775da5/extensions/light-sources/gizmos/drawDirection.luau
luau
.luau
local Gizmos = require("@src/core/Gizmos") local LENGTH = 5 local function drawAxis(mousePosition: Vector3, axisComponent: number, axisVector: Vector3) Gizmos.drawLine(mousePosition, mousePosition + axisVector * math.sign(axisComponent) * LENGTH) end local function drawDirection(mousePosition: Vector3, direction: V...
156
welcomestohell/rocket
welcomestohell-rocket-8775da5/extensions/light-sources/gizmos/drawLine.luau
luau
.luau
local Gizmos = require("@src/core/Gizmos") local function drawLine(from: CFrame, to: CFrame) Gizmos.drawSphere(from, Gizmos.POINT_RADIUS) Gizmos.drawLine(from.Position, to.Position) Gizmos.drawSphere(to, Gizmos.POINT_RADIUS) end return drawLine
68
welcomestohell/rocket
welcomestohell-rocket-8775da5/extensions/light-sources/init.luau
luau
.luau
local Lighting = game:GetService("Lighting") local UserInputService = game:GetService("UserInputService") local Extension = require("@src/core/Extension") local Iris = require("@src/Iris") local UserIds = require("@src/constants/UserIds") local assets = require("@include/assets") local createCoreExtension = require("@...
622
welcomestohell/rocket
welcomestohell-rocket-8775da5/extensions/light-sources/repositions/cursor.luau
luau
.luau
local types = require("../types") local cursor = {} :: types.Reposition cursor.name = "Cursor" cursor.describedBy = "dragging your cursor" function cursor.updateDirection(_, now) return now.mouseTransform.LookVector end return cursor
52
welcomestohell/rocket
welcomestohell-rocket-8775da5/extensions/light-sources/repositions/face.luau
luau
.luau
local Iris = require("@src/Iris") local drawDirection = require("../gizmos/drawDirection") local reflect = require("../utils/reflect") local types = require("../types") local face = {} :: types.Reposition face.name = "Face" face.describedBy = "shinning the surface of a part" function face.updateDirection(_, now, isGi...
207
welcomestohell/rocket
welcomestohell-rocket-8775da5/extensions/light-sources/repositions/init.luau
luau
.luau
local types = require("./types") local repositions: { types.Reposition } = { require("@self/cursor"), require("@self/face"), require("@self/line"), require("@self/reflection"), require("@self/shadow"), } return repositions
53
welcomestohell/rocket
welcomestohell-rocket-8775da5/extensions/light-sources/repositions/line.luau
luau
.luau
local drawLine = require("../gizmos/drawLine") local types = require("../types") local line = {} :: types.Reposition line.name = "Line" line.describedBy = "a line that shadows will follow" function line.updateDirection(initial, now, isGizmos) local transform = CFrame.lookAt(now.mouseTransform.Position, initial.mouse...
108
welcomestohell/rocket
welcomestohell-rocket-8775da5/extensions/light-sources/repositions/reflection.luau
luau
.luau
local drawDirection = require("../gizmos/drawDirection") local reflect = require("../utils/reflect") local types = require("../types") local reposition = {} :: types.Reposition reposition.name = "Reflection" reposition.describedBy = "casting a reflection at your mouse" function reposition.updateDirection(_, now, isGi...
145
welcomestohell/rocket
welcomestohell-rocket-8775da5/extensions/light-sources/repositions/shadow.luau
luau
.luau
local drawLine = require("../gizmos/drawLine") local types = require("../types") local shadow = {} :: types.Reposition shadow.name = "Shadow" shadow.describedBy = "moving shadows with your cursor" function shadow.updateDirection(initial, now, isGizmos) local negative = (now.mouseTransform.Position - initial.mouseTra...
148
welcomestohell/rocket
welcomestohell-rocket-8775da5/extensions/light-sources/sources/init.luau
luau
.luau
local types = require("./types") local sources: { types.Source } = { require("@self/sun"), require("@self/moon"), } return sources
32
welcomestohell/rocket
welcomestohell-rocket-8775da5/extensions/light-sources/sources/moon.luau
luau
.luau
local setLightingDirection = require("../utils/setLightingDirection") local types = require("../types") local moon = {} :: types.Source moon.name = "Moon" function moon.updateDirection(direction) setLightingDirection(direction, -1) end return moon
55
welcomestohell/rocket
welcomestohell-rocket-8775da5/extensions/light-sources/sources/sun.luau
luau
.luau
local setLightingDirection = require("../utils/setLightingDirection") local types = require("../types") local sun = {} :: types.Source sun.name = "Sun" function sun.updateDirection(direction) setLightingDirection(direction, 1) end return sun
55
welcomestohell/rocket
welcomestohell-rocket-8775da5/extensions/light-sources/types.luau
luau
.luau
export type Reposition = { name: string, describedBy: string, updateDirection: (initial: RepositionState, now: RepositionState, showGizmos: boolean) -> Vector3?, } export type RepositionState = { clockTime: number, geographicLatitude: number, sunDirection: Vector3, mouseTransform: CFrame, cameraTransform: CFr...
107
welcomestohell/rocket
welcomestohell-rocket-8775da5/extensions/light-sources/utils/getRepositionState.luau
luau
.luau
local Lighting = game:GetService("Lighting") local Workspace = game:GetService("Workspace") local Extension = require("@src/core/Extension") local types = require("../types") local function useRepositionState(r: Extension.CommandRuntime): types.RepositionState local mouse = r:getMouse() return { clockTime = Light...
126
welcomestohell/rocket
welcomestohell-rocket-8775da5/extensions/light-sources/utils/reflect.luau
luau
.luau
local function reflect(vector: Vector3, normal: Vector3): Vector3 return vector - (2 * vector:Dot(normal) * normal) end return reflect
35
welcomestohell/rocket
welcomestohell-rocket-8775da5/extensions/light-sources/utils/setLightingDirection.luau
luau
.luau
local Lighting = game:GetService("Lighting") local TAU = math.pi * 2 local function setLightingDirection(direction: Vector3, longitudeFactor: number) local latitude = math.atan2(direction.Z, math.sqrt(direction.X ^ 2 + direction.Y ^ 2)) local longtitude = math.atan2(direction.Y * -longitudeFactor, direction.X * -lo...
149
welcomestohell/rocket
welcomestohell-rocket-8775da5/extensions/lighting.luau
luau
.luau
local Lighting = game:GetService("Lighting") local Extension = require("@src/core/Extension") local UserIds = require("@src/constants/UserIds") local assets = require("@include/assets") local createCoreExtension = require("@src/core/constructors/createCoreExtension") local ext = createCoreExtension { id = "rocket-li...
185
welcomestohell/rocket
welcomestohell-rocket-8775da5/extensions/rocket.luau
luau
.luau
local Command = require("@src/core/commands/Command") local CommandStore = require("@src/core/commands/CommandStore") local Extension = require("@src/core/Extension") local Iris = require("@src/Iris") local UserIds = require("@src/constants/UserIds") local assets = require("@include/assets") local createCoreExtension =...
616
welcomestohell/rocket
welcomestohell-rocket-8775da5/extensions/scripts.luau
luau
.luau
local ScriptEditorService = game:GetService("ScriptEditorService") local Extension = require("@src/core/Extension") local Iris = require("@src/Iris") local UserIds = require("@src/constants/UserIds") local assets = require("@include/assets") local createCoreExtension = require("@src/core/constructors/createCoreExtensi...
801
welcomestohell/rocket
welcomestohell-rocket-8775da5/extensions/selection.luau
luau
.luau
local Selection = game:GetService("Selection") local Workspace = game:GetService("Workspace") local Extension = require("@src/core/Extension") local Iris = require("@src/Iris") local RegExp = require("@pkgs/RegExp") local UserIds = require("@src/constants/UserIds") local assets = require("@include/assets") local creat...
1,636
welcomestohell/rocket
welcomestohell-rocket-8775da5/extensions/tidy.luau
luau
.luau
local Extension = require("@src/core/Extension") local UserIds = require("@src/constants/UserIds") local assets = require("@include/assets") local createCoreExtension = require("@src/core/constructors/createCoreExtension") local ext = createCoreExtension({ id = "rocket-tidy", title = "Tidy", description = "Keep you...
656
welcomestohell/rocket
welcomestohell-rocket-8775da5/extensions/trusses.luau
luau
.luau
local Extension = require("@src/core/Extension") local Tags = require("@src/constants/Tags") local assets = require("@include/assets") local createCoreExtension = require("@src/core/constructors/createCoreExtension") local ext = createCoreExtension { id = "rocket-trusses", title = "Trusses", description = "Quickly ...
615
welcomestohell/rocket
welcomestohell-rocket-8775da5/include/boba-base.luau
luau
.luau
--!nonstrict --!optimize 2 -- Modified for new solver usage in Rocket -- TODO: Boba for new solver? --[[ ▄ █ ▀█▀ █ ▄ Welcome To Hell @ wthrblx.com █▀█ █ █▀█ (c) Team Fireworks 2024-2026. This software is provided 'as-is', without any express or implied warranty. In no event will the contributors ...
3,011
welcomestohell/rocket
welcomestohell-rocket-8775da5/include/fzy.luau
luau
.luau
-- The lua implementation of the fzy string matching algorithm local SCORE_GAP_LEADING = -0.005 local SCORE_GAP_TRAILING = -0.005 local SCORE_GAP_INNER = -0.01 local SCORE_MATCH_CONSECUTIVE = 1.0 local SCORE_MATCH_SLASH = 0.9 local SCORE_MATCH_WORD = 0.8 local SCORE_MATCH_CAPITAL = 0.7 local SCORE_MATCH_DOT = 0.6 loca...
2,029
welcomestohell/rocket
welcomestohell-rocket-8775da5/include/repr.luau
luau
.luau
--!nocheck --!nolint --#selene: allow(unused_variable, shadowing) --- repr - Version 1.2 -- Ozzypig - ozzypig.com - http://twitter.com/Ozzypig -- Check out this thread for more info: -- https://devforum.roblox.com/t/repr-function-for-printing-tables/276575 --[[ local repr = require(3148021300) local myTable = { hell...
3,202
welcomestohell/rocket
welcomestohell-rocket-8775da5/include/typeforge.luau
luau
.luau
--!strict --!nolint LocalShadow --#selene: allow(undefined_variable, shadowing, unused_variable) --> Helpers ---------------------------------------------------------------------------- type function handle_negation<T>(input: type, callback: (input: type, input_tag: string) -> T) local input_tag = input.tag if inpu...
17,994
welcomestohell/rocket
welcomestohell-rocket-8775da5/include/types.luau
luau
.luau
-- darklua implodes if you use a type function bruv -- selene: allow(undefined_variable) export type function WidgetCall(widgetClass: type) local baseClass = if widgetClass.tag == "intersection" then widgetClass:components()[2] else widgetClass assert(baseClass.tag == "table", "expected widget class") local placeh...
315