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 |
|---|---|---|---|---|---|
Scythe-Technology/luau-roblox | Scythe-Technology-luau-roblox-22bdf9d/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-22bdf9d/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-22bdf9d/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-22bdf9d/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-22bdf9d/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-22bdf9d/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-22bdf9d/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-22bdf9d/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-22bdf9d/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-22bdf9d/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 |
g0ofycat/Match | g0ofycat-Match-94b986c/Match/Match.luau | luau | .luau | --[[
MIT License
Copyright © 2025 g0ofycat
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, di... | 1,732 |
g0ofycat/Match | g0ofycat-Match-94b986c/Match/modules/helpers/PlayerLocation.luau | luau | .luau | --[[
MIT License
Copyright © 2025 g0ofycat
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, di... | 1,973 |
g0ofycat/Match | g0ofycat-Match-94b986c/Match/modules/helpers/Settings.luau | luau | .luau | --[[
MIT License
Copyright © 2025 g0ofycat
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, di... | 699 |
g0ofycat/Match | g0ofycat-Match-94b986c/Match/modules/helpers/Signal.luau | luau | .luau | --[[
MIT License
Copyright © 2025 g0ofycat
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, di... | 817 |
g0ofycat/Match | g0ofycat-Match-94b986c/Match/modules/sub_modules/CrossServerManager.luau | luau | .luau | --[[
MIT License
Copyright © 2025 g0ofycat
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, di... | 894 |
g0ofycat/Match | g0ofycat-Match-94b986c/Match/modules/sub_modules/PartyManager.luau | luau | .luau | --[[
MIT License
Copyright © 2025 g0ofycat
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, di... | 2,281 |
g0ofycat/Match | g0ofycat-Match-94b986c/Match/modules/sub_modules/QueueManager.luau | luau | .luau | --[[
MIT License
Copyright © 2025 g0ofycat
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, di... | 3,868 |
g0ofycat/Match | g0ofycat-Match-94b986c/Match/modules/sub_modules/SharedData.luau | luau | .luau | --[[
MIT License
Copyright © 2025 g0ofycat
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, di... | 318 |
g0ofycat/Match | g0ofycat-Match-94b986c/Match/modules/sub_modules/TeleportHandler.luau | luau | .luau | --[[
MIT License
Copyright © 2025 g0ofycat
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, di... | 1,285 |
TeamSwordphin/ShapecastHitbox | TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Hitbox.luau | luau | .luau | --!strict
--!native
--!optimize 2
local RunService = game:GetService("RunService")
local Settings = require(script.Parent.Settings)
local Types = require(script.Parent.Types)
local Solvers = require(script.Parent.Solvers)
local Visualizer = require(script.Parent.Visualizers)
function CreateHitbox(instance: Instance?... | 2,047 |
TeamSwordphin/ShapecastHitbox | TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Settings.luau | luau | .luau | return {
-- The tag or name of the object to find.
Tag = "DmgPoint",
Minimum_Stationary_Length = 1,
-- Reveal if the debug lines should be visible or not.
Debug_Visible = false,
Debug_Instance_Raycast_Destroy_Time = 1,
Debug_Instance_Spherecast_Destroy_Time = 0.1,
Debug_Instance_Blockcast_Destroy_Time = 0.1,
... | 171 |
TeamSwordphin/ShapecastHitbox | TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Solvers/Attachment.luau | luau | .luau | --!strict
--!native
--!optimize 2
local Settings = require(script.Parent.Parent.Settings)
local Types = require(script.Parent.Parent.Types)
local Solver = {}
function Solver:ToPosition(segment: Types.Segment): Vector3
return segment.Position or segment.Instance.WorldPosition
end
function Solver:ToDirection(segment... | 159 |
TeamSwordphin/ShapecastHitbox | TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Solvers/Blockcast.luau | luau | .luau | --!strict
--!native
--!optimize 2
local Types = require(script.Parent.Parent.Types)
local Solver = { Solvers = {} }
function Solver:Cast(segment: Types.Segment, raycastParams: RaycastParams?): RaycastResult?
local direction: Vector3 = Solver.Solvers[segment.Instance.ClassName]:ToDirection(segment)
local lastCFrame:... | 193 |
TeamSwordphin/ShapecastHitbox | TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Solvers/Bone.luau | luau | .luau | --!strict
--!native
--!optimize 2
local Types = require(script.Parent.Parent.Types)
local Solver = {}
function Solver:ToPosition(segment: Types.Segment): Vector3
return segment.Instance.TransformedWorldCFrame.Position
end
function Solver:ToDirection(segment: Types.Segment): Vector3
if segment.Position then
retur... | 131 |
TeamSwordphin/ShapecastHitbox | TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Solvers/Raycast.luau | luau | .luau | --!strict
--!native
--!optimize 2
local Types = require(script.Parent.Parent.Types)
local Solver = { Solvers = {} }
function Solver:Cast(segment: Types.Segment, raycastParams: RaycastParams?): RaycastResult?
local solver = Solver.Solvers[segment.Instance.ClassName]
local origin: Vector3 = solver:ToPosition(segment)... | 110 |
TeamSwordphin/ShapecastHitbox | TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Solvers/Spherecast.luau | luau | .luau | --!strict
--!native
--!optimize 2
local Types = require(script.Parent.Parent.Types)
local Solver = { Solvers = {} }
function Solver:Cast(segment: Types.Segment, raycastParams: RaycastParams?): RaycastResult?
local solver = Solver.Solvers[segment.Instance.ClassName]
local direction: Vector3 = solver:ToDirection(segm... | 125 |
TeamSwordphin/ShapecastHitbox | TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Solvers/init.luau | luau | .luau | local Solvers = {}
for _, solver in script:GetChildren() do
local load = require(solver)
load.Solvers = Solvers
Solvers[solver.Name] = load
end
return Solvers
| 44 |
TeamSwordphin/ShapecastHitbox | TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Types.luau | luau | .luau | --[=[
@class Hitbox
Create easy hitboxes using Raycasts and Shapecasts.
To start using ShapecastHitbox, first initialize your hitbox via
ShapecastHitbox.new(instance). After you have configured it, you
can activate the hitbox by calling `Hitbox:HitStart()`.
To stop the Hitbox, call `Hitbox:HitStop()`. If you a... | 2,791 |
TeamSwordphin/ShapecastHitbox | TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Visualizers/Blockcast.luau | luau | .luau | --!native
--!strict
--!optimize 2
--- While using Trails as debugging lines would be nice (and more performant!), they are susceptible to frame drops and are inaccurate
--- at low graphic settings which can create false results
-- @author Phin
local Types = require(script.Parent.Parent.Types)
local Settings = require... | 770 |
TeamSwordphin/ShapecastHitbox | TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Visualizers/Raycast.luau | luau | .luau | --!native
--!strict
--!optimize 2
--- While using Trails as debugging lines would be nice (and more performant!), they are susceptible to frame drops and are inaccurate
--- at low graphic settings which can create false results
-- @author Phin
local Types = require(script.Parent.Parent.Types)
local Settings = require... | 742 |
TeamSwordphin/ShapecastHitbox | TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Visualizers/Spherecast.luau | luau | .luau | --!native
--!strict
--!optimize 2
--- While using Trails as debugging lines would be nice (and more performant!), they are susceptible to frame drops and are inaccurate
--- at low graphic settings which can create false results
-- @author Phin
local Types = require(script.Parent.Parent.Types)
local Settings = require... | 755 |
TeamSwordphin/ShapecastHitbox | TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Visualizers/init.luau | luau | .luau | local Visualizers = {}
for _, visualizer in script:GetChildren() do
local load = require(visualizer)
Visualizers[visualizer.Name] = load
end
return Visualizers
| 41 |
TeamSwordphin/ShapecastHitbox | TeamSwordphin-ShapecastHitbox-ac5c0e0/src/init.luau | luau | .luau | --!strict
--!native
--!optimize 2
-- ShapecastHitbox
-- Phin
-- August 2024
--[=[
Documentation of the hitbox can be found inside at ShapecastHitbox/Types.luau.
This module is still relatively new and experimental, use at your own risk for
production-level projects.
]=]
local Types = require(script.Types)
expor... | 481 |
devSparkle/Overture | devSparkle-Overture-b965bad/src/Overture.luau | luau | .luau | --!nonstrict
--// Initialization
const LogService = game:GetService("LogService")
const RunService = game:GetService("RunService")
const CollectionService = game:GetService("CollectionService")
--[=[
@class Overture
The core of Overture revolves around the management of libraries.
In Overture, a library is any... | 2,032 |
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/instance.luau | luau | .luau | -- post 0.1 im not feeling it
return nil
| 14 |
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 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/Iris.luau | luau | .luau | local Iris = require("@pkgs/Iris")
local typeforge = require("@include/typeforge")
local types = require("@include/types")
type Cleanup = () -> ()
type WidgetCall<Class> = types.WidgetCall<Class>
export type Config = typeof(Iris._config)
export type PartialConfig = typeforge.Partial<Config>
export type State<T> = typ... | 808 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/constants.luau | luau | .luau | return table.freeze({
userIds = table.freeze({
znotfireman = 10014656431,
syylvi = 3814464357,
}),
})
| 37 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/constants/Tags.luau | luau | .luau | return table.freeze({
TRUSS_FILLER = "Rocket Trusses: Truss Filler",
})
| 21 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/constants/UserIds.luau | luau | .luau | return table.freeze({
znotfireman = 10014656431,
syylvi = 3814464357,
})
| 27 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/core/Extension.luau | luau | .luau | local Charm = require("@pkgs/Charm")
local Command = require("@src/core/commands/Command")
local CommandRuntime = require("@src/core/commands/CommandRuntime")
local assets = require("@include/assets")
local atoms = require("@src/utils/atoms")
local createCommand = require("@src/core/constructors/createCommand")
local t... | 829 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/core/Log.luau | luau | .luau | local LocalizationService = game:GetService("LocalizationService")
local Charm = require("@pkgs/Charm")
local repr = require("@include/repr")
export type LogEvent = {
timestamp: DateTime,
from: Log,
level: number,
args: { [number]: any, n: number },
}
local LOG_LEVELS = {
ERROR = 1,
WARN = 2,
INFO = 3,
DEBUG... | 696 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/core/commands/Command.luau | luau | .luau | local CommandRuntime = require("./CommandRuntime")
local assets = require("@include/assets")
local types = require("@src/types")
export type CommandRunner =
| ((r: CommandRuntime.CommandRuntime) -> ())
| ((r: CommandRuntime.CommandRuntime) -> types.CommandOutput)
| ((r: CommandRuntime.CommandRuntime) -> types.Comma... | 307 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/core/commands/CommandRuntime.luau | luau | .luau | local ChangeHistoryService = game:GetService("ChangeHistoryService")
local RunService = game:GetService("RunService")
local Selection = game:GetService("Selection")
local Gizmos = require("@src/core/Gizmos")
local Iris = require("@src/Iris")
local Log = require("@src/core/Log")
local Trove = require("@pkgs/Trove")
loc... | 994 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/core/commands/CommandStore.luau | luau | .luau | local Charm = require("@pkgs/Charm")
local Command = require("./Command")
local CommandRuntime = require("./CommandRuntime")
local types = require("@src/types")
local CommandStore = {}
CommandStore.runtimes = Charm.atom({} :: { [Command.Command]: CommandRuntime.CommandRuntime })
CommandStore.uiOutputs = Charm.atom({} ... | 179 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/core/commands/isOutputsUi.luau | luau | .luau | local types = require("@src/types")
local function isOutputsUi(output: types.CommandOutput?)
return output ~= nil and (output.renderViewport or output.renderWindow) ~= nil
end
return isOutputsUi
| 43 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/core/commands/runCommand.luau | luau | .luau | local Command = require("@src/core/commands/Command")
local CommandStore = require("@src/core/commands/CommandStore")
local atoms = require("@src/utils/atoms")
local constructors = require("@src/core/constructors")
local isOutputsUi = require("@src/core/commands/isOutputsUi")
local pluginTrove = require("@src/pluginTro... | 345 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/core/constructors/createCommand.luau | luau | .luau | local Command = require("@src/core/commands/Command")
local types = require("@src/types")
local function createCommand(interface: types.CommandInterface, runner: Command.CommandRunner): Command.Command
return setmetatable({
_extension = nil,
_runner = runner,
interface = table.freeze(table.clone(interface)),
}... | 79 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/core/constructors/createCommandRuntime.luau | luau | .luau | local Command = require("@src/core/commands/Command")
local CommandRuntime = require("@src/core/commands/CommandRuntime")
local Log = require("@src/core/Log")
local Trove = require("@pkgs/Trove")
local function createCommandRuntime(trove: Trove.Trove, command: Command.Command): CommandRuntime.CommandRuntime
return se... | 120 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/core/constructors/createCoreExtension.luau | luau | .luau | local Extension = require("@src/core/Extension")
local createExtension = require("./createExtension")
local plugin = require("@src/plugin")
local types = require("@src/types")
local function createCoreExtension(interface: types.ExtensionInterface): Extension.Extension
return createExtension(plugin, interface)
end
re... | 63 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/core/constructors/createExtension.luau | luau | .luau | local Extension = require("@src/core/Extension")
local atoms = require("@src/utils/atoms")
local types = require("@src/types")
local function createExtension(plugin: Plugin, interface: types.ExtensionInterface): Extension.Extension
types.ExtensionInterface:assert(interface)
if Extension._extensionsById()[interface.i... | 161 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/core/constructors/init.luau | luau | .luau | -- Constructors are separate from the classes as to disallow the end-user from
-- constructing their own instances.
return table.freeze({
createCommand = require("@self/createCommand"),
createCommandRuntime = require("@self/createCommandRuntime"),
createCoreExtension = require("@self/createCoreExtension"),
createE... | 67 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/core/hooks/useKeys.luau | luau | .luau | local UserInputService = game:GetService("UserInputService")
local KEY_CODES = Enum.KeyCode:GetEnumItems()
local function getKeysDown()
local result = {}
for _, keyCode in KEY_CODES do
result[keyCode] = UserInputService:IsKeyDown(keyCode)
end
return result
end
local store = {}
store.KEY_CODES = KEY_CODES
store... | 251 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/init.server.luau | luau | .luau | local plugin = require("@self/plugin")
if not plugin then
error("Rocket must be run as a plugin!")
end
local CoreGui = game:GetService("CoreGui")
local LogService = game:GetService("LogService")
local Charm = require("@pkgs/Charm")
local Command = require("@src/core/commands/Command")
local CommandRuntime = require(... | 1,621 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/launcher/LauncherStore.luau | luau | .luau | local Charm = require("@pkgs/Charm")
local Command = require("@src/core/commands/Command")
local Extension = require("@src/core/Extension")
local fzy = require("@include/fzy")
local LauncherStore = {}
LauncherStore.isVisible = Charm.atom(false)
LauncherStore.isFocused = Charm.atom(false)
LauncherStore.selectedIndex = ... | 441 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/launcher/LauncherWindow.luau | luau | .luau | local Workspace = game:GetService("Workspace")
local Command = require("@src/core/commands/Command")
local Iris = require("@src/Iris")
local LauncherStore = require("./LauncherStore")
local runCommand = require("@src/core/commands/runCommand")
local useKeys = require("@src/core/hooks/useKeys")
local widgets = require(... | 581 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.