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
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/lune/wally-install.luau
luau
.luau
--!strict local fs = require("@lune/fs") local run = require("@utils/run") run("wally", { "install" }) for _, folderName in { "Packages", "DevPackages", "ServerPackages" } do if not fs.isDir(folderName) then fs.writeDir(folderName) end end run("rojo", { "sourcemap", "develop.project.json", "-o", "sourcemap.json"...
158
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Assets.luau
luau
.luau
-- This file is automatically @generated by Asphalt. -- It is not intended for manual editing. local Assets = { ArrowsSpriteSheet = "rbxassetid://116456051784448", SliderArrow = "rbxassetid://103002431457407", scroll = { ["scroll-bottom"] = "rbxassetid://109542199923668", ["scroll-middle"] = "rbxassetid://123756...
122
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/ColorPicker/ColorPicker.story.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local CreateStory = require(uiRoot.Stories.CreateStory) local pkgs = uiRoot.Parent.Parent local StudioComponents = require(pkgs.StudioComponents) local ReactRoblox = require(pkgs.ReactRoblox) local React = require(pkgs.React) local ColorPicker = require(script....
374
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/ColorPicker/ColorSwatches.luau
luau
.luau
local pkgs = script:FindFirstAncestor("UserInterface").Parent.Parent local StudioComponents = require(pkgs.StudioComponents) local React = require(pkgs.React) export type Props = { AnchorPoint: Vector2?, Position: UDim2?, Size: UDim2?, Colors: { Color3 }, OnActivated: (Color3) -> ()?, Disabled: boolean?, } lo...
627
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/ColorPicker/DefaultColors.luau
luau
.luau
return { Color3.fromHex("#000000"), Color3.fromHex("#910000"), Color3.fromHex("#005100"), Color3.fromHex("#A46513"), Color3.fromHex("#00A600"), Color3.fromHex("#A8B100"), Color3.fromHex("#00FF00"), Color3.fromHex("#B7FF00"), Color3.fromHex("#000084"), Color3.fromHex("#A2007C"), Color3.fromHex("#005D84"), Co...
433
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/ColorPicker/HSVPicker/HueSaturationPicker.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local useMouseDrag = require(uiRoot.Hooks.useMouseDrag) local pkgs = uiRoot.Parent.Parent local StudioComponents = require(pkgs.StudioComponents) local React = require(pkgs.React) export type Props = { AnchorPoint: Vector2?, Position: UDim2?, Size: UDim2?, ...
1,206
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/ColorPicker/HSVPicker/ValuePicker.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local useMouseDrag = require(uiRoot.Hooks.useMouseDrag) local Assets = require(uiRoot.Assets) local pkgs = uiRoot.Parent.Parent local StudioComponents = require(pkgs.StudioComponents) local React = require(pkgs.React) export type Props = { AnchorPoint: Vector2...
674
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/ColorPicker/HSVPicker/init.luau
luau
.luau
local pkgs = script:FindFirstAncestor("UserInterface").Parent.Parent local React = require(pkgs.React) local HueSaturationPicker = require(script.HueSaturationPicker) local ValuePicker = require(script.ValuePicker) export type Props = { AnchorPoint: Vector2?, Position: UDim2?, Size: UDim2?, HSV: { number }, Set...
363
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/ColorPicker/TextInputs/HexInput.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local InputBox = require(uiRoot.Components.Properties.Foundational.InputBox) local pkgs = uiRoot.Parent.Parent local StudioComponents = require(pkgs.StudioComponents) local React = require(pkgs.React) export type Props = { AnchorPoint: Vector2?, Position: UDi...
958
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/ColorPicker/TextInputs/NumberInput.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local Constants = require(uiRoot.Components.Properties.Foundational.Constants) local NumberBox = require(uiRoot.Components.Properties.Foundational.NumberBox) local pkgs = uiRoot.Parent.Parent local StudioComponents = require(pkgs.StudioComponents) local React = ...
633
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/ColorPicker/TextInputs/init.luau
luau
.luau
local pkgs = script:FindFirstAncestor("UserInterface").Parent.Parent local React = require(pkgs.React) local NumberInput = require(script.NumberInput) local HexInput = require(script.HexInput) local HIGHLIGHT_ON_FOCUS = true export type Props = { AnchorPoint: Vector2?, Position: UDim2?, Size: UDim2?, HSV: { num...
1,374
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/ColorPicker/init.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local Observables = require(uiRoot.Observables) local pkgs = uiRoot.Parent.Parent local StudioComponents = require(pkgs.StudioComponents) local React = require(pkgs.React) local DefaultColors = require(script.DefaultColors) local ColorSwatches = require(script....
2,161
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Foundational/Constants.luau
luau
.luau
return { LineHeight = 22, }
10
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Foundational/InputBox.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local Constants = require(script.Parent.Constants) local Assets = require(uiRoot.Assets) local pkgs = uiRoot.Parent.Parent local StudioComponents = require(pkgs.StudioComponents) local React = require(pkgs.React) export type HighlightMode = "Editing" | "Textbox...
2,289
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Foundational/NumberBox.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local TextSanitizers = require(uiRoot.Helpers.TextSanitizers) local pkgs = uiRoot.Parent.Parent local React = require(pkgs.React) local InputBox = require(script.Parent.InputBox) export type Props = { BackgroundTransparency: number?, BackgroundColor3: Color3...
942
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Foundational/PropertyGroup.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local Observables = require(uiRoot.Observables) local Assets = require(uiRoot.Assets) local pkgs = uiRoot.Parent.Parent local StudioComponents = require(pkgs.StudioComponents) local React = require(pkgs.React) export type Props = { AnchorPoint: Vector2?, Posi...
1,047
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Foundational/PropertyLine.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local Constants = require(script.Parent.Constants) local Observables = require(uiRoot.Observables) local Assets = require(uiRoot.Assets) local pkgs = uiRoot.Parent.Parent local StudioComponents = require(pkgs.StudioComponents) local React = require(pkgs.React) l...
2,148
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Foundational/StringBox.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local pkgs = uiRoot.Parent.Parent local React = require(pkgs.React) local InputBox = require(script.Parent.InputBox) export type Props = { BackgroundTransparency: number?, BackgroundColor3: Color3?, BorderSizePixel: number?, AnchorPoint: Vector2?, Positio...
500
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Inputs.story.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local CreateStory = require(uiRoot.Stories.CreateStory) local StudioProperties = require(uiRoot.Parent) local pkgs = uiRoot.Parent.Parent local StudioComponents = require(pkgs.StudioComponents) local ReactRoblox = require(pkgs.ReactRoblox) local React = require(...
889
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Primitives/BooleanProperty.luau
luau
.luau
local pkgs = script:FindFirstAncestor("UserInterface").Parent.Parent local StudioComponents = require(pkgs.StudioComponents) local React = require(pkgs.React) local foundationalRoot = script.Parent.Parent.Foundational local PropertyLine = require(foundationalRoot.PropertyLine) export type Props = { AnchorPoint: Vect...
378
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Primitives/DropdownProperty.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local Observables = require(uiRoot.Observables) local pkgs = uiRoot.Parent.Parent local StudioComponents = require(pkgs.StudioComponents) local React = require(pkgs.React) local foundationalRoot = script.Parent.Parent.Foundational local PropertyLine = require(f...
600
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Primitives/InstanceProperty.luau
luau
.luau
local SelectionService = game:GetService("Selection") :: Selection local uiRoot = script:FindFirstAncestor("UserInterface") local usePlugin = require(uiRoot.Hooks.usePlugin) local pkgs = uiRoot.Parent.Parent local StudioComponents = require(pkgs.StudioComponents) local Lucide = require(pkgs.Lucide) local React = requ...
1,618
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Primitives/NumberProperty.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local pkgs = uiRoot.Parent.Parent local StudioComponents = require(pkgs.StudioComponents) local React = require(pkgs.React) local foundationalRoot = script.Parent.Parent.Foundational local PropertyLine = require(foundationalRoot.PropertyLine) local NumberBox = ...
690
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Primitives/StringProperty.luau
luau
.luau
local pkgs = script:FindFirstAncestor("UserInterface").Parent.Parent local React = require(pkgs.React) local foundationalRoot = script.Parent.Parent.Foundational local PropertyLine = require(foundationalRoot.PropertyLine) local StringBox = require(foundationalRoot.StringBox) export type Props = { AnchorPoint: Vector...
506
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Properties.story.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local VerticalScroll = require(uiRoot.Components.VerticalScroll) local CreateStory = require(uiRoot.Stories.CreateStory) local StudioProperties = require(uiRoot.Parent) local pkgs = uiRoot.Parent.Parent local StudioComponents = require(pkgs.StudioComponents) loc...
1,886
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Roblox/CFrameProperty.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local useComponents = require(uiRoot.Hooks.useComponents) local pkgs = uiRoot.Parent.Parent local React = require(pkgs.React) local primitivesRoot = script.Parent.Parent.Primitives local StringProperty = require(primitivesRoot.StringProperty) local Vector3Prope...
976
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Roblox/Color3Property.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local useColorPickerDock = require(uiRoot.Hooks.useColorPickerDock) local ColorPicker = require(uiRoot.Components.ColorPicker) local pkgs = uiRoot.Parent.Parent local StudioComponents = require(pkgs.StudioComponents) local ReactRoblox = require(pkgs.ReactRoblox)...
1,586
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Roblox/UDim2Property.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local useComponents = require(uiRoot.Hooks.useComponents) local pkgs = uiRoot.Parent.Parent local React = require(pkgs.React) local primitivesRoot = script.Parent.Parent.Primitives local StringProperty = require(primitivesRoot.StringProperty) local UDimProperty...
923
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Roblox/UDimProperty.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local useComponents = require(uiRoot.Hooks.useComponents) local pkgs = uiRoot.Parent.Parent local React = require(pkgs.React) local primitivesRoot = script.Parent.Parent.Primitives local StringProperty = require(primitivesRoot.StringProperty) local NumberProper...
803
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Roblox/Vector2Property.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local useComponents = require(uiRoot.Hooks.useComponents) local pkgs = uiRoot.Parent.Parent local React = require(pkgs.React) local primitivesRoot = script.Parent.Parent.Primitives local StringProperty = require(primitivesRoot.StringProperty) local NumberProper...
808
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Roblox/Vector3Property.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local useComponents = require(uiRoot.Hooks.useComponents) local pkgs = uiRoot.Parent.Parent local React = require(pkgs.React) local primitivesRoot = script.Parent.Parent.Primitives local StringProperty = require(primitivesRoot.StringProperty) local NumberProper...
921
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/VerticalScroll/VerticalScroll.story.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local CreateStory = require(uiRoot.Stories.CreateStory) local pkgs = uiRoot.Parent.Parent local StudioComponents = require(pkgs.StudioComponents) local ReactRoblox = require(pkgs.ReactRoblox) local React = require(pkgs.React) local VerticalScroll = require(scri...
490
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Contexts/PluginContext.luau
luau
.luau
local pkgs = script:FindFirstAncestor("UserInterface").Parent.Parent local React = require(pkgs.React) return React.createContext(nil :: Plugin?)
33
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Helpers/TextSanitizers.luau
luau
.luau
local TextSanitizers = {} function TextSanitizers.numeric(text: string, allowNegative: boolean, allowDecimal: boolean) local negative = false if allowNegative and string.sub(text, 1, 1) == "-" then negative = true text = string.sub(text, 2) end text = string.gsub(text, "[^%.%d]", "") local firstDecimal = str...
175
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Hooks/useColorPickerDock.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local usePlugin = require(uiRoot.Hooks.usePlugin) local Observables = require(uiRoot.Observables) local pkgs = uiRoot.Parent.Parent local React = require(pkgs.React) local Trove = require(pkgs.Trove) local DOCK_ID = "egomoose_react_studio_properties_color_picke...
520
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Hooks/useColorPickerOpen.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local Observables = require(uiRoot.Observables) local function useColorPickerOpen() local colorPickerOpen = Observables.colorPickerOpen:use() return colorPickerOpen end return useColorPickerOpen
58
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Hooks/useComponents.luau
luau
.luau
local pkgs = script:FindFirstAncestor("UserInterface").Parent.Parent local React = require(pkgs.React) local function useComponents<T>(value: T, toArray: (T) -> { number }, fromArray: ({ number }) -> T) local valueRef = React.useRef(value) local components, setComponents = React.useState(toArray(value)) local func...
217
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Hooks/usePlugin.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local PluginContext = require(uiRoot.Contexts.PluginContext) local pkgs = uiRoot.Parent.Parent local React = require(pkgs.React) local function usePlugin() local contextPlugin = React.useContext(PluginContext) return contextPlugin end return usePlugin
69
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Hooks/useRefProperty.luau
luau
.luau
local pkgs = script:FindFirstAncestor("UserInterface").Parent.Parent local React = require(pkgs.React) local function useRefProperty<T>(ref: { current: Instance? }, property: string, default: T) local value, setValue = React.useState(default) React.useEffect(function() if not ref.current then setValue(default)...
152
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Observables/ObservableValue.luau
luau
.luau
local pkgs = script:FindFirstAncestor("UserInterface").Parent.Parent local Signal = require(pkgs.Signal) local React = require(pkgs.React) local ObservableValueStatic = {} local ObservableValueClass = {} ObservableValueClass.__index = ObservableValueClass ObservableValueClass.ClassName = "ObservableValue" export typ...
472
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Observables/init.luau
luau
.luau
local ObservableValue = require(script.ObservableValue) return { hoveringDisabled = ObservableValue.new(false), colorPickerOpen = ObservableValue.new(false), colorPickerDock = ObservableValue.new(nil :: DockWidgetPluginGui?), customColors = ObservableValue.new(table.create(16, Color3.new(1, 1, 1))), }
70
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Stories/CreateStory.luau
luau
.luau
--!nocheck --!nolint local uiRoot = script:FindFirstAncestor("UserInterface") local PluginContext = require(uiRoot.Contexts.PluginContext) local pkgs = uiRoot.Parent.Parent local React = require(pkgs.React) -- selene: allow(undefined_variable) local plugin: Plugin = PluginManager():CreatePlugin() local function cre...
154
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Stories/Stories.storybook.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local pkgs = uiRoot.Parent.Parent local ReactRoblox = require(pkgs.ReactRoblox) local React = require(pkgs.React) return { name = "StudioProperties", storyRoots = { uiRoot.Components.Properties, uiRoot.Components.ColorPicker, uiRoot.Components.VerticalSc...
102
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/init.luau
luau
.luau
local uiRoot = script.UserInterface local Properties = uiRoot.Components.Properties return { PluginContext = require(uiRoot.Contexts.PluginContext), VerticalScroll = require(uiRoot.Components.VerticalScroll), ColorPicker = require(uiRoot.Components.ColorPicker), useColorPickerOpen = require(uiRoot.Hooks.useColor...
267
Sleitnick/Knit
Sleitnick-Knit-bb1ecf3/publish.luau
luau
.luau
-- Remodel Publish script local KNIT_ASSET_ID = "5530714855" print("Loading Knit") local place = remodel.readPlaceFile("Knit.rbxl") local Packages = place.ReplicatedStorage.Packages Packages.Knit.Packages:Destroy() print("Writing Knit module to model file...") remodel.writeModelFile("Knit.rbxm", Packages) print("Kni...
122
Sleitnick/Knit
Sleitnick-Knit-bb1ecf3/src/init.luau
luau
.luau
local RunService = game:GetService("RunService") if RunService:IsServer() then return require(script.KnitServer) else local KnitServer = script:FindFirstChild("KnitServer") if KnitServer and RunService:IsRunning() then KnitServer:Destroy() end return require(script.KnitClient) end
73
Shiawaseu/RBLX-Whitelist
Shiawaseu-RBLX-Whitelist-da315fe/.vscode/luraph.d.luau
luau
.luau
-- Thanks Stefan type GenericFunction<T, U...> = (U...) -> T; declare function LPH_ENCFUNC<T, U...>(toEncrypt: GenericFunction<T, U...>, encKey: string, decKey: string): GenericFunction<T, U...> declare function LPH_ENCSTR(toEncrypt: string): string declare function LPH_ENCNUM(toEncrypt: number): number declare funct...
195
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Admin/announce.luau
luau
.luau
const ReplicatedStorage = game:GetService("ReplicatedStorage") const BuiltInGuards = ReplicatedStorage.CmdrClient.Shared.BuiltInGuards const NonEmptyString = require(BuiltInGuards.NonEmptyString) :: (number) -> (any) -> string? return { Name = "announce", Aliases = { "m" }, Description = "Makes a server-wide annou...
136
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Admin/ban.luau
luau
.luau
const ReplicatedStorage = game:GetService("ReplicatedStorage") const BuiltInGuards = ReplicatedStorage.CmdrClient.Shared.BuiltInGuards const MaxArrayLength = require(BuiltInGuards.MaxArrayLength) :: (number, number) -> (any) -> string? const MaxStringLength = require(BuiltInGuards.MaxStringLength) :: (number, number) ...
437
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Admin/banServer.luau
luau
.luau
const Players = game:GetService("Players") return function( _, playerIds: { number }, duration: number, displayReason: string, privateReason: string?, excludeAltAccounts: boolean, applyToUniverse: boolean, applyDeviceBlock: boolean ): string const resolvedPrivateReason = if not privateReason or privateReason:...
214
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Admin/gotoPlace.luau
luau
.luau
const ReplicatedStorage = game:GetService("ReplicatedStorage") const BuiltInGuards = ReplicatedStorage.CmdrClient.Shared.BuiltInGuards const NotEquals = require(BuiltInGuards.NotEquals) :: (number, any) -> (any) -> string? return { Name = "goto-place", Description = "Teleport to a Roblox place.", Group = "DefaultA...
307
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Admin/gotoPlaceServer.luau
luau
.luau
const TeleportService = game:GetService("TeleportService") return function(context: any, players: { Player }, placeId: number, jobId: string?): string context:Reply("Commencing teleport...") const success, errorMessage = pcall(function() if jobId then const options = Instance.new("TeleportOptions") options....
133
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Admin/kick.luau
luau
.luau
return { Name = "kick", Aliases = { "boot" }, Description = "Kicks a player or set of players.", Group = "DefaultAdmin", Args = { { Type = "players", Name = "Players", Description = "The players to kick.", }, { Type = "string", Name = "Reason", Description = "Kick message shown to the playe...
105
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Admin/kill.luau
luau
.luau
return { Name = "kill", Aliases = { "slay" }, Description = "Kills a player or set of players.", Group = "DefaultAdmin", Args = { { Type = "players", Name = "victims", Description = "The players to kill.", }, }, }
71
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Admin/killServer.luau
luau
.luau
return function(_, players: { Player }): string for _, player in ipairs(players) do const character = player.Character const humanoid = character and character:FindFirstChildWhichIsA("Humanoid") if not humanoid then continue end humanoid.Health = 0 end return `Killed {#players} players.` end
79
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Admin/teleport.luau
luau
.luau
const ReplicatedStorage = game:GetService("ReplicatedStorage") const BuiltInGuards = ReplicatedStorage.CmdrClient.Shared.BuiltInGuards const HasCharacter = require(BuiltInGuards.HasCharacter) :: (number?) -> (any) -> string? return { Name = "teleport", Aliases = { "tp" }, Description = "Teleports a player or set o...
258
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Admin/teleportServer.luau
luau
.luau
return function(_, fromPlayers: { Player }, destination: Player | Vector3): string const cFrame = if typeof(destination) == "Instance" then (destination.Character :: Model):GetPivot() else CFrame.new(destination) for _, player: Player in ipairs(fromPlayers) do const character = player.Character const humanoi...
177
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Admin/unban.luau
luau
.luau
const ReplicatedStorage = game:GetService("ReplicatedStorage") const BuiltInGuards = ReplicatedStorage.CmdrClient.Shared.BuiltInGuards const MaxArrayLength = require(BuiltInGuards.MaxArrayLength) :: (number, number) -> (any) -> string? return { Name = "unban", Description = "Unbans a player or set of players.", Gr...
185
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Admin/unbanServer.luau
luau
.luau
const Players = game:GetService("Players") return function(_, playerIds: { number }, applyToUniverse: boolean): string const success, errorMessage = pcall(Players.UnbanAsync, Players, { UserIds = playerIds, ApplyToUniverse = applyToUniverse, }) return if success then `Unbanned {#playerIds} players.` else `Unba...
91
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Debug/fetch.luau
luau
.luau
return { Name = "fetch", Description = "Fetch a value from the Internet.", Group = "DefaultDebug", Args = { { Type = "url", Name = "URL", Description = "The URL to fetch.", }, }, }
58
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Debug/getPlayerPlaceInstance.luau
luau
.luau
return { Name = "get-player-place-instance", Description = "Returns the target player's Place ID and the JobId separated by a space. Returns 0 if the player is offline or something else goes wrong.", Group = "DefaultDebug", Args = { { Type = "playerId", Name = "Player", Description = "Get the place insta...
169
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Debug/getPlayerPlaceInstanceServer.luau
luau
.luau
const TeleportService = game:GetService("TeleportService") return function(_, playerId: number, format: string): string format = format or "PlaceIdJobId" const success, _, errorText, placeId, jobId = pcall(TeleportService.GetPlayerPlaceInstanceAsync, TeleportService, playerId) if not success or not placeId or n...
204
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Debug/position.luau
luau
.luau
const Players = game:GetService("Players") const ReplicatedStorage = game:GetService("ReplicatedStorage") const BuiltInGuards = ReplicatedStorage.CmdrClient.Shared.BuiltInGuards const HasCharacter = require(BuiltInGuards.HasCharacter) :: (number?) -> (any) -> string? return { Name = "position", Aliases = { "pos" },...
218
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Debug/uptime.luau
luau
.luau
return { Name = "uptime", Description = "Returns the amount of time the server has been running.", Group = "DefaultDebug", Args = {}, }
33
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Debug/uptimeServer.luau
luau
.luau
const startTime = os.time() return function(): string const uptime = os.time() - startTime const days = uptime // 86400 const hours = uptime // 3600 % 24 const minutes = uptime // 60 % 60 const seconds = uptime % 60 return `{days}d {hours}h {minutes}m {seconds}s` end
79
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Debug/version.luau
luau
.luau
const VERSION = "v1.13.0" return { Name = "version", Description = "Shows the current version of Cmdr.", Group = "DefaultDebug", Args = {}, ClientRun = function(): string return `Cmdr Version {VERSION}` end, }
60
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Utility/alias.luau
luau
.luau
return { Name = "alias", Description = "Creates a new, single command out of a command and given arguments.", Group = "DefaultUtil", Args = { { Type = "string", Name = "Alias name", Description = "The key or input type you'd like to bind the command to.", }, { Type = "string", Name = "Command s...
179
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Utility/bind.luau
luau
.luau
const Players = game:GetService("Players") const TextChatService = game:GetService("TextChatService") const UserInputService = game:GetService("UserInputService") local hasHelperRan = false const function runBindHelper(Cmdr) Players.PlayerRemoving:Connect(function(Player) const binds = Cmdr.Registry:GetStore("CMDR...
699
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Utility/clear.luau
luau
.luau
return { Name = "clear", Description = "Clear all lines above the entry line of the Cmdr window.", Group = "DefaultUtil", Args = {}, ClientRun = function(context: any): string const entryFrame = context.Cmdr.Gui:WaitForChild("Frame", 2) if not entryFrame then return "Failed to clear: Frame not found." end...
132
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Utility/convertTimestamp.luau
luau
.luau
return { Name = "convertTimestamp", Aliases = { "date" }, Description = "Convert a timestamp to a human-readable format.", Group = "DefaultUtil", Args = { { Type = "number", Name = "timestamp", Description = "A numerical representation of a specific moment in time.", Optional = true, }, }, Client...
120
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Utility/echo.luau
luau
.luau
return { Name = "echo", Aliases = { "=" }, Description = "Echoes your text back to you.", Group = "DefaultUtil", Args = { { Type = "string", Name = "Text", Description = "The text to echo.", }, }, ClientRun = function(_, text: string): string return text end, }
82
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Utility/edit.luau
luau
.luau
const Players = game:GetService("Players") const TEXT_BOX_PROPERTIES = { AnchorPoint = Vector2.new(0.5, 0.5), BackgroundColor3 = Color3.fromRGB(17, 17, 17), BackgroundTransparency = 0.05, BorderColor3 = Color3.fromRGB(17, 17, 17), BorderSizePixel = 20, ClearTextOnFocus = false, MultiLine = true, Position = UDi...
540
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Utility/exit.luau
luau
.luau
return { Name = "exit", Aliases = { "escape" }, Description = "Exits the Cmdr window.", Group = "DefaultUtil", Args = {}, ClientRun = function(context: any): string context.Cmdr:Hide() return "" end, }
59
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Utility/history.luau
luau
.luau
return { Name = "history", AutoExec = { 'alias "!|Displays previous command from history." run ${history $1{number|Line Number}}', 'alias "^|Runs the previous command, replacing all occurrences of A with B." run ${run replace ${history -1} $1{string|A} $2{string|B}}', 'alias "!!|Reruns the last command." ! -1',...
208
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Utility/hover.luau
luau
.luau
const Players = game:GetService("Players") const Player = Players.LocalPlayer return { Name = "hover", Description = "Returns the name of the player you are hovering over.", Group = "DefaultUtil", Args = {}, ClientRun = function(): string const mouse = Player:GetMouse() const target = mouse.Target if not ...
126
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Utility/jsonArrayDecode.luau
luau
.luau
return { Name = "json-array-decode", Description = "Decodes a JSON Array into a comma-separated list.", Group = "DefaultUtil", Args = { { Type = "json", Name = "JSON", Description = "The JSON array.", }, }, ClientRun = function(_, value: any): string if type(value) ~= "table" then return tostri...
134
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Utility/jsonArrayEncode.luau
luau
.luau
const HttpService = game:GetService("HttpService") return { Name = "json-array-encode", Description = "Encodes a comma-separated list into a JSON array.", Group = "DefaultUtil", Args = { { Type = "string", Name = "CSV", Description = "The comma-separated list.", }, }, ClientRun = function(_, text: ...
101
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Utility/len.luau
luau
.luau
return { Name = "len", Description = "Returns the length of a comma-separated list.", Group = "DefaultUtil", Args = { { Type = "string", Name = "CSV", Description = "The comma-separated list.", }, }, ClientRun = function(_, list: string): string return if #list == 0 then "0" else tostring(#(list:s...
94
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Utility/math.luau
luau
.luau
type MathOperation = { Name: string, Perform: (a: number, b: number) -> number } return { Name = "math", Description = "Perform a math operation on 2 values.", Group = "DefaultUtil", AutoExec = { 'alias "+|Perform an addition." math + $1{number|Number} $2{number|Number}', 'alias "-|Perform a subtraction." math...
330
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Utility/pick.luau
luau
.luau
return { Name = "pick", Description = "Picks a value out of a comma-separated list.", Group = "DefaultUtil", Args = { { Type = "positiveInteger", Name = "Index to pick", Description = "The index of the item you want to pick.", }, { Type = "string", Name = "CSV", Description = "The comma-sepa...
125
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Utility/rand.luau
luau
.luau
const GENERATOR = Random.new() return { Name = "rand", Description = "Returns a random number between min and max.", Group = "DefaultUtil", Args = { { Type = "integer", Name = "First number", Description = "If second number is nil, random number is between 1 and this value. If second number is provided,...
209
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Utility/replace.luau
luau
.luau
return { Name = "replace", Aliases = { "gsub", "//" }, Description = "Replaces text A with text B.", Group = "DefaultUtil", AutoExec = { 'alias "map|Maps a CSV into another CSV." replace $1{string|CSV} ([^,]+) "$2{string|mapped value|Use %1 to insert the element.}"', 'alias "join|Joins a CSV with a specified d...
256
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Utility/resolve.luau
luau
.luau
return { Name = "resolve", Description = "Resolves Argument Value Operators into lists. E.g., resolve players * gives you a list of all players.", Group = "DefaultUtil", AutoExec = { 'alias "me|Displays your username." resolve players .', }, Args = { { Type = "type", Name = "Type", Description = "The...
213
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Utility/run.luau
luau
.luau
return { Name = "run", Aliases = { ">" }, AutoExec = { 'alias "discard|Run a command and discard the output." replace ${run $1} .* \\"\\"', }, Description = "Runs a given command string (replacing embedded commands).", Group = "DefaultUtil", Args = { { Type = "string", Name = "Command", Description ...
135
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Utility/runLines.luau
luau
.luau
return { Name = "run-lines", Description = "Splits input by newlines and runs each line as its own command. This is used by the init-run command.", Group = "DefaultUtil", Args = { { Type = "string", Name = "Script", Description = "The script to parse.", Default = "", }, }, ClientRun = function(co...
215
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Utility/runif.luau
luau
.luau
type ConditionFn = (text: string, arg: string) -> string? const CONDITIONS: { [string]: ConditionFn } = { startsWith = function(text, arg) return text:sub(1, #arg) == arg and text:sub(#arg + 1) end, contains = function(text, arg) return text:find(arg, 1, true) and text end, endsWith = function(text, arg) ...
605
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Utility/unbind.luau
luau
.luau
return { Name = "unbind", Description = "Unbinds an input previously bound with Bind.", Group = "DefaultUtil", Args = { { Type = "userInput @ player", Name = "Input/Key", Description = "The key or input type you'd like to unbind.", }, }, ClientRun = function(context: any, bind: Enum.UserInputType | ...
179
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Utility/var.luau
luau
.luau
const ReplicatedStorage = game:GetService("ReplicatedStorage") const BuiltInGuards = ReplicatedStorage.CmdrClient.Shared.BuiltInGuards const IsDataStoreAvailable = require(BuiltInGuards.IsDataStoreAvailable) :: (number?) -> (any) -> string? return { Name = "var", Description = "Gets a stored variable.", Group = "D...
256
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/Utility/varSet.luau
luau
.luau
const ReplicatedStorage = game:GetService("ReplicatedStorage") const BuiltInGuards = ReplicatedStorage.CmdrClient.Shared.BuiltInGuards const IsDataStoreAvailable = require(BuiltInGuards.IsDataStoreAvailable) :: (number?) -> (any) -> string? return { Name = "var=", Description = "Sets a stored value.", Group = "Def...
227
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInCommands/help.luau
luau
.luau
const COMMAND_COLOR = Color3.fromRGB(230, 126, 34) const TEXT_COLOR = Color3.fromRGB(230, 230, 230) const ARGUMENT_SHORTHANDS = [[ Argument Shorthands ------------------- . Me/Self * All/Everyone ** Others ? Random ?N List of N random values ]] const TIPS = [[ Tips ---- • Use the Tab key to autocomplete comma...
596
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInTypes/BrickColor.luau
luau
.luau
const BRICK_COLOR_NAMES = { "White", "Grey", "Light yellow", "Brick yellow", "Light green (Mint)", "Light reddish violet", "Pastel Blue", "Light orange brown", "Nougat", "Bright red", "Med. reddish violet", "Bright blue", "Bright yellow", "Earth orange", "Black", "Dark grey", "Dark green", "Medium gre...
1,561
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInTypes/Color3.luau
luau
.luau
const function parseHexDigit(x: string?): number? if not x then return nil end if #x == 1 then x = `{x}{x}` end return tonumber(x, 16) end return function(registry: any) const color3Type = registry.Cmdr.Util.MakeSequenceType({ Prefixes = "# hexColor3 ! brickColor3", ValidateEach = function(value: numbe...
494
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInTypes/Command.luau
luau
.luau
return function(registry: any) const commandType = { Transform = function(text: string): { [number]: string } const findCommand = registry.Cmdr.Util.MakeFuzzyFinder(registry:GetCommandNames()) return findCommand(text) end, Validate = function(commands: { [number]: string }): (boolean, string?) return #...
176
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInTypes/Duration.luau
luau
.luau
const UNIT_SECONDS: { [string]: number } = { Years = 31556926, Months = 2629744, Weeks = 604800, Days = 86400, Hours = 3600, Minutes = 60, Seconds = 1, } const unitNames: { string } = {} for unitName: string in pairs(UNIT_SECONDS) do unitNames[#unitNames + 1] = unitName end const function mapUnits(units: { st...
816
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInTypes/JSON.luau
luau
.luau
const HttpService = game:GetService("HttpService") return function(registry: any) registry:RegisterType("json", { Validate = function(text: string): boolean return pcall(HttpService.JSONDecode, HttpService, text) end, Parse = function(text: string): { [string]: any } | any return HttpService:JSONDecode(t...
88
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInTypes/MathOperator.luau
luau
.luau
return function(registry: any) registry:RegisterType( "mathOperator", registry.Cmdr.Util.MakeEnumType("Math Operator", { { Name = "+", Perform = function(a: number, b: number): number return a + b end, }, { Name = "-", Perform = function(a: number, b: number): number return a...
248
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInTypes/Player.luau
luau
.luau
const Players = game:GetService("Players") return function(registry: any) const playerType = { Transform = function(text: string): { Player } const findPlayer = registry.Cmdr.Util.MakeFuzzyFinder(Players:GetPlayers()) return findPlayer(text) end, Validate = function(players: { Player }): (boolean, string...
233
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInTypes/PlayerId.luau
luau
.luau
const Players = game:GetService("Players") const nameCache: { [string]: number } = {} const function getUserId(username: string): number? username = username:match("%(@([^%)]+)%)") or username if nameCache[username] then return nameCache[username] elseif Players:FindFirstChild(username) then const player = Pl...
405
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInTypes/Primitives.luau
luau
.luau
const TRUTHY_VALUES = { "true", "t", "yes", "y", "on", "enable", "enabled", "1", "+" } const FALSY_VALUES = { "false", "f", "no", "n", "off", "disable", "disabled", "0", "-" } type NumberTransformer = { Transform: (text: string) -> number?, Validate: (value: number?) -> (boolean, string?), Parse: (value: number) ->...
1,038
evaera/Cmdr
evaera-Cmdr-3d7db3f/Cmdr/BuiltInTypes/StoredKey.luau
luau
.luau
const VALID_STORED_KEY_NAME_PATTERNS: { string } = { "^%a[%w_]*$", "^%$%a[%w_]*$", "^%.%a[%w_]*$", "^%$%.%a[%w_]*$", } return function(registry: any) const storedKeyType = { Autocomplete = function(text: string): { string } const store = registry:GetStore("vars_used") or {} const find = registry.Cmdr.Util...
263