repo
stringclasses
350 values
file_path
stringlengths
29
200
language
stringclasses
2 values
file_type
stringclasses
4 values
code
stringlengths
2
1.01M
tokens
int64
2
598k
anywaymachines/overengineered
anywaymachines-overengineered-d872be4/src/shared/blocks/blocks/grouped/ProximityBlocks.ts
roblox-ts
.ts
import { RunService } from "@rbxts/services"; import { ArgsSignal } from "engine/shared/event/Signal"; import { InstanceBlockLogic } from "shared/blockLogic/BlockLogic"; import { BlockCreation } from "shared/blocks/BlockCreation"; import { BlockManager } from "shared/building/BlockManager"; import type { BlockLogicFull...
1,783
anywaymachines/overengineered
anywaymachines-overengineered-d872be4/src/shared/blocks/blocks/grouped/WingsBlocks.ts
roblox-ts
.ts
import { RunService, Workspace } from "@rbxts/services"; import { InstanceBlockLogic } from "shared/blockLogic/BlockLogic"; import { BlockCreation } from "shared/blocks/BlockCreation"; import { GameDefinitions } from "shared/data/GameDefinitions"; import { GameEnvironment } from "shared/data/GameEnvironment"; import ty...
1,972
anywaymachines/overengineered
anywaymachines-overengineered-d872be4/src/shared/blocks/blocks/gui/GuiButtonBlock.ts
roblox-ts
.ts
import { RunService } from "@rbxts/services"; import { Colors } from "engine/shared/Colors"; import { Component } from "engine/shared/component/Component"; import { Element } from "engine/shared/Element"; import { BlockLogic } from "shared/blockLogic/BlockLogic"; import { BlockConfigDefinitions } from "shared/blocks/Bl...
1,907
anywaymachines/overengineered
anywaymachines-overengineered-d872be4/src/shared/blocks/blocks/gui/GuiImageBlock.ts
roblox-ts
.ts
import { RunService } from "@rbxts/services"; import { Colors } from "engine/shared/Colors"; import { Component } from "engine/shared/component/Component"; import { Element } from "engine/shared/Element"; import { BlockLogic } from "shared/blockLogic/BlockLogic"; import { BlockCreation } from "shared/blocks/BlockCreati...
1,519
anywaymachines/overengineered
anywaymachines-overengineered-d872be4/src/shared/blocks/blocks/gui/GuiStatBlock.ts
roblox-ts
.ts
import { RunService } from "@rbxts/services"; import { BlockLogic } from "shared/blockLogic/BlockLogic"; import { BlockCreation } from "shared/blocks/BlockCreation"; import { dataToString } from "shared/blocks/blocks/ScreenBlock"; import type { RideMode } from "client/modes/ride/RideMode"; import type { BlockLogicArgs,...
486
anywaymachines/overengineered
anywaymachines-overengineered-d872be4/src/shared/blocks/blocks/gui/GuiTextBlock.ts
roblox-ts
.ts
import { RunService } from "@rbxts/services"; import { Colors } from "engine/shared/Colors"; import { Component } from "engine/shared/component/Component"; import { Element } from "engine/shared/Element"; import { BlockLogic } from "shared/blockLogic/BlockLogic"; import { BlockConfigDefinitions } from "shared/blocks/Bl...
1,866
anywaymachines/overengineered
anywaymachines-overengineered-d872be4/src/shared/building/PlotWelder.ts
roblox-ts
.ts
import { RunService, ServerStorage, Workspace } from "@rbxts/services"; import { Component } from "engine/shared/component/Component"; import { ComponentInstance } from "engine/shared/component/ComponentInstance"; import { Objects } from "engine/shared/fixes/Objects"; import { BlockManager } from "shared/building/Block...
2,237
anywaymachines/overengineered
anywaymachines-overengineered-d872be4/src/shared/building/SharedPlot.ts
roblox-ts
.ts
import { RunService, Workspace } from "@rbxts/services"; import { InstanceComponent } from "engine/shared/component/InstanceComponent"; import { Signal } from "engine/shared/event/Signal"; import { BB } from "engine/shared/fixes/BB"; import { BlockManager } from "shared/building/BlockManager"; const getPlotBuildingReg...
898
anywaymachines/overengineered
anywaymachines-overengineered-d872be4/src/shared/building/SharedPlots.ts
roblox-ts
.ts
import { Workspace } from "@rbxts/services"; import { SharedPlot } from "shared/building/SharedPlot"; const plotsFolder = Workspace.WaitForChild("Plots"); const count = plotsFolder.GetAttribute("count") as number | undefined; if (plotsFolder.GetChildren().size() !== count) { print( `!! Target plot count ${count} i...
663
anywaymachines/overengineered
anywaymachines-overengineered-d872be4/src/shared/effects/ExplosionEffect.ts
roblox-ts
.ts
import { Debris, ReplicatedStorage } from "@rbxts/services"; import { EffectBase } from "shared/effects/EffectBase"; import type { EffectCreator } from "shared/effects/EffectBase"; ReplicatedStorage.WaitForChild("Assets"); type Args = { readonly part: BasePart; readonly index?: number; }; @injectable export class E...
293
anywaymachines/overengineered
anywaymachines-overengineered-d872be4/src/shared/effects/FireEffect.ts
roblox-ts
.ts
import { Debris, ReplicatedStorage } from "@rbxts/services"; import { EffectBase } from "shared/effects/EffectBase"; import type { EffectCreator } from "shared/effects/EffectBase"; type Args = { readonly part: BasePart; readonly duration?: number; }; @injectable export class FireEffect extends EffectBase<Args> { co...
221
anywaymachines/overengineered
anywaymachines-overengineered-d872be4/src/shared/effects/ImpactSoundEffect.ts
roblox-ts
.ts
import { Debris, ReplicatedStorage, Workspace } from "@rbxts/services"; import { EffectBase } from "shared/effects/EffectBase"; import { Sound } from "shared/Sound"; import type { EffectCreator } from "shared/effects/EffectBase"; ReplicatedStorage.WaitForChild("Assets"); type Args = { readonly blocks: readonly BaseP...
400
anywaymachines/overengineered
anywaymachines-overengineered-d872be4/src/shared/effects/SparksEffect.ts
roblox-ts
.ts
import { Debris, ReplicatedStorage } from "@rbxts/services"; import { EffectBase } from "shared/effects/EffectBase"; import type { EffectCreator } from "shared/effects/EffectBase"; type Args = { readonly part: BasePart; }; @injectable export class SparksEffect extends EffectBase<Args> { constructor(@inject creator: ...
152
anywaymachines/overengineered
anywaymachines-overengineered-d872be4/src/shared/weaponProjectiles/BaseProjectileLogic.ts
roblox-ts
.ts
import { RunService, Workspace } from "@rbxts/services"; import { InstanceComponent } from "engine/shared/component/InstanceComponent"; import { C2SRemoteEvent } from "engine/shared/event/PERemoteEvent"; import { ReplicatedAssets } from "shared/ReplicatedAssets"; import { ModuleCollection } from "shared/weaponProjectil...
1,474
anywaymachines/overengineered
anywaymachines-overengineered-d872be4/src/shared/weaponProjectiles/LaserProjectileLogic.ts
roblox-ts
.ts
import { Players, Workspace } from "@rbxts/services"; import { C2CRemoteEvent } from "engine/shared/event/PERemoteEvent"; import { WeaponProjectile } from "shared/weaponProjectiles/BaseProjectileLogic"; import type { baseWeaponProjectile, projectileModifier } from "shared/weaponProjectiles/BaseProjectileLogic"; type l...
981
anywaymachines/overengineered
anywaymachines-overengineered-d872be4/src/shared/weaponProjectiles/PlasmaProjectileLogic.ts
roblox-ts
.ts
import { Workspace } from "@rbxts/services"; import { Easing } from "engine/shared/component/Easing"; import { C2CRemoteEvent } from "engine/shared/event/PERemoteEvent"; import { WeaponProjectile } from "shared/weaponProjectiles/BaseProjectileLogic"; import type { modifierValue, projectileModifier } from "shared/weapon...
830
anywaymachines/overengineered
anywaymachines-overengineered-d872be4/src/shared/weaponProjectiles/WeaponModuleSystem.ts
roblox-ts
.ts
import { Workspace } from "@rbxts/services"; import { HostedService } from "engine/shared/di/HostedService"; import { BlockManager } from "shared/building/BlockManager"; import type { SharedPlots } from "shared/building/SharedPlots"; import type { modifierValue, projectileModifier } from "shared/weaponProjectiles/BaseP...
2,683
Roblox/gear
Roblox-gear-28b88df/scripts/build-rojo-project.luau
luau
.luau
local process = require("@lune/process") local buildRojoProject = require("@scripts/lib/roblox/buildRojoProject") local projectPath = process.args[1] local outputPath = process.args[2] buildRojoProject({ projectPath = projectPath, outputPath = outputPath, }) print(`Built to {outputPath} successfully`)
71
Roblox/gear
Roblox-gear-28b88df/scripts/build.luau
luau
.luau
local process = require("@lute/process") process.run({ "rojo", "build", "-o", "gear.rbxl", }, { stdio = "inherit", })
41
Roblox/gear
Roblox-gear-28b88df/scripts/compare-gear.luau
luau
.luau
local process = require("@lute/process") local fs = require("@lute/fs") local cli = require("@luaupkg/batteries/cli") local dotenv = require("@scripts/lib/dotenv") local executeLuauTaskAsync = require("@scripts/lib/luau-execution/executeLuauTaskAsync") local testingPlace = require("@scripts/lib/testingPlace") dotenv(...
428
Roblox/gear
Roblox-gear-28b88df/scripts/deploy.luau
luau
.luau
local fs = require("@lute/fs") local process = require("@lute/process") local cli = require("@luaupkg/batteries/cli") local pp = require("@luaupkg/batteries/pp") local project = require("@root/project") local dotenv = require("@scripts/lib/dotenv") local args = cli.parser() args:add("projectPath", "option", { help ...
523
Roblox/gear
Roblox-gear-28b88df/scripts/gearDumpCoverage.test.luau
luau
.luau
local fs = require("@lute/fs") local test = require("@std/test") local testTypes = require("@std/test/types") local CatalogFallbacks = require("@root/src/CatalogFallbacks") :: { [string]: string? } local MissingGear = require("@root/src/MissingGear") :: { [string]: string? } local GearMap = require("@root/src/GearMap"...
1,039
Roblox/gear
Roblox-gear-28b88df/scripts/lib/dotenv.luau
luau
.luau
local fs = require("@lute/fs") local process = require("@lute/process") local DOTENV_FILE_NAME = ".env" local function dotenv() local current = process.cwd() local env: { [string]: string } = {} for _, file in fs.listdir(current) do local filePath = `{current}/{file.name}` if file.name == DOTENV_FILE_NAME the...
201
Roblox/gear
Roblox-gear-28b88df/scripts/lib/downloadPinned.luau
luau
.luau
local process = require("@lute/process") local function parseSha256(stdout: string): string local hash = string.lower(stdout):match("=%s*(%x+)") if hash == nil or #hash ~= 64 then error(`could not parse sha256: {stdout}`) end return hash end local function fileSha256(path: string): string local result = proces...
284
Roblox/gear
Roblox-gear-28b88df/scripts/lib/downloadPinned.test.luau
luau
.luau
local test = require("@std/test") local testTypes = require("@std/test/types") local downloadPinned = require("@scripts/lib/downloadPinned") type TestSuite = testTypes.TestSuite type Asserts = testTypes.Asserts test.suite("downloadPinned", function(suite: TestSuite) suite:case("parses openssl SHA2-256 output", func...
378
Roblox/gear
Roblox-gear-28b88df/scripts/lib/fetch.luau
luau
.luau
local json = require("@std/json") local net = require("@lute/net") type HttpMethod = "GET" | "POST" | "PATCH" type ErrorBody = { errors: { { message: string } }?, message: string?, } type FetchOptions = { method: HttpMethod?, headers: { [string]: string }?, body: string?, } local function fetch(url: string, op...
263
Roblox/gear
Roblox-gear-28b88df/scripts/lib/luau-execution/executeLuauTaskAsync.luau
luau
.luau
local json = require("@std/json") local createLuauTaskAsync = require("./createLuauTaskAsync") local getLuauTaskLogsAsync = require("./getLuauTaskLogsAsync") local publishPlaceAsync = require("./publishPlaceAsync") local waitForTaskCompletionAsync = require("./waitForTaskCompletionAsync") local function executeLuauTa...
462
Roblox/gear
Roblox-gear-28b88df/scripts/lib/roblox/assertGearRoot.luau
luau
.luau
--[[ Throw unless the model's root is Gear. Asset IDs sourced from the catalog are not all Gear: some resolve to Hats or Accessories, and dumping one into `src/gear` would quietly put a non-Gear tree in the archive. `HopperBin` is a Class, not a gear name: it was the pre-2012 Gear root, later replaced by `Tool`. ...
258
Roblox/gear
Roblox-gear-28b88df/scripts/lib/roblox/assertGearRoot.test.luau
luau
.luau
local test = require("@std/test") local testTypes = require("@std/test/types") local assertGearRoot = require("@scripts/lib/roblox/assertGearRoot") type TestSuite = testTypes.TestSuite type Asserts = testTypes.Asserts local function model(className: string, name: string) return { ClassName = className, Name = name ...
380
Roblox/gear
Roblox-gear-28b88df/scripts/lib/roblox/assignFilesystemNames.luau
luau
.luau
local ORIGINAL_NAME_ATTRIBUTE = "__MarketplaceGear_OriginalName" local DUPLICATE_SUFFIX = "__" export type Assignment<T> = { instance: T, filesystemName: string, originalName: string?, } local function assignFilesystemNames<T>(instances: { T }, getName: (T) -> string): { Assignment<T> } local counts: { [string]: ...
368
Roblox/gear
Roblox-gear-28b88df/scripts/lib/roblox/assignFilesystemNames.test.luau
luau
.luau
local test = require("@std/test") local testTypes = require("@std/test/types") local assignFilesystemNames = require("@scripts/lib/roblox/assignFilesystemNames") type TestSuite = testTypes.TestSuite type Asserts = testTypes.Asserts local function assign(names: { string }) return assignFilesystemNames.assign(names, ...
529
Roblox/gear
Roblox-gear-28b88df/scripts/lib/roblox/buildRojoProject.luau
luau
.luau
local fs = require("@lune/fs") local process = require("@lune/process") local roblox = require("@lune/roblox") local stripRojoTargetAttributes = require("@scripts/lib/roblox/stripRojoTargetAttributes") local restoreFilesystemNames = require("@scripts/lib/roblox/restoreFilesystemNames") type Instance = roblox.Instance...
732
Roblox/gear
Roblox-gear-28b88df/scripts/lib/roblox/diffProperties.luau
luau
.luau
local roblox = require("@lune/roblox") local serializePropertyModule = require("@scripts/lib/roblox/serializeProperty") local serializeProperty = serializePropertyModule.serializeProperty local reflection = roblox.getReflectionDatabase() type Instance = roblox.Instance local function diffProperties(instance: Instan...
340
Roblox/gear
Roblox-gear-28b88df/scripts/lib/roblox/dumpModel.luau
luau
.luau
local fs = require("@lune/fs") local roblox = require("@lune/roblox") local serde = require("@lune/serde") type Instance = roblox.Instance type RojoDocument = { [string]: any } local project = require("@root/project") local diffProperties = require("@scripts/lib/roblox/diffProperties") local assignFilesystemNames = r...
996
Roblox/gear
Roblox-gear-28b88df/scripts/lib/roblox/getInstancePath.luau
luau
.luau
local roblox = require("@lune/roblox") type Instance = roblox.Instance local PATH_SEPARATOR = "/" local function getInstancePath(instance: Instance, pathSeparator: string?): string local separator = if pathSeparator then pathSeparator else PATH_SEPARATOR local path = {} local current = instance while current a...
103
Roblox/gear
Roblox-gear-28b88df/scripts/lib/roblox/planReferences.luau
luau
.luau
local roblox = require("@lune/roblox") local planReferencesLogic = require("@scripts/lib/roblox/planReferencesLogic") local reflection = roblox.getReflectionDatabase() type Instance = roblox.Instance export type Metadata = planReferencesLogic.Metadata export type Plan = planReferencesLogic.Plan<Instance> local func...
315
Roblox/gear
Roblox-gear-28b88df/scripts/lib/roblox/planReferencesLogic.luau
luau
.luau
export type Reference<T> = { source: T, propertyName: string, target: T, } export type Metadata = { id: string?, attributes: { [string]: string }, } export type Plan<T> = { getMetadata: (instance: T) -> Metadata, referenceCount: number, } type ResolvedReference = { sourceIndex: number, propertyName: string,...
517
Roblox/gear
Roblox-gear-28b88df/scripts/lib/roblox/planReferencesLogic.test.luau
luau
.luau
local test = require("@std/test") local testTypes = require("@std/test/types") local planReferences = require("@scripts/lib/roblox/planReferencesLogic") type TestSuite = testTypes.TestSuite type Asserts = testTypes.Asserts local function node(name: string) return { name = name } end test.suite("planReferencesLogic...
1,054
Roblox/gear
Roblox-gear-28b88df/scripts/lib/roblox/restoreFilesystemNames.luau
luau
.luau
local roblox = require("@lune/roblox") local assignFilesystemNames = require("@scripts/lib/roblox/assignFilesystemNames") local restoreFilesystemNamesLogic = require("@scripts/lib/roblox/restoreFilesystemNamesLogic") type Instance = roblox.Instance local ORIGINAL_NAME_ATTRIBUTE = assignFilesystemNames.ORIGINAL_NAME_...
347
Roblox/gear
Roblox-gear-28b88df/scripts/lib/roblox/restoreFilesystemNamesLogic.luau
luau
.luau
local assignFilesystemNames = require("@scripts/lib/roblox/assignFilesystemNames") local DUPLICATE_SUFFIX = assignFilesystemNames.DUPLICATE_SUFFIX export type Adapter<T> = { getChildren: (T) -> { T }, getName: (T) -> string, setName: (T, string) -> (), getOriginalName: (T) -> string?, clearOriginalName: (T) -> (...
494
Roblox/gear
Roblox-gear-28b88df/scripts/lib/roblox/restoreFilesystemNamesLogic.test.luau
luau
.luau
local test = require("@std/test") local testTypes = require("@std/test/types") local restoreFilesystemNames = require("@scripts/lib/roblox/restoreFilesystemNamesLogic") type TestSuite = testTypes.TestSuite type Asserts = testTypes.Asserts type Node = { id: string, name: string, originalName: string?, children: {...
1,274
Roblox/gear
Roblox-gear-28b88df/scripts/lib/roblox/serializeProperty.luau
luau
.luau
--[[ Serialize a Roblox property value to its Rojo project-file form, keyed on the canonical reflection `Datatype` (e.g. `Vector3`, `Enum.Material`). See https://rojo.space/docs/v7/properties/ for the format reference. Returns: (value, "ok") - serialized (nil, "skipped") - intentionally not seri...
2,033
Roblox/gear
Roblox-gear-28b88df/scripts/lib/roblox/serializeProperty.test.luau
luau
.luau
-- Tests for `serializeProperty.luau`. Run via `lute test`. -- -- Roblox datatypes are mocked as plain Luau tables matching the shape -- the serializer reads (e.g. `{X, Y, Z}` for Vector3). The serializer -- never introspects userdata identity, so this is faithful coverage -- without dragging in `@lune/roblox`. local ...
3,603
Roblox/gear
Roblox-gear-28b88df/scripts/lib/roblox/stripRojoTargetAttributes.luau
luau
.luau
--[[ Walk a built `Instance` tree and remove every attribute whose name starts with `Rojo_Target_`. Dumped files use these attributes to wire `Ref`-typed properties (e.g. Weld.Part0) across filesystem entries. Rojo resolves them at build time but leaves the source attributes on the instance, where they would other...
282
Roblox/gear
Roblox-gear-28b88df/scripts/lib/roblox/stripRojoTargetAttributes.test.luau
luau
.luau
local test = require("@std/test") local testTypes = require("@std/test/types") local stripRojoTargetAttributes = require("@scripts/lib/roblox/stripRojoTargetAttributes") type TestSuite = testTypes.TestSuite type Asserts = testTypes.Asserts type Node = { attributes: { [string]: any }, children: { Node }, GetAttrib...
571
Roblox/gear
Roblox-gear-28b88df/scripts/lib/run.luau
luau
.luau
local process = require("@lute/process") local richterm = require("@luaupkg/batteries/richterm") type Options = { cwd: string?, env: { [string]: string }?, stdio: any, } local function run(program: string, params: { string }, options: Options?): string local command = `{program} {table.concat(params, " ")}` pr...
195
Roblox/gear
Roblox-gear-28b88df/scripts/lib/testingPlace.luau
luau
.luau
local process = require("@lute/process") local function requireEnv(name: string): string local value = process.env[name] if typeof(value) == "string" and value ~= "" then return value end error(`{name} must be set via a repo secret, CI env, or a local .env file`) end local function universeId(): string return ...
136
Roblox/gear
Roblox-gear-28b88df/scripts/lint.luau
luau
.luau
local process = require("@lute/process") local project = require("@root/project") local run = require("@scripts/lib/run") -- `src/gear` is excluded via selene.toml / .styluaignore: dumped catalog -- scripts are not ours to restyle or lint yet. local FOLDERS_TO_LINT = { project.SOURCE_PATH, project.SCRIPTS_PATH, pr...
180
Roblox/gear
Roblox-gear-28b88df/scripts/model-to-rojo.luau
luau
.luau
local fs = require("@lune/fs") local process = require("@lune/process") local roblox = require("@lune/roblox") local project = require("@root/project") local assertGearRoot = require("@scripts/lib/roblox/assertGearRoot") local dumpModel = require("@scripts/lib/roblox/dumpModel") -- All arguments to this script are pa...
261
Roblox/gear
Roblox-gear-28b88df/scripts/tasks/run-gear-comparison.luau
luau
.luau
--!nonstrict local ReplicatedStorage = game:GetService("ReplicatedStorage") local getUploadedAssetForComparison = require(ReplicatedStorage.Src.getUploadedAssetForComparison) local compareGear = require(ReplicatedStorage.Src.compareGear) local ObjectStatus = require(ReplicatedStorage.Src.ObjectStatus) local GearMap = ...
603
Roblox/gear
Roblox-gear-28b88df/scripts/tasks/run-tests.luau
luau
.luau
--!nonstrict local ReplicatedStorage = game:GetService("ReplicatedStorage") local Jest = (require :: any)(ReplicatedStorage.Packages.Jest) local root = ReplicatedStorage.Src local status, result = Jest.runCLI(root, { verbose = false, ci = false, }, { root }):awaitStatus() if status == "Rejected" then print(resu...
120
Roblox/gear
Roblox-gear-28b88df/scripts/test.luau
luau
.luau
local cli = require("@luaupkg/batteries/cli") local fs = require("@lute/fs") local process = require("@lute/process") local executeLuauTaskAsync = require("@scripts/lib/luau-execution/executeLuauTaskAsync") local dotenv = require("@scripts/lib/dotenv") local testingPlace = require("@scripts/lib/testingPlace") dotenv(...
334
Roblox/gear
Roblox-gear-28b88df/scripts/verifyGearMap.luau
luau
.luau
local fs = require("@lune/fs") local roblox = require("@lune/roblox") local GearMap = require("@root/src/GearMap") :: { [string]: string? } local project = require("@root/project") local mismatches = {} for _, fileName in fs.readDir(project.RAW_GEAR_ASSETS_PATH) do local assetId = fileName:match("^(%d+)%.rbxm$") i...
230
Roblox/gear
Roblox-gear-28b88df/scripts/xml-to-binary-roblox.luau
luau
.luau
-- These internal services exist in the robloxdev-cli environment that runs this -- script, but are absent from both Selene's standard library and the public -- API dump used for analysis. -- selene: allow(incorrect_standard_library_use) local FileSystemService = game:GetService("FileSystemService") :: any -- selene: a...
169
Roblox/gear
Roblox-gear-28b88df/scripts/xml-to-binary.luau
luau
.luau
local fs = require("@lute/fs") local project = require("@root/project") local INPUT_DIR = project.RAW_GEAR_ASSETS_PATH local OUTPUT_DIR = "gear" local diff: { string } = {} for _, file in fs.listdir(INPUT_DIR) do local hasMatch = false for _, other in fs.listdir(OUTPUT_DIR) do if file.name == other.name then ...
152
Roblox/gear
Roblox-gear-28b88df/site/catalogStore.luau
luau
.luau
local fs = require("@lune/fs") local serde = require("@lune/serde") local catalogApi = require("@root/site/catalogApi") type JsonObject = catalogApi.JsonObject export type StoredItem = { id: number, name: string?, description: string?, creator: string?, created: string?, price: number?, priceStatus: string?, ...
912
Roblox/gear
Roblox-gear-28b88df/site/generate.luau
luau
.luau
local fs = require("@lune/fs") local process = require("@lune/process") local serde = require("@lune/serde") local CatalogFallbacks = require("@root/src/CatalogFallbacks") local GearMap = require("@root/src/GearMap") local catalogStore = require("@root/site/catalogStore") local pages = require("@root/site/pages") loca...
2,034
Roblox/gear
Roblox-gear-28b88df/src/CatalogFallbacks.luau
luau
.luau
-- Catalog names for delayed-release items the API omits. return { ["361950562"] = "2/13 - Dominus Sword", ["583634140"] = "12/23 - Orbital Violin: Deep Freeze", ["754910297"] = "Noble Knight Sword", ["754930870"] = "Black Knight Sword", ["858743383"] = "6/9 - Robo Attack Sheetah", ["1180416995"] = "Neon Space Cu...
182
Roblox/gear
Roblox-gear-28b88df/src/MissingGear.luau
luau
.luau
-- Every AllGear asset that does not currently have a raw RBXM or source dump. -- Keep entries here until the asset is recovered or proven not to be gear. return { -- Cataloged as Gear, but every available version is a Hat. ["23307906"] = "hat-payload", -- Cataloged as Gear, but every available version is an Access...
461
Roblox/gear
Roblox-gear-28b88df/src/ObjectStatus.luau
luau
.luau
export type ObjectStatus = "ADDED" | "MODIFIED" | "REMOVED" local ObjectStatus = { ADDED = "ADDED" :: "ADDED", MODIFIED = "MODIFIED" :: "MODIFIED", REMOVED = "REMOVED" :: "REMOVED", } return ObjectStatus
67
Roblox/gear
Roblox-gear-28b88df/src/gear/1001541309/src/LocalScript/BookGui/LocalScript.client.luau
luau
.luau
--Made by Luckymaxer ContentProvider = game:GetService("ContentProvider") Gui = script.Parent Frame = Gui:WaitForChild("Frame") Next = Frame:WaitForChild("Next") Pages = {} CurrentPage = 1 for i, v in pairs(Frame:GetChildren()) do if ((v:IsA("ImageButton") or v:IsA("ImageLabel")) and tonumber(v.Name)) then tabl...
250
Roblox/gear
Roblox-gear-28b88df/src/gear/1001541309/src/LocalScript/init.client.luau
luau
.luau
--Made by Luckymaxer Tool = script.Parent Handle = Tool:WaitForChild("Handle") Players = game:GetService("Players") Debris = game:GetService("Debris") InsertService = game:GetService("InsertService") BookGui = script:WaitForChild("BookGui") ToolEquipped = false function CheckIfAlive() return (((Character and Char...
306
Roblox/gear
Roblox-gear-28b88df/src/gear/1001649855/src/LocalScript.client.luau
luau
.luau
Tool = script.Parent Handle = Tool:WaitForChild("Handle") Players = game:GetService("Players") RunService = game:GetService("RunService") UserInputService = game:GetService("UserInputService") Animations = {} LocalObjects = {} Remotes = Tool:WaitForChild("Remotes") ServerControl = Remotes:WaitForChild("ServerControl...
1,142
Roblox/gear
Roblox-gear-28b88df/src/gear/1001649855/src/MouseIcon.client.luau
luau
.luau
Mouse_Icon = "rbxasset://textures/GunCursor.png" Reloading_Icon = "rbxasset://textures/GunWaitCursor.png" Tool = script.Parent Mouse = nil function UpdateIcon() if Mouse then Mouse.Icon = Tool.Enabled and Mouse_Icon or Reloading_Icon end end function OnEquipped(ToolMouse) Mouse = ToolMouse UpdateIcon() end T...
114
Roblox/gear
Roblox-gear-28b88df/src/gear/1001649855/src/Script.server.luau
luau
.luau
Tool = script.Parent Handle = Tool:WaitForChild("Handle") Players = game:GetService("Players") Debris = game:GetService("Debris") BaseUrl = "http://www.roblox.com/asset/?id=" local function Create_PrivImpl(objectType) if type(objectType) ~= 'string' then error("Argument of Create must be a string", 2) end --ret...
1,599
Roblox/gear
Roblox-gear-28b88df/src/gear/1001653705/src/Assets.luau
luau
.luau
BaseUrl = "http://www.roblox.com/asset/?id=" local function Create_PrivImpl(objectType) if type(objectType) ~= 'string' then error("Argument of Create must be a string", 2) end --return the proxy function that gives us the nice Create'string'{data} syntax --The first function call is a function call using Lua's ...
2,356
Roblox/gear
Roblox-gear-28b88df/src/gear/1001653705/src/LocalScript.client.luau
luau
.luau
Tool = script.Parent Handle = Tool:WaitForChild("Handle") Players = game:GetService("Players") RunService = game:GetService("RunService") Camera = game:GetService("Workspace").CurrentCamera Animations = {} LocalObjects = {} ServerControl = Tool:WaitForChild("ServerControl") ClientControl = Tool:WaitForChild("Client...
1,103
Roblox/gear
Roblox-gear-28b88df/src/gear/1001653705/src/Script.server.luau
luau
.luau
Tool = script.Parent Handle = Tool:WaitForChild("Handle") Players = game:GetService("Players") Debris = game:GetService("Debris") Assets = require(Tool:WaitForChild("Assets")) Data = Assets.Data BaseUrl = Assets.BaseUrl BasePart = Instance.new("Part") BasePart.Material = Enum.Material.Plastic BasePart.Shape = Enum....
4,287
Roblox/gear
Roblox-gear-28b88df/src/gear/100469994/src/Local Script.client.luau
luau
.luau
--Stickmasterluke local sp=script.Parent local sword=sp.Handle damage=9 anims={"RightSlash","LeftSlash","OverHeadSwing"} rate=1/30 equipped=false check=true lastanim="" pauldrons={} function swordUp() sp.Grip=CFrame.new(0,-1,0) end function swordOut() sp.Grip=CFrame.new(0,-1,0)*CFram...
1,289
Roblox/gear
Roblox-gear-28b88df/src/gear/100469994/src/Pauldrons/Script.server.luau
luau
.luau
script.Parent:remove()
6
Roblox/gear
Roblox-gear-28b88df/src/gear/100472063/src/LocalScript/Script.server.luau
luau
.luau
--Stickmasterluke sp=script.Parent damage=40 local creator=sp:FindFirstChild("creator") local debris=game:GetService("Debris") sp.Touched:connect(function(hit) if hit~=nil and hit.Parent~=nil then local h=hit.Parent:FindFirstChild("Humanoid") local ct=sp:FindFirstChild("creator") if h~=nil a...
180
Roblox/gear
Roblox-gear-28b88df/src/gear/100472063/src/LocalScript/init.client.luau
luau
.luau
--Made by Stickmasterluke sp=script.Parent cooldown=4 power=74 rate=1/30 local debris=game:GetService("Debris") equipped=false check=true function waitfor(a,b) while a:FindFirstChild(b)==nil do wait() end return a:FindFirstChild(b) end lastuse=waitfor(sp,"LastUse") function onEquipped(...
663
Roblox/gear
Roblox-gear-28b88df/src/gear/100472084/src/Failsafe/init.server.luau
luau
.luau
while not script:FindFirstChild("Humanoid") do script.ChildAdded:wait() end script.Humanoid.Value.Died:connect(function() script.Model.Value:Destroy() end)
39
Roblox/gear
Roblox-gear-28b88df/src/gear/100472084/src/SpotWeld_Main/Emitter.server.luau
luau
.luau
local Particle = Instance.new('Part') Particle.Name = 'Effect' Particle.Size = Vector3.new(.2,.2,.2) Particle.CanCollide = false Particle.Transparency = 1 local PartMesh = Instance.new('SpecialMesh') PartMesh.Name = 'PartMesh' PartMesh.MeshId = 'http://www.roblox.com/asset/?id=87112830'--'http://www.roblox.com/asset/?i...
698
Roblox/gear
Roblox-gear-28b88df/src/gear/101078326/src/Client/Script.server.luau
luau
.luau
--Stickmasterluke sp=script.Parent damage=5 wait(.05) local weld=sp:FindFirstChild("Weld") if weld~=nil then if weld.Part0~=nil then hit=weld.Part0 local sound=sp:FindFirstChild("Sound") if sound~=nil then sound:Play() end local ct=sp:FindFirstChild("creator") if ct.Value and ct.Value.Character the...
207
Roblox/gear
Roblox-gear-28b88df/src/gear/101078326/src/Client/init.client.luau
luau
.luau
local Tool = script.Parent local MouseLoc = Tool:WaitForChild("MouseLoc") function MouseLoc.OnClientInvoke() return game:GetService("Players").LocalPlayer:GetMouse().Hit.p end
42
Roblox/gear
Roblox-gear-28b88df/src/gear/101078326/src/Server.server.luau
luau
.luau
--Rescripted by TakeoHonorable local Tool = script.Parent Tool.Enabled = true local Handle = Tool:WaitForChild("Handle") local FirePoint = Handle:WaitForChild("Tip") local MouseLoc = Tool:WaitForChild("MouseLoc") local Properties = { Damage = 5, Range = 300, Power = 300, MouseDown = false, FireTime = 0, Fir...
1,776
Roblox/gear
Roblox-gear-28b88df/src/gear/101078350/src/SandwichScript.server.luau
luau
.luau
--Stickmasterluke was here last. ;D mMMmmm local Tool = script.Parent; enabled = true extra=100 function onActivated() if not enabled then return end enabled = false Tool.GripForward = Vector3.new(0.675, -0.675, -0.3) Tool.GripPos = Vector3.new(0.4, -0.59, 1.1) Tool.GripRight = Vector3...
327
Roblox/gear
Roblox-gear-28b88df/src/gear/101078524/src/AnimateScript.client.luau
luau
.luau
local Tool = script.Parent local Bow = Tool.Handle local vCharacter local walkAnim local arrowAnim local spamArrow local co local debounce = false function onKeyDown(key) if key:lower() == "q" then if debounce == false then spamArrow = Tool:FindFirstChild("SpamArrow") if spamArrow then ...
394
Roblox/gear
Roblox-gear-28b88df/src/gear/101078524/src/BowScript.server.luau
luau
.luau
local Tool = script.Parent local Bow = Tool.Handle local vCharacter local quiver local quiverWeld local arrows = {} local debris = game:GetService("Debris") Tool.Enabled = true arrow = Instance.new("Part") arrow.FormFactor = 3 arrow.Shape = "Block" arrow.Size = Vector3.new(3.0, 0.5, 0.5) arrow.CanCollide = false ...
1,660
Roblox/gear
Roblox-gear-28b88df/src/gear/101078524/src/Local Gui.client.luau
luau
.luau
Tool = script.Parent local stillEquipped = false function onEquippedLocal(mouse) stillEquipped = true if mouse == nil then print("Mouse not found") return end while stillEquipped do print("Setting Mouse to go") mouse.Icon = "rbxasset://textures\\GunCursor.png" while Tool.Enabled and still...
182
Roblox/gear
Roblox-gear-28b88df/src/gear/101078524/src/OnTouchScript/ColdScript.server.luau
luau
.luau
vCharacter = script.Parent myHumanoid = vCharacter:FindFirstChild("Humanoid") myTorso = vCharacter:FindFirstChild("Torso") local count = 5 while myHumanoid and count > 0 do myHumanoid:TakeDamage(7) myHumanoid.WalkSpeed = myHumanoid.WalkSpeed - 8.0 count = count - 1 wait(1.0) end if (myHumanoid...
192
Roblox/gear
Roblox-gear-28b88df/src/gear/101078524/src/OnTouchScript/init.server.luau
luau
.luau
local arrow = script.Parent local damage = 50 function onTouch(hit) if hit.Parent then vChar = hit.Parent humanoid = vChar:FindFirstChild("Humanoid") if humanoid ~= nil then tag = arrow:FindFirstChild("creator") if tag then tag.Parent = humanoid end if hit.Name == "Head" then damage...
175
Roblox/gear
Roblox-gear-28b88df/src/gear/101078559/src/Handle/PhoenixScript.server.luau
luau
.luau
--Phoenix settings are here local Aggressive = true --Phoenix will attack enemies local SmallDamage = 15 local LargeDamage = 25 --Does more damage while tool is equipped local AttackRange = 40 local ShortReload = 2.5 --Shoots faster if given an assigned area to move to local LongReload = 4 local EquipReloadBonus = -1.2...
2,646
Roblox/gear
Roblox-gear-28b88df/src/gear/101078559/src/Local Gui.client.luau
luau
.luau
Tool = script.Parent local stillEquipped = false function onEquippedLocal(mouse) stillEquipped = true if mouse == nil then print("Mouse not found") return end while stillEquipped do print("Setting Mouse to go") mouse.Icon = "rbxasset://...
197
Roblox/gear
Roblox-gear-28b88df/src/gear/101078559/src/ToolScript.server.luau
luau
.luau
local PhoenixDuration = 5*60 function WaitForChild(parent, child) local result = parent:FindFirstChild(child) delay(3, function() if not result then print("Probably Stuck", child) end end) while not result do parent.ChildAdded:wait() result = parent:FindFirstChild(child) end return result end function WaitFo...
1,195
Roblox/gear
Roblox-gear-28b88df/src/gear/101078911/src/FootballScript.client.luau
luau
.luau
function WaitForChild(parent, child) while not parent:FindFirstChild(child) do parent.ChildAdded:wait() end return parent[child] end local Tool = script.Parent local Handle = WaitForChild(Tool, "Handle") local Spike = WaitForChild(Tool, "spike") local Dance = WaitForChild(Tool, "dance") local TouchdownSound = WaitF...
474
Roblox/gear
Roblox-gear-28b88df/src/gear/101078953/src/Script/EnergyScript.server.luau
luau
.luau
--Stickmasterluke sp=script.Parent local h=sp:FindFirstChild("Humanoid") local t=sp:FindFirstChild("Torso") if h~=nil and t~=nil and h.Health>0 then local f=Instance.new("Fire") f.Color=Color3.new(1,0,0) f.SecondaryColor=Color3.new(1,1,1) f.Size=3 f.Heat=2 f.Parent=t h.WalkSpeed=32 wait(15) ...
169
Roblox/gear
Roblox-gear-28b88df/src/gear/101078953/src/Script/init.server.luau
luau
.luau
--Stickmasterluke was here last sp=script.Parent enabled = true function onActivated() if not enabled then return end enabled = false sp.GripForward = Vector3.new(0,-.759,-.651) sp.GripPos = Vector3.new(1.5,-.5,.3) sp.GripRight = Vector3.new(1,0,0) sp.GripUp = Vector3.new(0,.651,-.7...
247
Roblox/gear
Roblox-gear-28b88df/src/gear/101079008/src/LocalScript.client.luau
luau
.luau
--Made by Luckymaxer Tool = script.Parent Handle = Tool:WaitForChild("Handle") Players = game:GetService("Players") RemoteControl = Tool:WaitForChild("RemoteControl") ServerControl = RemoteControl:WaitForChild("ServerControl") ClientControl = RemoteControl:WaitForChild("ClientControl") ToolEquipped = false MouseCo...
430
Roblox/gear
Roblox-gear-28b88df/src/gear/101079008/src/MouseIcon.client.luau
luau
.luau
--Made by Luckymaxer Mouse_Icon = "rbxasset://textures/GunCursor.png" Reloading_Icon = "rbxasset://textures/GunWaitCursor.png" Tool = script.Parent Mouse = nil function UpdateIcon() if Mouse then Mouse.Icon = Tool.Enabled and Mouse_Icon or Reloading_Icon end end function OnEquipped(ToolMouse) Mouse = ToolMous...
139
Roblox/gear
Roblox-gear-28b88df/src/gear/101079008/src/Script.server.luau
luau
.luau
--Made by Luckymaxer Tool = script.Parent Handle = Tool:WaitForChild("Handle") Mesh = Handle:WaitForChild("Mesh") Players = game:GetService("Players") Debris = game:GetService("Debris") RemoteControl = Tool:WaitForChild("RemoteControl") ServerControl = (RemoteControl:FindFirstChild("ServerControl") or Instance.new(...
1,459
Roblox/gear
Roblox-gear-28b88df/src/gear/101106419/src/CameraTransmitter.client.luau
luau
.luau
local myCamera = game.Workspace.CurrentCamera while true do wait() script.Parent.TransmitCameraCFrame:FireServer(myCamera.CoordinateFrame) end
33
Roblox/gear
Roblox-gear-28b88df/src/gear/101106419/src/CameraTransmitterReceiver/init.server.luau
luau
.luau
script.Parent.TransmitCameraCFrame.OnServerEvent:connect(function(client, cf) if client.Character == script.Parent.Parent then script.CameraCFrame.Value = cf end end)
39
Roblox/gear
Roblox-gear-28b88df/src/gear/101106419/src/LocalScript.client.luau
luau
.luau
script.Parent.Equipped:connect(function(mouse) mouse.Button1Down:connect(function() script.Parent.Input:FireServer('Mouse1', true, mouse.Hit) end) mouse.Button1Up:connect(function() script.Parent.Input:FireServer('Mouse1', false, mouse.Hit) end) mouse.KeyDown:connect(function(key) script.Parent.Input:FireServer('Key...
108
Roblox/gear
Roblox-gear-28b88df/src/gear/101106419/src/ModifierScript.server.luau
luau
.luau
--this script modifies this weapon depending on if you have the according gamepass local function WaitForChild(parent, childName) assert(parent, "ERROR: WaitForChild: parent is nil") while not parent:FindFirstChild(childName) do wait() end return parent[childName] end local Tool=script.Parent local Player=Tool.Par...
561
Roblox/gear
Roblox-gear-28b88df/src/gear/101106419/src/MouseIcon.client.luau
luau
.luau
local MOUSE_ICON = 'rbxasset://textures/GunCursor.png' local RELOADING_ICON = 'rbxasset://textures/GunWaitCursor.png' local Tool = script.Parent local Mouse = nil local function UpdateIcon() Mouse.Icon = Tool.Enabled and MOUSE_ICON or RELOADING_ICON end local function OnEquipped(mouse) Mouse = mouse UpdateIcon()...
125
Roblox/gear
Roblox-gear-28b88df/src/gear/101106419/src/PitchScript.server.luau
luau
.luau
----------------- --| Constants |-- ----------------- local BASE_COOLDOWN = 1 -- Seconds until tool can be used again local THROW_FORCE = 75 local THROW_ANGLE = 1.30899694 --75 degrees...ish local THRUST_SPEED = 100 local BASE_DAMAGE = 45 -------------------- --| WaitForChild |-- -------------------- -- Returns the ...
1,852
Roblox/gear
Roblox-gear-28b88df/src/gear/101106464/src/BottleRocketScript/RocketMineScript.server.luau
luau
.luau
----------------- --| Constants |-- ----------------- local BLAST_RADIUS = 4.3 local BLAST_PRESSURE = 0 local MAX_DMG = 42 -- Rocket will fly through things named these local ROCKET_IGNORE_LIST = {rocket = 1, handle = 1, effect = 1, water = 1} --NOTE: Keys must be lowercase, values must evaluate to true ROCKET_IGNOR...
1,264
Roblox/gear
Roblox-gear-28b88df/src/gear/101106464/src/BottleRocketScript/init.client.luau
luau
.luau
-- Made By SolarCrane -- Not sure if we want to get content url from roblox function? local ICON_URL = 'http://www.roblox.com/asset/?id=100856058' local BOTTLE_MESH_URL = 'http://www.roblox.com/asset/?id=100856357' --local ROCKET_MESH_URL = 'http://www.roblox.com/asset/?id=100856397' local ROCKET_MESH_URL = 'http://w...
4,057