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
welcomestohell/rocket
welcomestohell-rocket-8775da5/extensions/light-sources/utils/setLightingDirection.luau
luau
.luau
local Lighting = game:GetService("Lighting") local TAU = math.pi * 2 local function setLightingDirection(direction: Vector3, longitudeFactor: number) local latitude = math.atan2(direction.Z, math.sqrt(direction.X ^ 2 + direction.Y ^ 2)) local longtitude = math.atan2(direction.Y * -longitudeFactor, direction.X * -lo...
149
welcomestohell/rocket
welcomestohell-rocket-8775da5/extensions/lighting.luau
luau
.luau
local Lighting = game:GetService("Lighting") local Extension = require("@src/core/Extension") local UserIds = require("@src/constants/UserIds") local assets = require("@include/assets") local createCoreExtension = require("@src/core/constructors/createCoreExtension") local ext = createCoreExtension { id = "rocket-li...
185
welcomestohell/rocket
welcomestohell-rocket-8775da5/extensions/rocket.luau
luau
.luau
local Command = require("@src/core/commands/Command") local CommandStore = require("@src/core/commands/CommandStore") local Extension = require("@src/core/Extension") local Iris = require("@src/Iris") local UserIds = require("@src/constants/UserIds") local assets = require("@include/assets") local createCoreExtension =...
616
welcomestohell/rocket
welcomestohell-rocket-8775da5/extensions/scripts.luau
luau
.luau
local ScriptEditorService = game:GetService("ScriptEditorService") local Extension = require("@src/core/Extension") local Iris = require("@src/Iris") local UserIds = require("@src/constants/UserIds") local assets = require("@include/assets") local createCoreExtension = require("@src/core/constructors/createCoreExtensi...
801
welcomestohell/rocket
welcomestohell-rocket-8775da5/extensions/selection.luau
luau
.luau
local Selection = game:GetService("Selection") local Workspace = game:GetService("Workspace") local Extension = require("@src/core/Extension") local Iris = require("@src/Iris") local RegExp = require("@pkgs/RegExp") local UserIds = require("@src/constants/UserIds") local assets = require("@include/assets") local creat...
1,636
welcomestohell/rocket
welcomestohell-rocket-8775da5/extensions/tidy.luau
luau
.luau
local Extension = require("@src/core/Extension") local UserIds = require("@src/constants/UserIds") local assets = require("@include/assets") local createCoreExtension = require("@src/core/constructors/createCoreExtension") local ext = createCoreExtension({ id = "rocket-tidy", title = "Tidy", description = "Keep you...
656
welcomestohell/rocket
welcomestohell-rocket-8775da5/extensions/trusses.luau
luau
.luau
local Extension = require("@src/core/Extension") local Tags = require("@src/constants/Tags") local assets = require("@include/assets") local createCoreExtension = require("@src/core/constructors/createCoreExtension") local ext = createCoreExtension { id = "rocket-trusses", title = "Trusses", description = "Quickly ...
615
welcomestohell/rocket
welcomestohell-rocket-8775da5/include/boba-base.luau
luau
.luau
--!nonstrict --!optimize 2 -- Modified for new solver usage in Rocket -- TODO: Boba for new solver? --[[ ▄ █ ▀█▀ █ ▄ Welcome To Hell @ wthrblx.com █▀█ █ █▀█ (c) Team Fireworks 2024-2026. This software is provided 'as-is', without any express or implied warranty. In no event will the contributors ...
3,011
welcomestohell/rocket
welcomestohell-rocket-8775da5/include/fzy.luau
luau
.luau
-- The lua implementation of the fzy string matching algorithm local SCORE_GAP_LEADING = -0.005 local SCORE_GAP_TRAILING = -0.005 local SCORE_GAP_INNER = -0.01 local SCORE_MATCH_CONSECUTIVE = 1.0 local SCORE_MATCH_SLASH = 0.9 local SCORE_MATCH_WORD = 0.8 local SCORE_MATCH_CAPITAL = 0.7 local SCORE_MATCH_DOT = 0.6 loca...
2,029
welcomestohell/rocket
welcomestohell-rocket-8775da5/include/repr.luau
luau
.luau
--!nocheck --!nolint --#selene: allow(unused_variable, shadowing) --- repr - Version 1.2 -- Ozzypig - ozzypig.com - http://twitter.com/Ozzypig -- Check out this thread for more info: -- https://devforum.roblox.com/t/repr-function-for-printing-tables/276575 --[[ local repr = require(3148021300) local myTable = { hell...
3,202
welcomestohell/rocket
welcomestohell-rocket-8775da5/include/typeforge.luau
luau
.luau
--!strict --!nolint LocalShadow --#selene: allow(undefined_variable, shadowing, unused_variable) --> Helpers ---------------------------------------------------------------------------- type function handle_negation<T>(input: type, callback: (input: type, input_tag: string) -> T) local input_tag = input.tag if inpu...
17,994
welcomestohell/rocket
welcomestohell-rocket-8775da5/include/types.luau
luau
.luau
-- darklua implodes if you use a type function bruv -- selene: allow(undefined_variable) export type function WidgetCall(widgetClass: type) local baseClass = if widgetClass.tag == "intersection" then widgetClass:components()[2] else widgetClass assert(baseClass.tag == "table", "expected widget class") local placeh...
315
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/Iris.luau
luau
.luau
local Iris = require("@pkgs/Iris") local typeforge = require("@include/typeforge") local types = require("@include/types") type Cleanup = () -> () type WidgetCall<Class> = types.WidgetCall<Class> export type Config = typeof(Iris._config) export type PartialConfig = typeforge.Partial<Config> export type State<T> = typ...
808
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/constants.luau
luau
.luau
return table.freeze({ userIds = table.freeze({ znotfireman = 10014656431, syylvi = 3814464357, }), })
37
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/constants/Tags.luau
luau
.luau
return table.freeze({ TRUSS_FILLER = "Rocket Trusses: Truss Filler", })
21
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/constants/UserIds.luau
luau
.luau
return table.freeze({ znotfireman = 10014656431, syylvi = 3814464357, })
27
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/core/Extension.luau
luau
.luau
local Charm = require("@pkgs/Charm") local Command = require("@src/core/commands/Command") local CommandRuntime = require("@src/core/commands/CommandRuntime") local assets = require("@include/assets") local atoms = require("@src/utils/atoms") local createCommand = require("@src/core/constructors/createCommand") local t...
829
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/core/Log.luau
luau
.luau
local LocalizationService = game:GetService("LocalizationService") local Charm = require("@pkgs/Charm") local repr = require("@include/repr") export type LogEvent = { timestamp: DateTime, from: Log, level: number, args: { [number]: any, n: number }, } local LOG_LEVELS = { ERROR = 1, WARN = 2, INFO = 3, DEBUG...
696
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/core/commands/Command.luau
luau
.luau
local CommandRuntime = require("./CommandRuntime") local assets = require("@include/assets") local types = require("@src/types") export type CommandRunner = | ((r: CommandRuntime.CommandRuntime) -> ()) | ((r: CommandRuntime.CommandRuntime) -> types.CommandOutput) | ((r: CommandRuntime.CommandRuntime) -> types.Comma...
307
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/core/commands/CommandRuntime.luau
luau
.luau
local ChangeHistoryService = game:GetService("ChangeHistoryService") local RunService = game:GetService("RunService") local Selection = game:GetService("Selection") local Gizmos = require("@src/core/Gizmos") local Iris = require("@src/Iris") local Log = require("@src/core/Log") local Trove = require("@pkgs/Trove") loc...
994
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/core/commands/CommandStore.luau
luau
.luau
local Charm = require("@pkgs/Charm") local Command = require("./Command") local CommandRuntime = require("./CommandRuntime") local types = require("@src/types") local CommandStore = {} CommandStore.runtimes = Charm.atom({} :: { [Command.Command]: CommandRuntime.CommandRuntime }) CommandStore.uiOutputs = Charm.atom({} ...
179
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/core/commands/isOutputsUi.luau
luau
.luau
local types = require("@src/types") local function isOutputsUi(output: types.CommandOutput?) return output ~= nil and (output.renderViewport or output.renderWindow) ~= nil end return isOutputsUi
43
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/core/commands/runCommand.luau
luau
.luau
local Command = require("@src/core/commands/Command") local CommandStore = require("@src/core/commands/CommandStore") local atoms = require("@src/utils/atoms") local constructors = require("@src/core/constructors") local isOutputsUi = require("@src/core/commands/isOutputsUi") local pluginTrove = require("@src/pluginTro...
345
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/core/constructors/createCommand.luau
luau
.luau
local Command = require("@src/core/commands/Command") local types = require("@src/types") local function createCommand(interface: types.CommandInterface, runner: Command.CommandRunner): Command.Command return setmetatable({ _extension = nil, _runner = runner, interface = table.freeze(table.clone(interface)), }...
79
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/core/constructors/createCommandRuntime.luau
luau
.luau
local Command = require("@src/core/commands/Command") local CommandRuntime = require("@src/core/commands/CommandRuntime") local Log = require("@src/core/Log") local Trove = require("@pkgs/Trove") local function createCommandRuntime(trove: Trove.Trove, command: Command.Command): CommandRuntime.CommandRuntime return se...
120
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/core/constructors/createCoreExtension.luau
luau
.luau
local Extension = require("@src/core/Extension") local createExtension = require("./createExtension") local plugin = require("@src/plugin") local types = require("@src/types") local function createCoreExtension(interface: types.ExtensionInterface): Extension.Extension return createExtension(plugin, interface) end re...
63
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/core/constructors/createExtension.luau
luau
.luau
local Extension = require("@src/core/Extension") local atoms = require("@src/utils/atoms") local types = require("@src/types") local function createExtension(plugin: Plugin, interface: types.ExtensionInterface): Extension.Extension types.ExtensionInterface:assert(interface) if Extension._extensionsById()[interface.i...
161
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/core/constructors/init.luau
luau
.luau
-- Constructors are separate from the classes as to disallow the end-user from -- constructing their own instances. return table.freeze({ createCommand = require("@self/createCommand"), createCommandRuntime = require("@self/createCommandRuntime"), createCoreExtension = require("@self/createCoreExtension"), createE...
67
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/core/hooks/useKeys.luau
luau
.luau
local UserInputService = game:GetService("UserInputService") local KEY_CODES = Enum.KeyCode:GetEnumItems() local function getKeysDown() local result = {} for _, keyCode in KEY_CODES do result[keyCode] = UserInputService:IsKeyDown(keyCode) end return result end local store = {} store.KEY_CODES = KEY_CODES store...
251
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/init.server.luau
luau
.luau
local plugin = require("@self/plugin") if not plugin then error("Rocket must be run as a plugin!") end local CoreGui = game:GetService("CoreGui") local LogService = game:GetService("LogService") local Charm = require("@pkgs/Charm") local Command = require("@src/core/commands/Command") local CommandRuntime = require(...
1,621
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/launcher/LauncherStore.luau
luau
.luau
local Charm = require("@pkgs/Charm") local Command = require("@src/core/commands/Command") local Extension = require("@src/core/Extension") local fzy = require("@include/fzy") local LauncherStore = {} LauncherStore.isVisible = Charm.atom(false) LauncherStore.isFocused = Charm.atom(false) LauncherStore.selectedIndex = ...
441
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/launcher/LauncherWindow.luau
luau
.luau
local Workspace = game:GetService("Workspace") local Command = require("@src/core/commands/Command") local Iris = require("@src/Iris") local LauncherStore = require("./LauncherStore") local runCommand = require("@src/core/commands/runCommand") local useKeys = require("@src/core/hooks/useKeys") local widgets = require(...
581
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/plugin.luau
luau
.luau
local plugin: Plugin = plugin or script:FindFirstAncestorWhichIsA("Plugin") :: Plugin return plugin
25
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/pluginTrove.luau
luau
.luau
local Trove = require("@pkgs/Trove") local plugin = require("@src/plugin") local pluginTrove = Trove.new() pluginTrove:Add(plugin.Unloading:Connect(pluginTrove:WrapClean())) return pluginTrove
49
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/settings/SettingsPages/extensions/CommandListing.luau
luau
.luau
local Command = require("@src/core/commands/Command") local Iris = require("@src/Iris") local SettingsStore = require("@src/settings/SettingsStore") local widgets = require("@src/widgets") local function CommandListing(command: Command.Command) local group = widgets.ButtonGroup({ size = UDim2.fromScale(1, 0) }) if g...
139
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/settings/SettingsPages/extensions/ExtensionList.luau
luau
.luau
local Command = require("@src/core/commands/Command") local CommandListing = require("./CommandListing") local Extension = require("@src/core/Extension") local ExtensionListing = require("./ExtensionListing") local Iris = require("@src/Iris") local SettingsStore = require("@src/settings/SettingsStore") local theme = re...
498
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/settings/SettingsPages/extensions/ExtensionListToolbar.luau
luau
.luau
local Iris = require("@src/Iris") local SettingsStore = require("@src/settings/SettingsStore") local Theme = require("@src/theme") local widgets = require("@src/widgets") local function ExtensionListToolbar() local config = Theme.config() Theme.push({ CellPadding = config.CellPadding, WindowPadding = config.Wind...
244
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/settings/SettingsPages/extensions/ExtensionListing.luau
luau
.luau
local Extension = require("@src/core/Extension") local Iris = require("@src/Iris") local SettingsStore = require("@src/settings/SettingsStore") local assets = require("@include/assets") local widgets = require("@src/widgets") local function ExtensionListing( extension: Extension.Extension, extensionsCollapsed: { [Ex...
276
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/settings/SettingsPages/extensions/Info.luau
luau
.luau
local Command = require("@src/core/commands/Command") local Iris = require("@src/Iris") local SettingsStore = require("@src/settings/SettingsStore") local ids = require("@src/utils/ids") local types = require("@src/types") local widgets = require("@src/widgets") local function Info() local selected = SettingsStore.ex...
558
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/settings/SettingsPages/extensions/init.luau
luau
.luau
local ExtensionList = require("@self/ExtensionList") local ExtensionListToolbar = require("@self/ExtensionListToolbar") local Info = require("@self/Info") local Iris = require("@src/Iris") local assets = require("@include/assets") local types = require("../types") local widgets = require("@src/widgets") local extensio...
222
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/settings/SettingsPages/init.luau
luau
.luau
local types = require("./types") local SettingPages: { types.SettingsPage } = { require("@self/extensions"), require("@self/about"), } return SettingPages
33
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/settings/SettingsSidebar.luau
luau
.luau
local Iris = require("@src/Iris") local SettingsPages = require("./SettingsPages") local SettingsStore = require("./SettingsStore") local widgets = require("@src/widgets") local function SettingsSidebar() for _, page in SettingsPages do if widgets.ButtonGroup({ size = UDim2.fromScale(1, 0) }).clicked() then Sett...
124
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/settings/SettingsStore.luau
luau
.luau
local Charm = require("@pkgs/Charm") local Command = require("@src/core/commands/Command") local Extension = require("@src/core/Extension") local atoms = require("@src/utils/atoms") local types = require("./types") local SettingsStore = { isVisible = Charm.atom(false), currentPage = Charm.atom(nil :: types.SettingsP...
199
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/settings/SettingsWindow.luau
luau
.luau
local Workspace = game:GetService("Workspace") local Iris = require("@pkgs/Iris") local SettingsPages = require("./SettingsPages") local SettingsSidebar = require("./SettingsSidebar") local SettingsStore = require("./SettingsStore") local SIDEBAR_WIDTH = 256 local WINDOW_ARGS = { "Rocket Settings", [Iris.Args.Windo...
351
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/settings/types.luau
luau
.luau
export type SettingsPage = { id: string, title: string, tabIcon: string, extensionIcon: string, render: () -> (), } return nil
34
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/theme/init.luau
luau
.luau
local Charm = require("@pkgs/Charm") local Iris = require("@pkgs/Iris") local Trove = require("@pkgs/Trove") local types = require("@self/types") export type Config = types.Config export type PartialConfig = types.PartialConfig export type Theme = types.Theme export type StudioTheme = types.StudioTheme local theme = ...
458
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/theme/presets/base.luau
luau
.luau
local types = require("../types") local base: types.PartialConfig = { TextTransparency = 0, TextDisabledTransparency = 0, BorderTransparency = 0.5, BorderActiveTransparency = 0.3, WindowBgTransparency = 0.06, PopupBgTransparency = 0.06, ScrollbarGrabTransparency = 0, TitleBgTransparency = 0, TitleBgActive...
840
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/theme/presets/button/highlighted.luau
luau
.luau
local types = require("../../types") local buttonHighlighted: types.PartialConfig = { ButtonTransparency = 0.75, ButtonHoveredTransparency = 0.75, ButtonActiveTransparency = 0.825, } return buttonHighlighted
52
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/theme/presets/button/selected.luau
luau
.luau
local types = require("../../types") local buttonSelected: types.PartialConfig = { ButtonTransparency = 0.5, ButtonHoveredTransparency = 0.5, ButtonActiveTransparency = 0.75, } return buttonSelected
52
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/theme/presets/button/unhighlighted.luau
luau
.luau
local types = require("../../types") local buttonUnhighlighted: types.PartialConfig = { ButtonTransparency = 1, ButtonHoveredTransparency = 0.75, ButtonActiveTransparency = 0.825, } return buttonUnhighlighted
54
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/theme/themes/iris.luau
luau
.luau
local types = require("../types") local iris = {} :: types.Theme iris.name = "Iris" iris.colors = { TextColor = Color3.fromRGB(255, 255, 255), TextDisabledColor = Color3.fromRGB(128, 128, 128), BorderColor = Color3.fromRGB(110, 110, 125), BorderActiveColor = Color3.fromRGB(160, 160, 175), WindowBgColor = Color...
837
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/theme/types.luau
luau
.luau
-- selene: allow(unused_variable) local Iris = require("@pkgs/Iris") local typeforge = require("@include/typeforge") export type Config = typeof(Iris._config) export type PartialConfig = typeforge.Partial<Config> export type Theme = { name: string, colors: PartialConfig, } export type StudioTheme = { dark: Theme,...
86
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/types.luau
luau
.luau
local Boba = require("@include/boba") local Iris = require("@src/Iris") local AuthorUser = Boba.Struct { type = Boba.Literal("user").inner :: "user", id = Boba.Number.inner, }:Nickname("AuthorUser") local AuthorCustom = Boba.Struct { type = Boba.Literal("custom").inner :: "custom", image = Boba.String.inner, nam...
757
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/utils/arrays.luau
luau
.luau
local function map<I, O>(array: { I }, mapper: (I) -> O): { O } local result = {} for i, value in array do result[i] = mapper(value) end return result end local function filter<T>(array: { T }, predicate: (T) -> boolean): { T } local result = {} for _, value in array do if predicate(value) then table.inse...
261
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/utils/atoms.luau
luau
.luau
local Charm = require("@pkgs/Charm") local pluginTrove = require("@src/pluginTrove") local function set<K, V>(atom: Charm.Atom<{ [K]: V }>, key: K, value: V) local new = table.clone(atom()) new[key] = value atom(new) end local function push<T>(atom: Charm.Atom<{ T }>, value: T) local new = table.clone(atom()) ta...
271
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/utils/errors.luau
luau
.luau
local Boba = require("@include/boba") local Error = Boba.Struct { raw = Boba.String.inner, message = Boba.String.inner, trace = Boba.String.inner, } export type Error = typeof(Error.inner) local function parseError(err: string): Error return { raw = err, message = err:gsub("^.+:%d+:%s*", ""), trace = debug...
110
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/utils/ids.luau
luau
.luau
local Players = game:GetService("Players") local THUMBNAIL_NAMES: { [EnumItem]: string } = { [Enum.ThumbnailType.HeadShot] = "AvatarHeadShot", [Enum.ThumbnailType.AvatarThumbnail] = "Avatar", [Enum.ThumbnailType.AvatarBust] = "AvatarBust", [Enum.ThumbnailSize.Size48x48] = "48", [Enum.ThumbnailSize.Size60x60] = "6...
360
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/utils/noop.luau
luau
.luau
-- selene: allow(unused_variable) local function noop(...: any) end return noop
21
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/widgets/init.luau
luau
.luau
local ButtonGroup = require("@self/interactions/ButtonGroup") local InstantInputText = require("@self/interactions/InstantInputText") local Frame = require("@self/layouts/Frame") local List = require("@self/layouts/List") local ScrollingFrame = require("@self/layouts/ScrollingFrame") local AspectRatio = require("@sel...
299
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/widgets/interactions/ButtonGroup.luau
luau
.luau
local Iris = require("@src/Iris") local Internal = Iris.Internal local widgets = Internal._utility export type ButtonGroupProps = { size: UDim2, } Internal.WidgetConstructor( "ButtonGroup", { hasState = false, hasChildren = true, Args = { size = 1, }, Events = { clicked = widgets.EVENTS.click(funct...
603
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/widgets/interactions/InstantInputText.luau
luau
.luau
local Iris = require("@src/Iris") export type InstantInputTextProps = { label: string?, hint: string?, captureFocus: boolean?, width: UDim?, } local function InstantInputText( props: InstantInputTextProps, initialState: { text: any }? ): (string, typeof(Iris.InputText(nil :: any)), TextBox) local hasStyles = p...
190
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/widgets/layouts/Frame.luau
luau
.luau
-- https://discord.com/channels/385151591524597761/1097898141396766771/1455680322279571516 local Iris = require("@src/Iris") local Internal = Iris.Internal local widgets = Internal._utility export type FrameProps = { size: UDim2, automaticSize: Enum.AutomaticSize, verticalAlignment: Enum.VerticalAlignment?, horiz...
478
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/widgets/layouts/List.luau
luau
.luau
-- TODO: virtual lists -- TODO: pagination -- FIXME: this leaks local ButtonGroup = require("../interactions/ButtonGroup") local Flex = require("../styles/Flex") local Iris = require("@src/Iris") local Padding = require("../styles/Padding") local ScrollingFrame = require("./ScrollingFrame") local fzy = require("@inclu...
1,474
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/widgets/layouts/ScrollingFrame.luau
luau
.luau
-- https://discord.com/channels/385151591524597761/1097898141396766771/1455680322279571516 local Iris = require("@src/Iris") local Internal = Iris.Internal local widgets = Internal._utility export type ScrollingFrameProps = { size: UDim2, automaticSize: Enum.AutomaticSize, verticalAlignment: Enum.VerticalAlignment...
705
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/widgets/styles/AspectRatio.luau
luau
.luau
local Iris = require("@src/Iris") local function AspectRatio(ratio: number?, type: Enum.AspectType?) local instance = Instance.new("UIAspectRatioConstraint") instance.Name = "AspectRatio" instance.AspectRatio = ratio or 1 instance.AspectType = type or Enum.AspectType.FitWithinMaxSize Iris.Append(instance) end re...
79
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/widgets/styles/Flex.luau
luau
.luau
local Iris = require("@src/Iris") local function Flex(mode: Enum.UIFlexMode?) local instance = Instance.new("UIFlexItem") instance.Name = "Flex" instance.FlexMode = mode or Enum.UIFlexMode.None Iris.Append(instance) end return Flex
58
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/widgets/styles/FlexSpacer.luau
luau
.luau
local Flex = require("./Flex") local Iris = require("@src/Iris") local function FlexSpacer(mode: Enum.UIFlexMode?) Iris.Group() Flex(mode) Iris.End() end return FlexSpacer
45
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/widgets/styles/Padding.luau
luau
.luau
local Iris = require("@src/Iris") export type PaddingProps = { x: UDim?, y: UDim?, top: UDim?, bottom: UDim?, left: UDim?, right: UDim?, all: UDim?, } local ZERO_UDIM = UDim.new() local function Padding(props: PaddingProps) local instance = Instance.new("UIPadding") instance.Name = "Padding" instance.Padd...
162
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/widgets/styles/Spacer.luau
luau
.luau
local Iris = require("@src/Iris") local function Spacer(spacing: Vector2 | number | nil) Iris.Image({ "rbxassetid://-1", UDim2.fromOffset( (if typeof(spacing) == "Vector2" then spacing.X else spacing) or 8, (if typeof(spacing) == "Vector2" then spacing.Y else spacing) or 8 ), }) end return Spacer
99
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/widgets/typography/Header.luau
luau
.luau
local Iris = require("@src/Iris") export type HeaderProps = { text: string, level: number?, } local function Header(props: HeaderProps) local minSize = Iris._config.TextSize local decrementSize = ((props.level or 1) - 1) * 2 local maxSize = minSize * 3 Iris.PushConfig({ TextSize = math.max(maxSize - decremen...
126
welcomestohell/rocket
welcomestohell-rocket-8775da5/src/widgets/typography/Subtext.luau
luau
.luau
local Iris = require("@src/Iris") local function Subtext(props: { string }) Iris.PushConfig({ TextTransparency = 0.5 }) Iris.Text({ table.concat(props, " ") }) Iris.PopConfig() end return Subtext
54
TeamSwordphin/ShapecastHitbox
TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Hitbox.luau
luau
.luau
--!strict --!native --!optimize 2 local RunService = game:GetService("RunService") local Settings = require(script.Parent.Settings) local Types = require(script.Parent.Types) local Solvers = require(script.Parent.Solvers) local Visualizer = require(script.Parent.Visualizers) function CreateHitbox(instance: Instance?...
2,047
TeamSwordphin/ShapecastHitbox
TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Settings.luau
luau
.luau
return { -- The tag or name of the object to find. Tag = "DmgPoint", Minimum_Stationary_Length = 1, -- Reveal if the debug lines should be visible or not. Debug_Visible = false, Debug_Instance_Raycast_Destroy_Time = 1, Debug_Instance_Spherecast_Destroy_Time = 0.1, Debug_Instance_Blockcast_Destroy_Time = 0.1, ...
171
TeamSwordphin/ShapecastHitbox
TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Solvers/Attachment.luau
luau
.luau
--!strict --!native --!optimize 2 local Settings = require(script.Parent.Parent.Settings) local Types = require(script.Parent.Parent.Types) local Solver = {} function Solver:ToPosition(segment: Types.Segment): Vector3 return segment.Position or segment.Instance.WorldPosition end function Solver:ToDirection(segment...
159
TeamSwordphin/ShapecastHitbox
TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Solvers/Blockcast.luau
luau
.luau
--!strict --!native --!optimize 2 local Types = require(script.Parent.Parent.Types) local Solver = { Solvers = {} } function Solver:Cast(segment: Types.Segment, raycastParams: RaycastParams?): RaycastResult? local direction: Vector3 = Solver.Solvers[segment.Instance.ClassName]:ToDirection(segment) local lastCFrame:...
193
TeamSwordphin/ShapecastHitbox
TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Solvers/Bone.luau
luau
.luau
--!strict --!native --!optimize 2 local Types = require(script.Parent.Parent.Types) local Solver = {} function Solver:ToPosition(segment: Types.Segment): Vector3 return segment.Instance.TransformedWorldCFrame.Position end function Solver:ToDirection(segment: Types.Segment): Vector3 if segment.Position then retur...
131
TeamSwordphin/ShapecastHitbox
TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Solvers/Raycast.luau
luau
.luau
--!strict --!native --!optimize 2 local Types = require(script.Parent.Parent.Types) local Solver = { Solvers = {} } function Solver:Cast(segment: Types.Segment, raycastParams: RaycastParams?): RaycastResult? local solver = Solver.Solvers[segment.Instance.ClassName] local origin: Vector3 = solver:ToPosition(segment)...
110
TeamSwordphin/ShapecastHitbox
TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Solvers/Spherecast.luau
luau
.luau
--!strict --!native --!optimize 2 local Types = require(script.Parent.Parent.Types) local Solver = { Solvers = {} } function Solver:Cast(segment: Types.Segment, raycastParams: RaycastParams?): RaycastResult? local solver = Solver.Solvers[segment.Instance.ClassName] local direction: Vector3 = solver:ToDirection(segm...
125
TeamSwordphin/ShapecastHitbox
TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Solvers/init.luau
luau
.luau
local Solvers = {} for _, solver in script:GetChildren() do local load = require(solver) load.Solvers = Solvers Solvers[solver.Name] = load end return Solvers
44
TeamSwordphin/ShapecastHitbox
TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Types.luau
luau
.luau
--[=[ @class Hitbox Create easy hitboxes using Raycasts and Shapecasts. To start using ShapecastHitbox, first initialize your hitbox via ShapecastHitbox.new(instance). After you have configured it, you can activate the hitbox by calling `Hitbox:HitStart()`. To stop the Hitbox, call `Hitbox:HitStop()`. If you a...
2,791
TeamSwordphin/ShapecastHitbox
TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Visualizers/Blockcast.luau
luau
.luau
--!native --!strict --!optimize 2 --- While using Trails as debugging lines would be nice (and more performant!), they are susceptible to frame drops and are inaccurate --- at low graphic settings which can create false results -- @author Phin local Types = require(script.Parent.Parent.Types) local Settings = require...
770
TeamSwordphin/ShapecastHitbox
TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Visualizers/Raycast.luau
luau
.luau
--!native --!strict --!optimize 2 --- While using Trails as debugging lines would be nice (and more performant!), they are susceptible to frame drops and are inaccurate --- at low graphic settings which can create false results -- @author Phin local Types = require(script.Parent.Parent.Types) local Settings = require...
742
TeamSwordphin/ShapecastHitbox
TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Visualizers/Spherecast.luau
luau
.luau
--!native --!strict --!optimize 2 --- While using Trails as debugging lines would be nice (and more performant!), they are susceptible to frame drops and are inaccurate --- at low graphic settings which can create false results -- @author Phin local Types = require(script.Parent.Parent.Types) local Settings = require...
755
TeamSwordphin/ShapecastHitbox
TeamSwordphin-ShapecastHitbox-ac5c0e0/src/Visualizers/init.luau
luau
.luau
local Visualizers = {} for _, visualizer in script:GetChildren() do local load = require(visualizer) Visualizers[visualizer.Name] = load end return Visualizers
41
TeamSwordphin/ShapecastHitbox
TeamSwordphin-ShapecastHitbox-ac5c0e0/src/init.luau
luau
.luau
--!strict --!native --!optimize 2 -- ShapecastHitbox -- Phin -- August 2024 --[=[ Documentation of the hitbox can be found inside at ShapecastHitbox/Types.luau. This module is still relatively new and experimental, use at your own risk for production-level projects. ]=] local Types = require(script.Types) expor...
481
v-champion/nexus-sync
v-champion-nexus-sync-ceec834/roblox_plugin/src/Nexus Sync/src/Plugin/Modules/Cleanup.luau
luau
.luau
local ScriptEditorService = game:GetService("ScriptEditorService") local Cleanup = {} Cleanup.Functions = {} Cleanup.List = {} function Cleanup:Hook(Service: string | nil, Tag: string | nil) if Service and Tag then Cleanup.Functions[Service] = Tag return true end return Cleanup.List end function Cleanup:Clear...
174
v-champion/nexus-sync
v-champion-nexus-sync-ceec834/roblox_plugin/src/Nexus Sync/src/Plugin/Modules/Output.luau
luau
.luau
local LogService = game:GetService("LogService") local Cleanup = require(script.Parent.Cleanup) local Server = require(script.Parent.Server) local Http = require(script.Parent.Http) local GUID = Http:GUID() local Output = { UploadInterval = 1/15; PendingLogs = false; Busy = false; Logs = { Uploaded = 0; Coun...
759
v-champion/nexus-sync
v-champion-nexus-sync-ceec834/roblox_plugin/src/Nexus Sync/src/Plugin/Modules/Server/Signal.luau
luau
.luau
-------------------------------------------------------------------------------- -- Batched Yield-Safe Signal Implementation -- -- This is a Signal class which has effectively identical behavior to a -- -- normal RBXScriptSignal, with the only difference being a couple extra ...
1,464
v-champion/nexus-sync
v-champion-nexus-sync-ceec834/roblox_plugin/src/Nexus Sync/src/Plugin/Modules/Server/init.luau
luau
.luau
local Settings = require(script.Parent.Settings) local Cleanup = require(script.Parent.Cleanup) local Http = require(script.Parent.Http) local Signal = require(script.Signal) local Server = { Changed = Signal.new(); Disconnected = false; Connecting = false; Connected = false; StartTime = nil; } function Server:...
385
v-champion/nexus-sync
v-champion-nexus-sync-ceec834/roblox_plugin/src/Nexus Sync/src/Plugin/Modules/Settings.luau
luau
.luau
local plugin = plugin or script:FindFirstAncestorWhichIsA("Plugin") local Settings = { ["autoConnect"] = true; ["port"] = 50583; } local function Update(Save: boolean | nil) for Setting, Value in (Settings) do if typeof(Value) ~= "function" then local SavedValue = nil if not Save then SavedValue = plu...
189
v-champion/nexus-sync
v-champion-nexus-sync-ceec834/roblox_plugin/src/Nexus Sync/src/Plugin/Modules/Widget/Gui.luau
luau
.luau
return function() local Settings = Instance.new("Frame") Settings.Name = "Settings" Settings.AnchorPoint = Vector2.new(0.5, 0.5) Settings.BackgroundColor3 = Color3.fromRGB(46, 46, 46) Settings.BorderColor3 = Color3.fromRGB(43, 43, 43) Settings.ClipsDescendants = true Settings.Position = UDim2.fromScale(0.5, 0.5)...
4,831
v-champion/nexus-sync
v-champion-nexus-sync-ceec834/roblox_plugin/src/Nexus Sync/src/Plugin/Modules/Widget/Interface/Status.luau
luau
.luau
return { ["Connect"] = { [true] = { ["TextButton"] = { ["BackgroundColor3"] = Color3.fromRGB(43, 43, 43); }, ["TextLabel"] = { ["TextColor3"] = Color3.fromRGB(255, 255, 255); ["TextTransparency"] = 0 }, ["UIStroke"] = { ["Color"] = Color3.fromRGB(97, 97, 97), ["Transparency"] = 0...
503
v-champion/nexus-sync
v-champion-nexus-sync-ceec834/roblox_plugin/src/Nexus Sync/src/Plugin/Modules/Widget/Interface/Text.luau
luau
.luau
return { ["Disconnected"] = "not connected"; ["Connected"] = "connected"; ["Connecting"] = "connecting"; }
28
v-champion/nexus-sync
v-champion-nexus-sync-ceec834/roblox_plugin/src/Nexus Sync/src/Plugin/Modules/Widget/Interface/Toggle.luau
luau
.luau
return { ["On"] = { [true] = { ["Frame"] = { ["BackgroundTransparency"] = 0 }, ["UIStroke"] = { ["Transparency"] = 0; }, ["ImageLabel"] = { ["ImageTransparency"] = 0 } }, [false] = { ["Frame"] = { ["BackgroundTransparency"] = 1 }, ["UIStroke"] = { ["Transparenc...
319
v-champion/nexus-sync
v-champion-nexus-sync-ceec834/roblox_plugin/src/Nexus Sync/src/Plugin/Modules/Widget/Interface/init.luau
luau
.luau
local Tween = require(script.Parent.Tween) local Interface = {} Interface.List = {} function Interface:Get(Name, Value) if Value then return Interface.List[Name][Value] end return Interface.List[Name] end function Interface:Apply(GuiObject, Data) if Data[GuiObject.ClassName] then for Property, Value in (Data...
306
v-champion/nexus-sync
v-champion-nexus-sync-ceec834/roblox_plugin/src/Nexus Sync/src/Plugin/Modules/Widget/Tween.luau
luau
.luau
local TweenService = game:GetService("TweenService") return function (Object, Goal, Duration, Style, Direction) Direction = Direction or Enum.EasingDirection.Out Style = Style or Enum.EasingStyle.Quad local TweenData = TweenInfo.new( Duration, Style, Direction ) local Animation = TweenService:Create(Obj...
93
v-champion/nexus-sync
v-champion-nexus-sync-ceec834/roblox_plugin/src/Nexus Sync/src/Plugin/Modules/Widget/init.luau
luau
.luau
local plugin = plugin or script:FindFirstAncestorWhichIsA("Plugin") local toolbar = plugin:CreateToolbar("Nexus Sync") local Settings = require(script.Parent.Settings) local Server = require(script.Parent.Server) local Interface = require(script.Interface) local Gui = require(script.Gui) local Widget = { ["Icons"] ...
924
v-champion/nexus-sync
v-champion-nexus-sync-ceec834/roblox_plugin/src/Nexus Sync/src/Plugin/init.server.luau
luau
.luau
local RunService = game:GetService("RunService") if RunService:IsRunMode() then return end plugin.Name = script.Parent.Name local Settings = require(script.Modules.Settings) local Cleanup = require(script.Modules.Cleanup) local Widget = require(script.Modules.Widget) local Output = require(script.Modules.Output) l...
155
EgoMoose/patch-roblox-cameramodule
EgoMoose-patch-roblox-cameramodule-46a5293/src/ProxyTemplate/_Proxy.luau
luau
.luau
--!strict return { value = nil, }
11
EgoMoose/patch-roblox-cameramodule
EgoMoose-patch-roblox-cameramodule-46a5293/src/ProxyTemplate/init.luau
luau
.luau
--!nonstrict local proxyValue = require(script:WaitForChild("_Proxy")) return proxyValue.value
23