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
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Apps/PostProcessing/Effects/init.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.React) local EffectsRegistry = require(script.EffectsRegistry) export type ImageInputs = EffectsRegistry.ImageInputs type Props = EffectsRegistry.EffectProps<any> type Registered = typeof(EffectsRegistry.register("", ...
254
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Apps/PostProcessing/init.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local StudioComponents = require(pluginRoot.Packages.StudioComponents) local StudioProperties = require(pluginRoot.Packages.StudioProperties) local ReactRoblox = require(pluginRoot.Packages.ReactRoblox) local React = require(pluginRoot.Packages.React) local uiR...
409
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Apps/Upload/Components/Permissions.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local StudioComponents = require(pluginRoot.Packages.StudioComponents) local Lucide = require(pluginRoot.Packages.Lucide) local React = require(pluginRoot.Packages.React) local uiRoot = script:FindFirstAncestor("UserInterface") local Hooks = require(uiRoot.Hook...
797
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Apps/Upload/Components/Uploader/CreatorSelect.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local StudioComponents = require(pluginRoot.Packages.StudioComponents) local StudioProperties = require(pluginRoot.Packages.StudioProperties) local React = require(pluginRoot.Packages.React) type Props = { Creator: string, SetCreator: (string) -> (), GroupI...
1,047
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Apps/Upload/Components/Uploader/init.luau
luau
.luau
local ScriptEditorService = game:GetService("ScriptEditorService") local StudioService = game:GetService("StudioService") local SelectionService = game:GetService("Selection") local StarterGui = game:GetService("StarterGui") local pluginRoot = script:FindFirstAncestor("PluginRoot") local StudioComponents = require(plu...
1,894
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Apps/Upload/Components/Uploader/useUpload.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local Future = require(pluginRoot.Packages.Future) local Trove = require(pluginRoot.Packages.Trove) local React = require(pluginRoot.Packages.React) local uiRoot = script:FindFirstAncestor("UserInterface") local Hooks = require(uiRoot.Hooks) local MAX_ATTEMPTS...
1,527
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Apps/Upload/Components/Widget/ImageList/InstanceList/init.luau
luau
.luau
local StudioService = game:GetService("StudioService") local pluginRoot = script:FindFirstAncestor("PluginRoot") local StudioComponents = require(pluginRoot.Packages.StudioComponents) local StudioProperties = require(pluginRoot.Packages.StudioProperties) local Lucide = require(pluginRoot.Packages.Lucide) local React =...
2,243
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Apps/Upload/Components/Widget/ImageList/init.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local StudioComponents = require(pluginRoot.Packages.StudioComponents) local Lucide = require(pluginRoot.Packages.Lucide) local React = require(pluginRoot.Packages.React) local uiRoot = script:FindFirstAncestor("UserInterface") local Hooks = require(uiRoot.Hook...
1,142
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Apps/Upload/Components/Widget/Upload.story.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local StudioComponents = require(pluginRoot.Packages.StudioComponents) local React = require(pluginRoot.Packages.React) local uiRoot = script:FindFirstAncestor("UserInterface") local CreateStory = require(uiRoot.Stories.CreateStory) local Hooks = require(uiRoot...
360
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Apps/Upload/Components/Widget/init.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.React) local uiRoot = script:FindFirstAncestor("UserInterface") local Hooks = require(uiRoot.Hooks) local ImageList = require(script.ImageList) local Uploader = require(script.Parent.Uploader) type EditableImageInfo =...
358
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Apps/Upload/init.luau
luau
.luau
local AssetService = game:GetService("AssetService") local HttpService = game:GetService("HttpService") local pluginRoot = script:FindFirstAncestor("PluginRoot") local StudioComponents = require(pluginRoot.Packages.StudioComponents) local StudioProperties = require(pluginRoot.Packages.StudioProperties) local ReactRob...
701
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Apps/Viewport/Components/CroppedViewport/ActionBar.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local StudioComponents = require(pluginRoot.Packages.StudioComponents) local Lucide = require(pluginRoot.Packages.Lucide) local React = require(pluginRoot.Packages.React) local uiRoot = script:FindFirstAncestor("UserInterface") local BaseButton = require(uiRoot...
2,927
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Apps/Viewport/Components/CroppedViewport/Blinder.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.React) type Props = { AnchorPoint: Vector2?, Position: UDim2?, Size: UDim2?, MarginBump: number, OverlapBump: number, Transparency: number, Color: Color3, ZIndex: number, } local function Blinder(props: Prop...
900
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Apps/Viewport/Components/CroppedViewport/CroppedViewport.story.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.React) local uiRoot = script:FindFirstAncestor("UserInterface") local CreateStory = require(uiRoot.Stories.CreateStory) local CroppedViewport = require(script.Parent) return CreateStory.theme(function(props) local is...
395
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Apps/Viewport/Components/CroppedViewport/Grabbers.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.React) local uiRoot = script:FindFirstAncestor("UserInterface") local Hooks = require(uiRoot.Hooks) -- stylua: ignore type OnDragCallback = ( position: Vector2, direction: Vector2 ) -> () export type Props = { Tran...
2,443
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Apps/Viewport/Components/CroppedViewport/IsKeyDownTracker.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.React) local uiRoot = script:FindFirstAncestor("UserInterface") local Hooks = require(uiRoot.Hooks) export type Props = { AnchorPoint: Vector2?, Position: UDim2?, Size: UDim2?, KeyCodeSet: { [Enum.KeyCode]: boolea...
596
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Apps/Viewport/Components/CroppedViewport/init.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local StudioComponents = require(pluginRoot.Packages.StudioComponents) local React = require(pluginRoot.Packages.React) local RenderRect = require(pluginRoot.Main.Bindings.Interface.Helpers.RenderRect) local Constants = require(pluginRoot.Constants) local uiRo...
4,768
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Apps/Viewport/Components/FullViewport/ActionBar.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local StudioComponents = require(pluginRoot.Packages.StudioComponents) local Lucide = require(pluginRoot.Packages.Lucide) local React = require(pluginRoot.Packages.React) local uiRoot = script:FindFirstAncestor("UserInterface") local BaseButton = require(uiRoot...
1,914
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Apps/Viewport/Components/FullViewport/BoundedDragFrame.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.React) local uiRoot = script:FindFirstAncestor("UserInterface") local Hooks = require(uiRoot.Hooks) export type Props = { InitialPosition: UDim2?, AnchorPoint: Vector2?, Size: UDim2?, Scale: number, Disabled: bo...
857
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Apps/Viewport/Components/FullViewport/FullViewport.story.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.React) local uiRoot = script:FindFirstAncestor("UserInterface") local CreateStory = require(uiRoot.Stories.CreateStory) local FullViewport = require(script.Parent) return CreateStory.theme(function(props) local isDis...
336
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Apps/Viewport/Components/FullViewport/init.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local StudioComponents = require(pluginRoot.Packages.StudioComponents) local React = require(pluginRoot.Packages.React) local uiRoot = script:FindFirstAncestor("UserInterface") local Hooks = require(uiRoot.Hooks) local BoundedDragFrame = require(script.Bounded...
992
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Asphalt.luau
luau
.luau
-- This file is automatically @generated by Asphalt. -- It is not intended for manual editing. local Asphalt = { menu = { black = "rbxassetid://139356324174721", checkerboard = "rbxassetid://117603023119237", none = "rbxassetid://111509119165731", white = "rbxassetid://101503849351065", }, misc = { checker...
1,190
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Components/LucideIconButton.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local StudioComponents = require(pluginRoot.Packages.StudioComponents) local Lucide = require(pluginRoot.Packages.Lucide) local React = require(pluginRoot.Packages.React) export type Props = { AnchorPoint: Vector2?, Position: UDim2?, Size: UDim2?, IconSize...
764
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Components/OverlayMenu/OverlayLayer.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.React) local OverlayContext = React.createContext(nil :: Frame?) export type ProviderProps = { children: React.ReactNode, } local function Provider(props: ProviderProps) local layer, setLayer = React.useState(nil ::...
257
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Components/OverlayMenu/init.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local StudioComponents = require(pluginRoot.Packages.StudioComponents) local ReactRoblox = require(pluginRoot.Packages.ReactRoblox) local React = require(pluginRoot.Packages.React) local OverlayLayer = require(script.OverlayLayer) local MENU_WIDTH = 150 local ...
1,504
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Helpers/Toolbar/Button.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local Signal = require(pluginRoot.Packages.Signal) local uiRoot = script:FindFirstAncestor("UserInterface") local Asphalt = require(uiRoot.Asphalt) local ButtonStatic = {} local ButtonClass = {} ButtonClass.__index = ButtonClass ButtonClass.ClassName = "Toolb...
730
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Helpers/Toolbar/init.luau
luau
.luau
local Button = require(script.Button) local MENU_BUTTON_ID = "egomoose_photobooth_compact_button" local MENU_BUTTON_TOOLTIP = "Open the Photobooth menu" local MENU_BUTTON_TEXT = "Photobooth" local MENU_BUTTON_ICON = "logo" local MENU_ID = "egomoose_photobooth_compact_menu" local MENU_TITLE = "Photobooth" local Toolb...
591
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Hooks/Animation/useShake.luau
luau
.luau
local RunService = game:GetService("RunService") :: RunService local pluginRoot = script:FindFirstAncestor("PluginRoot") local Trove = require(pluginRoot.Packages.Trove) local React = require(pluginRoot.Packages.React) local useConstant = require(script.Parent.Parent.Generic.useConstant) local TAU = math.pi * 2 loc...
330
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Hooks/Generic/useConstant.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.React) local function useConstant<T>(create: () -> T): T local ref = React.useRef(nil :: any) if not ref.current then ref.current = { value = create() } end return ref.current.value end return useConstant
77
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Hooks/Generic/useRefProperty.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.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(defa...
151
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Hooks/Generic/useSelection.luau
luau
.luau
local SelectionService = game:GetService("Selection") :: Selection local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.React) local function useSelection() local selection, setSelection = React.useState(SelectionService:Get()) React.useEffect(function() setSelectio...
117
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Hooks/Generic/useUpdate.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.React) local function useUpdate() local state, setState = React.useState({}) return React.useCallback(function() setState({}) end, { state }) end return useUpdate
57
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Hooks/Photobooth/useEditableImageInfos.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.React) local CLASS_TO_CONTENT_PROPERTY: { [string]: string } = { -- ["Decal"] = "TextureContent", ["MeshPart"] = "TextureContent", -- ["ImageLabel"] = "ImageContent", -- ["ImageButton"] = "ImageContent", } export t...
506
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Hooks/Photobooth/useLatestVersion.luau
luau
.luau
local MarketplaceService = game:GetService("MarketplaceService") :: MarketplaceService local pluginRoot = script:FindFirstAncestor("PluginRoot") local Semver = require(pluginRoot.Packages.Semver) local Signal = require(pluginRoot.Packages.Signal) local React = require(pluginRoot.Packages.React) local finished = Signa...
229
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Hooks/Plugin/useDockButton.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.React) local uiRoot = script:FindFirstAncestor("UserInterface") local Toolbar = require(uiRoot.Helpers.Toolbar) local function useDockButton(dock: DockWidgetPluginGui, button: Toolbar.Button) local isEnabled, setIsEna...
206
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Hooks/Plugin/useHasCreateAssetPermission.luau
luau
.luau
local AssetService = game:GetService("AssetService") :: AssetService local pluginRoot = script:FindFirstAncestor("PluginRoot") local Signal = require(pluginRoot.Packages.Signal) local React = require(pluginRoot.Packages.React) local success = false local finished = Signal.new() task.spawn(function() local model = In...
242
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Hooks/Plugin/useIsLocalPlugin.luau
luau
.luau
local usePlugin = require(script.Parent.usePlugin) local function useIsLocalPlugin() local plugin = usePlugin() local pluginName = plugin and plugin.Name if pluginName then return not not ( pluginName:find(".rbxm$") or pluginName:find(".rbxmx$") or pluginName:find(".lua$") or pluginName:find(".luau$"...
98
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Hooks/Plugin/useIsStory.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.React) local uiRoot = script:FindFirstAncestor("UserInterface") local IsStoryContext = require(uiRoot.Stories.CreateStory.IsStoryContext) local function useIsStory() return React.useContext(IsStoryContext) end return...
75
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Hooks/Plugin/usePlugin.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local StudioComponents = require(pluginRoot.Packages.StudioComponents) local function usePlugin() return StudioComponents.usePlugin() :: Plugin? end return usePlugin
47
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Hooks/init.luau
luau
.luau
-- Generic local useUpdate = require(script.Generic.useUpdate) local useConstant = require(script.Generic.useConstant) local useMouseDrag = require(script.Generic.useMouseDrag) local useSelection = require(script.Generic.useSelection) local useRefProperty = require(script.Generic.useRefProperty) local useBindingState =...
322
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Stories/CreateStory/IsStoryContext.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.React) return React.createContext(false)
30
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Stories/CreateStory/init.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local StudioComponents = require(pluginRoot.Packages.StudioComponents) local ReactRoblox = require(pluginRoot.Packages.ReactRoblox) local React = require(pluginRoot.Packages.React) local Studio = settings().Studio local themes = Studio:GetAvailableThemes() loc...
470
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Stories/CreateStory/useStoryPlugin.luau
luau
.luau
--!nolint DeprecatedApi local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.React) local function createPlugin() -- selene: allow(undefined_variable) return PluginManager():CreatePlugin() :: Plugin end local function useStoryPlugin() local pluginRef = React.useRef(c...
111
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Stories/Debug/LoadAssets.story.luau
luau
.luau
local CollectionService = game:GetService("CollectionService") :: CollectionService local pluginRoot = script:FindFirstAncestor("PluginRoot") local StudioComponents = require(pluginRoot.Packages.StudioComponents) local React = require(pluginRoot.Packages.React) local uiRoot = script:FindFirstAncestor("UserInterface")...
343
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/Stories/Stories.storybook.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local ReactRoblox = require(pluginRoot.Packages.ReactRoblox) local React = require(pluginRoot.Packages.React) local uiRoot = script:FindFirstAncestor("UserInterface") local storyRoots = {} for _, moduleScript in uiRoot.Apps:QueryDescendants("ModuleScript") do ...
159
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Main/UserInterface/init.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local Constants = require(pluginRoot.Constants) local Toolbar = require(script.Helpers.Toolbar) local UserInterface = {} local function tryMountApps(plugin: Plugin, toolbar: Toolbar.Toolbar, appNames: { string }) for _, appName in appNames do local appModu...
183
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Utilities/Camera.luau
luau
.luau
local Camera = {} type Distortion = { anchor: Vector2, position: Vector2, size: Vector2, zoom: number, nearZ: number?, rotation: number, } function Camera.distort(camera: Camera, distortion: Distortion) local viewportSize = camera.ViewportSize local aspectRatio = viewportSize.X / viewportSize.Y local hFacto...
725
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Utilities/Cancellation/CancelToken.luau
luau
.luau
local CancelTokenStatic = {} local CancelTokenClass = {} CancelTokenClass.__index = CancelTokenClass CancelTokenClass.ClassName = "CancelToken" export type CancelToken = typeof(setmetatable({} :: {}, CancelTokenClass)) type Private = { _isCancelled: () -> boolean, _cancelCallbacks: { [() -> ()]: boolean }, } loca...
299
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Utilities/Cancellation/init.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local Future = require(pluginRoot.Packages.Future) local CancelToken = require(script.CancelToken) local CancellationStatic = {} local CancellationClass = {} CancellationClass.__index = CancellationClass CancellationClass.ClassName = "Cancellation" export ty...
359
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Utilities/PriorityStepper.luau
luau
.luau
local RunService = game:GetService("RunService") local HttpService = game:GetService("HttpService") local pluginRoot = script:FindFirstAncestor("PluginRoot") local Signal = require(pluginRoot.Packages.Signal) local PriorityStepperStatic = {} local PriorityStepperClass = {} PriorityStepperClass.__index = PriorityStep...
586
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Utilities/RectSlicer.luau
luau
.luau
local RectSlicer = {} function RectSlicer.chunks(rect: Rect, xSlices: number, ySlices: number) local width = rect.Max.X - rect.Min.X local height = rect.Max.Y - rect.Min.Y local x0 = rect.Min.X local y0 = rect.Min.Y xSlices = math.max(1, math.min(xSlices, width)) ySlices = math.max(1, math.min(ySlices, height))...
334
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Utilities/StudioMode.luau
luau
.luau
local Players = game:GetService("Players") :: Players local RunService = game:GetService("RunService") :: RunService local StudioMode = {} function StudioMode.isTeamCreate() return not not ( RunService:IsStudio() and RunService:IsEdit() and Players.LocalPlayer and not Players.LocalPlayer:FindFirstChildWhichI...
86
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-51a7301/src/Utilities/Timeout.luau
luau
.luau
local RunService = game:GetService("RunService") :: RunService local Timeout = {} local function getStudioTimeoutLength(default: number) local duration = default if RunService:IsStudio() then pcall(function() local timeoutLength = settings().Studio.ScriptTimeoutLength - 0.1 if timeoutLength > 0 and timeoutL...
264
Perthys/chalk
Perthys-chalk-cb019a7/src/init.luau
luau
.luau
export type ChalkColor = Color3 | string export type StrokeJoins = "round" | "bevel" | "miter" export type StrokeSizing = "fixed" | "scaled" export type StrokeOptions = { Color: ChalkColor; Joins: StrokeJoins?; Thickness: number?; Transparency: number?; Sizing: StrokeSizing?; } export type MarkOptions = { Colo...
3,194
atomic-horizon/order
atomic-horizon-order-f613cc1/src/client/core/external/GuiTemplates.luau
luau
.luau
-- Retrieves GuiTemplates -- @module GuiTemplates -- @author Quenty local ReplicatedStorage = game:GetService("ReplicatedStorage") local TemplateProvider = shared("TemplateProvider") ---@module TemplateProvider local provider = TemplateProvider.new(ReplicatedStorage.GuiTemplates) provider:Provide() return provider...
66
atomic-horizon/order
atomic-horizon-order-f613cc1/src/client/core/lib/UI/AtomicButton.luau
luau
.luau
--[[ File Info Author(s): ChiefWildin Module: AtomicButton.luau Version: 1.3.2 ]] -- Dependencies local AtomicPane = shared("AtomicPane") -- Types export type AtomicButton = { -- Metatable members __index: AtomicButton, ClassName: "AtomicButton", -- Public members new: (template: string | Instance, ins...
2,048
atomic-horizon/order
atomic-horizon-order-f613cc1/src/client/core/lib/UI/CoreUI.storybook.luau
luau
.luau
local storybook = { name = "Core UI", storyRoots = { script.Parent, }, } return storybook
28
atomic-horizon/order
atomic-horizon-order-f613cc1/src/client/core/lib/UI/ScreenGui.luau
luau
.luau
--[[ File Info Author(s): ChiefWildin Module: ScreenGui.luau Version: 1.0.0 ]] --[=[ @class ScreenGui @client Utility for creating `ScreenGui` instances with sensible defaults. Automatically parents to `PlayerGui` at runtime, or to `CoreGui` when running inside a story environment. ]=] -- Services local P...
303
atomic-horizon/order
atomic-horizon-order-f613cc1/src/client/core/tasks/AnalyticsClient.luau
luau
.luau
--[[ AnalyticsClient.lua ChiefWildin Version: 1.2.0 ]] -- Services -- Main job table local AnalyticsClient = { Priority = 5000 } -- Dependencies local GamebeastSDK = shared("GamebeastSDK") ---@module GamebeastSDK -- Constants -- Global variables -- Objects -- Private functions -- Public functions -- Frame...
106
atomic-horizon/order
atomic-horizon-order-f613cc1/src/client/core/tasks/CmdrStarter.luau
luau
.luau
--[[ File Info Author(s): ChiefWildin Module: CmdrStarter.lua Version: 1.0.0 ]] -- Services local ReplicatedStorage = game:GetService("ReplicatedStorage") -- Module Declaration local CmdrStarter = {} -- Task Initialization function CmdrStarter:Init() local CmdrClient = require(ReplicatedStorage:Wai...
118
atomic-horizon/order
atomic-horizon-order-f613cc1/src/client/core/tasks/DataController.luau
luau
.luau
--[[ File Info Module: DataController.luau Author(s): ChiefWildin Version: 2.4.0 ]] --[=[ @class DataController @client Handles data replication coming from the server. ]=] -- Services local RunService = game:GetService("RunService") -- Task Declaration local DataController = { Priority = 10 } -- Depende...
1,043
atomic-horizon/order
atomic-horizon-order-f613cc1/src/client/core/tasks/UI/Branches/BranchButton.story.luau
luau
.luau
--[[ File Info Author(s): ChiefWildin Module: BranchButton.story.luau Version: 1.0.0 ]] local shared = require(game.ReplicatedStorage.Order) local BranchButton = shared("BranchButton") ---@module BranchButton local Story = { controls = { Visible = true, }, render = function(props) local pane = BranchButto...
283
atomic-horizon/order
atomic-horizon-order-f613cc1/src/client/core/tasks/UI/Branches/Branches.storybook.luau
luau
.luau
local storybook = { name = script.Parent.Name, storyRoots = { script.Parent, }, } return storybook
28
atomic-horizon/order
atomic-horizon-order-f613cc1/src/client/core/tasks/UI/Branches/Components/BranchButton.luau
luau
.luau
--[[ File Info Author(s): ChiefWildin Module: BranchButton.luau Version: 1.0.0 ]] -- Services -- Dependencies local AtomicButton = shared("AtomicButton") ---@module AtomicButton local BranchButtonTemplate = shared("BranchButtonTemplate") ---@module BranchButtonTemplate -- Types -- Module Declaration local Br...
543
atomic-horizon/order
atomic-horizon-order-f613cc1/src/client/core/tasks/UI/Branches/Components/BranchButtonTemplate.luau
luau
.luau
local function BranchButtonTemplate(): GuiBase2d local branchButton = Instance.new("Frame") branchButton.Name = "BranchButton" branchButton.AnchorPoint = Vector2.new(0.5, 0.5) branchButton.BackgroundTransparency = 1 branchButton.Position = UDim2.fromScale(0.5, 0.5) branchButton.Size = UDim2.new(1, 0, 0, 80) loc...
910
atomic-horizon/order
atomic-horizon-order-f613cc1/src/client/core/tasks/UI/Branches/Components/BranchCloseButton.luau
luau
.luau
--[[ File Info Author(s): ChiefWildin Module: BranchCloseButton.luau Version: 1.0.0 ]] -- Services -- Dependencies local AtomicButton = shared("AtomicButton") ---@module AtomicButton local BranchCloseButtonTemplate = shared("BranchCloseButtonTemplate") ---@module BranchCloseButtonTemplate -- Types -- Module D...
444
atomic-horizon/order
atomic-horizon-order-f613cc1/src/client/core/tasks/UI/Branches/Components/BranchCloseButtonTemplate.luau
luau
.luau
local function BranchCloseButtonTemplate(): GuiBase2d local branchCloseButton = Instance.new("Frame") branchCloseButton.Name = "BranchCloseButton" branchCloseButton.AnchorPoint = Vector2.new(1, 0) branchCloseButton.BackgroundTransparency = 1 branchCloseButton.Position = UDim2.new(1, 0, 0, 0) branchCloseButton.Siz...
750
atomic-horizon/order
atomic-horizon-order-f613cc1/src/framework/Bootstrapper.client.luau
luau
.luau
require(game:GetService("ReplicatedStorage"):WaitForChild("Order"))
15
atomic-horizon/order
atomic-horizon-order-f613cc1/src/framework/CycleMetatable.luau
luau
.luau
local CycleMetatable local function warning(self, message: string) warn( "Detected bare code referencing a cyclic dependency (" .. tostring(CycleMetatable.CurrentModuleLoading) .. " -> " .. tostring(self.Name) .. ").", message, debug.traceback(1) ) end CycleMetatable = { __index = function(self, ...
585
atomic-horizon/order
atomic-horizon-order-f613cc1/src/framework/Settings.luau
luau
.luau
export type Initializer = { Name: string, Async: boolean, Protected: boolean, WarnDelay: number, } export type OrderSettings = { Debug: { CyclicAnalysis: boolean, VerboseLoading: boolean, }, PlaceTypes: { [number]: string }, CodeGroups: { [string]: { [string]: true } }, InitOrder: "Individual" | "Project"...
586
atomic-horizon/order
atomic-horizon-order-f613cc1/src/server/core/external/data/ReplicaServiceListeners.luau
luau
.luau
--[[ {Madwork} -[ReplicaServiceListeners] Injects listener methods to the Replica class server-side - these methods are otherwise only accessible client-side due to personal decisions based on code sanity. More information about the decision to opt out server-side listeners can be found here: https://devforum.r...
4,023
atomic-horizon/order
atomic-horizon-order-f613cc1/src/server/core/lib/BadgeGiver.luau
luau
.luau
--[[ File Info Author(s): ChiefWildin Module: BadgeGiver.luau Version: 1.0.1 ]] -- Services local BadgeService = game:GetService("BadgeService") local RunService = game:GetService("RunService") -- Dependencies local PlayerData = shared("PlayerData") ---@module PlayerData local rcall = shared("rcall") ---@modul...
462
atomic-horizon/order
atomic-horizon-order-f613cc1/src/server/core/tasks/AnalyticsServer.luau
luau
.luau
--[[ AnalyticsServer.luau ChiefWildin Version: 1.2.0 ]] -- Services local AnalyticsService = game:GetService("AnalyticsService") local HttpService = game:GetService("HttpService") local Players = game:GetService("Players") -- Dependencies local GamebeastSDK = shared("GamebeastSDK") ---@module GamebeastSDK lo...
377
atomic-horizon/order
atomic-horizon-order-f613cc1/src/server/core/tasks/CmdrHooks/CustomCommands/Developer/branch.luau
luau
.luau
return { Name = "branch", Aliases = { "build" }, Group = "DefaultAdmin", Description = "Teleport to a specific development branch.", Args = { { Type = "branch", Name = "branch", Description = "The branch to teleport to." }, { Type = "players", Name = "players", Description = "Players who wi...
100
atomic-horizon/order
atomic-horizon-order-f613cc1/src/server/core/tasks/CmdrHooks/CustomCommands/Developer/branchServer.luau
luau
.luau
local TeleportService = game:GetService("TeleportService") local GetBranches = shared("GetBranches") ---@module GetBranches return function(_, branch: string, players: { Player }) if not branch then return end local branches = GetBranches() local branchId = nil for _, branchInfo in branches do if string.lo...
151
atomic-horizon/order
atomic-horizon-order-f613cc1/src/server/core/tasks/CmdrHooks/CustomCommands/Moderation/ban.luau
luau
.luau
return { Name = "ban", Aliases = {}, Group = "DefaultAdmin", Description = "Bans a player using Roblox's BanService", Args = { { Type = "players", Name = "Players", Description = "The player or group of players to ban." }, { Type = "number", Name = "Duration", Description = "How long to ban...
235
atomic-horizon/order
atomic-horizon-order-f613cc1/src/server/core/tasks/CmdrHooks/CustomCommands/Moderation/banServer.luau
luau
.luau
-- Services local Players = game:GetService("Players") return function(_, players: {Player}, duration: number, publicReason: string, privateReason: string, alsoBanAlts: boolean) if #publicReason > 400 then return "Public reason is too long. Please keep it under 400 characters." end if #privateReason > 1000 then ...
244
atomic-horizon/order
atomic-horizon-order-f613cc1/src/server/core/tasks/CmdrHooks/CustomCommands/Moderation/banid.luau
luau
.luau
return { Name = "banid", Aliases = {}, Group = "DefaultAdmin", Description = "Bans a player by ID using Roblox's BanService", Args = { { Type = "number", Name = "UserId", Description = "The ID of the player to ban." }, { Type = "number", Name = "Duration", Description = "How long to ban the...
237
atomic-horizon/order
atomic-horizon-order-f613cc1/src/server/core/tasks/CmdrHooks/CustomCommands/Moderation/banidServer.luau
luau
.luau
-- Services local Players = game:GetService("Players") return function(_, userId: number, duration: number, publicReason: string, privateReason: string, alsoBanAlts: boolean) if #publicReason > 400 then return "Public reason is too long. Please keep it under 400 characters." end if #privateReason > 1000 then re...
234
atomic-horizon/order
atomic-horizon-order-f613cc1/src/server/core/tasks/CmdrHooks/CustomCommands/Moderation/banuser.luau
luau
.luau
return { Name = "banuser", Aliases = {}, Group = "DefaultAdmin", Description = "Bans a player by username using Roblox's BanService", Args = { { Type = "string", Name = "Username", Description = "The username of the player to ban." }, { Type = "number", Name = "Duration", Description = "How...
237
atomic-horizon/order
atomic-horizon-order-f613cc1/src/server/core/tasks/CmdrHooks/CustomCommands/Moderation/banuserServer.luau
luau
.luau
-- Services local Players = game:GetService("Players") return function(_, username: string, duration: number, publicReason: string, privateReason: string, alsoBanAlts: boolean) if #publicReason > 400 then return "Public reason is too long. Please keep it under 400 characters." end if #privateReason > 1000 then ...
234
atomic-horizon/order
atomic-horizon-order-f613cc1/src/server/core/tasks/CmdrHooks/CustomCommands/Moderation/unbanid.luau
luau
.luau
return { Name = "unbanid", Aliases = { "unban" }, Group = "DefaultAdmin", Description = "Unbans a player by ID using Roblox's BanService", Args = { { Type = "number", Name = "UserId", Description = "The ID of the player to unban." }, } }
80
atomic-horizon/order
atomic-horizon-order-f613cc1/src/server/core/tasks/CmdrHooks/CustomCommands/Moderation/unbanidServer.luau
luau
.luau
-- Services local Players = game:GetService("Players") return function(_, userId: number) Players:UnbanAsync({ UserIds = { userId }, ApplyToUniverse = true, }) local username = Players:GetNameFromUserIdAsync(userId) return `Unbanned {username} ({userId})` end
69
atomic-horizon/order
atomic-horizon-order-f613cc1/src/server/core/tasks/CmdrHooks/CustomCommands/Moderation/unbanuser.luau
luau
.luau
return { Name = "unbanuser", Aliases = {}, Group = "DefaultAdmin", Description = "Unbans a player by username using Roblox's BanService", Args = { { Type = "string", Name = "Username", Description = "The username of the player to unban." }, } }
75
atomic-horizon/order
atomic-horizon-order-f613cc1/src/server/core/tasks/CmdrHooks/CustomCommands/Moderation/unbanuserServer.luau
luau
.luau
-- Services local Players = game:GetService("Players") return function(_, username: string) local userId = Players:GetUserIdFromNameAsync(username) Players:UnbanAsync({ UserIds = { userId }, ApplyToUniverse = true, }) return `Unbanned {username} ({userId})` end
69
atomic-horizon/order
atomic-horizon-order-f613cc1/src/server/core/tasks/CmdrHooks/CustomTypes/Branch.luau
luau
.luau
local GetBranches = shared("GetBranches") ---@module GetBranches return function (registry) local currentBranches = GetBranches() local arrayOfBranches = {} for _, branch in currentBranches do table.insert(arrayOfBranches, branch.Name) end return registry:RegisterType("branch", registry.Cmdr.Util.MakeEnumType...
82
atomic-horizon/order
atomic-horizon-order-f613cc1/src/server/core/tasks/CmdrHooks/init.luau
luau
.luau
--[[ Author: ChiefWildin Module: CmdrHooks.lua Version: 1.1.0 ]] -- Services -- Dependencies local Cmdr = shared("Cmdr") ---@module Cmdr -- Types -- Module Declaration local CmdrHooks = {} -- Constants -- Global Variables -- Objects -- Private Functions -- Public Functions -- Job Initialization ...
135
atomic-horizon/order
atomic-horizon-order-f613cc1/src/shared/core/external/NevermoreModules/BaseObject.luau
luau
.luau
-- A BaseObject basically just adds the :Destroy() interface, and a _maid, along with an optional object it references. -- @classmod BaseObject local Maid = shared("Maid") local BaseObject = {} BaseObject.ClassName = "BaseObject" BaseObject.__index = BaseObject function BaseObject.new(obj) local self = setmetatable...
214
atomic-horizon/order
atomic-horizon-order-f613cc1/src/shared/core/external/ReplicaService/RateLimiter.luau
luau
.luau
--[[ {Madwork} -[RateLimiter] Prevents RemoteEvent spamming; Player references are automatically removed as they leave Members: RateLimiter.Default [RateLimiter] Functions: RateLimiter.NewRateLimiter(rate) --> [RateLimiter] rate [number] -- Events per second allowed; Excessive events are dropped ...
819
atomic-horizon/order
atomic-horizon-order-f613cc1/src/shared/core/external/ReplicaService/ReplicaController.luau
luau
.luau
-- local Madwork = _G.Madwork --[[ {Madwork} -[ReplicaController] (STANDALONE VERSION) Lua table replication achieved through write function wrapping LISTENER WARNING: Making listeners disconnect their own script connections may result in other listeners being skipped. Fix pending. WARNING: Replica update li...
10,067
atomic-horizon/order
atomic-horizon-order-f613cc1/src/shared/core/external/TemplateProvider.luau
luau
.luau
local RunService = game:GetService("RunService") local BaseObject = shared("BaseObject") local Maid = shared("Maid") local String = shared("String") local TemplateProvider = setmetatable({ Priority = 100 }, BaseObject) TemplateProvider.ClassName = "TemplateProvider" TemplateProvider.__index = TemplateProvider -- @pa...
1,183
atomic-horizon/order
atomic-horizon-order-f613cc1/src/shared/core/lib/CacheService.luau
luau
.luau
--[[ File Info Author: ChiefWildin Module: CacheService.lua Version: 1.3.0 ]] --[=[ @class CacheService Simple module for caching any data. ]=] -- Root local CacheService = {} -- Types --[=[ @interface Cache @within CacheService .EntryLimit number -- Maximum number of entries the cache will hold .Entr...
1,481
atomic-horizon/order
atomic-horizon-order-f613cc1/src/shared/core/lib/DebugPart.luau
luau
.luau
--[[ File Info Author(s): ChiefWildin Module: DebugPart.lua Version: 1.0.0 ]] -- Services local Debris = game:GetService("Debris") -- Types export type DebugPartProperties = { Parent: Instance?, Size: Vector3?, CFrame: CFrame?, Name: string?, Position: Vector3?, Orientation: Vector3?, Anchored: boolean?...
380
atomic-horizon/order
atomic-horizon-order-f613cc1/src/shared/core/lib/DebugRaycast.luau
luau
.luau
--[[ File Info Author(s): ChiefWildin Module: DebugRaycast.lua Version: 1.0.0 ]] -- Services local Debris = game:GetService("Debris") -- Module Declaration local DebugRaycast = {} -- Constants local DEFAULT_HIT_COLOR = Color3.fromRGB(0, 255, 0) local DEFAULT_MISS_COLOR = Color3.fromRGB(255, 0, 0) -- Global ...
1,730
atomic-horizon/order
atomic-horizon-order-f613cc1/src/shared/core/lib/DeepCopy.luau
luau
.luau
local function DeepCopy(target: {}): {} local copy = {} for key, value in pairs(target) do if typeof(value) == "table" then copy[key] = DeepCopy(value) else copy[key] = value end end return copy end return DeepCopy
64
atomic-horizon/order
atomic-horizon-order-f613cc1/src/shared/core/lib/FormatNumber.luau
luau
.luau
local FormatNumber = {} local SUFFIXES = { "K", "M", "B", "T", "Q", "QI", "SX", "SP", "OC", "NO", "DC", "UD", "DD", "TD", "QAD", "QID", "SXD", "SPD", "OCD", "NOD", "VG", "UVG", "DVG", "TVG", "QAVG", "QIVG", "SXVG", "SPVG", "OCVG", } function FormatNumber.AddCommas(input: number): string ...
317
atomic-horizon/order
atomic-horizon-order-f613cc1/src/shared/core/lib/Get.luau
luau
.luau
--[[ Author: ChiefWildin A utility module that provides functions that make it easier to get multiple objects in one call. ]] --[=[ Takes an `Instance` value followed by any number of strings that represent child `Instance` names and returns the final child. If the last argument is a table, it will return a tup...
401
atomic-horizon/order
atomic-horizon-order-f613cc1/src/shared/core/lib/GetBranches.luau
luau
.luau
local AssetService = game:GetService("AssetService") export type Branch = { DisplayName: string, Name: string, PlaceId: number, } local Branches: { Branch } --[=[ @class GetBranches Return an array of places in this game using GetGamePlacesAsync. ```lua -- Print all branches in this game. local branches = ...
287
atomic-horizon/order
atomic-horizon-order-f613cc1/src/shared/core/lib/GetRemote.luau
luau
.luau
--[[ File Info Author: ChiefWildin Module: GetRemote.lua Version: 1.5.0 ]] --[=[ @class GetRemote Provides a simple interface for creating and using remotes. The [Remote](/api/Remote) object is a wrapper that will dynamically create `RemoteEvents`, `UnreliableRemoteEvents`, and `RemoteFunctions` based on how...
5,668
atomic-horizon/order
atomic-horizon-order-f613cc1/src/shared/core/lib/Icons.luau
luau
.luau
return { Success = "rbxassetid://17740166365", Failure = "rbxassetid://129138807724809", }
32