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
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
Ethanthegrand/CanvasDraw
Ethanthegrand-CanvasDraw-6843015/src/FastCanvas.luau
luau
.luau
--!native --[[ FastCanvas is a simple, but very fast and efficent drawing canvas with per pixel methods utilising EditableImage. This module was designed to be intergrated with CanvasDraw, A real-time roblox pixel-based graphics library. This can be used on normal GUI Frames AND Decals, Textures, MeshParts,...
3,757
Ethanthegrand/CanvasDraw
Ethanthegrand-CanvasDraw-6843015/src/Fonts/3x6.luau
luau
.luau
--[[ Font: 3x6 Desc: A very small font set. Designed to fit easily within low res canveses while still being legible. 96 Characters are supported ]] return { Lower = false, CharacterSize = Vector2.new(3, 6), Padding = 1, Bitmap = { [" "] = {0b000,0b000,0b000,0b000,0b000,0b000}, ["!"] = {0b010,0b010...
3,046
Ethanthegrand/CanvasDraw
Ethanthegrand-CanvasDraw-6843015/src/Fonts/Atari.luau
luau
.luau
--[[ Font: Atari (ATASCII) Desc: A simple and easy to read 8x8 font set. 97 Characters are supported ]] return { Lower = false, CharacterSize = Vector2.new(8, 8), Padding = -1, Bitmap = { [" "] = {0b00000000,0b00000000,0b00000000,0b00000000,0b00000000,0b00000000,0b00000000,0b00000000}, ["!"] = {0b00000000...
5,342
Ethanthegrand/CanvasDraw
Ethanthegrand-CanvasDraw-6843015/src/Fonts/Codepage.luau
luau
.luau
--[[ Font: Code page 437 - 8x8 Desc: A detailed font which was used on old IMB PCs. 254 Characters are supported ]] return { Lower = false, CharacterSize = Vector2.new(8, 8), Padding = 0, Bitmap = { --["NUL"] = {0b00000000,0b00000000,0b00000000,0b00000000,0b00000000,0b00000000,0b00000000,0b00000000}, [...
14,235
Ethanthegrand/CanvasDraw
Ethanthegrand-CanvasDraw-6843015/src/Fonts/CodepageLarge.luau
luau
.luau
--[[ Font: Code page 437 - 9x16 (VGA version) Desc: A detailed font which was used on old IMB PCs. 254 Characters are supported ]] return { Lower = false, CharacterSize = Vector2.new(9, 16), Padding = 0, Bitmap = { --["NUL"] = {0b000000000,0b000000000,0b000000000,0b000000000,0b000000000,0b000000000,0b00...
26,528
Ethanthegrand/CanvasDraw
Ethanthegrand-CanvasDraw-6843015/src/Fonts/GrandCD.luau
luau
.luau
--[[ Font: GrandCD Desc: A thin 7x8 font set that I designed for CanvasDraw. 92 Characters are supported ]] return { Lower = false, CharacterSize = Vector2.new(7, 8), Padding = 0, Bitmap = { [" "] = {0b0000000,0b0000000,0b0000000,0b0000000,0b0000000,0b0000000,0b0000000,0b0000000}, ["!"] = {0b0000000,0b000...
5,119
Ethanthegrand/CanvasDraw
Ethanthegrand-CanvasDraw-6843015/src/Fonts/Monogram.luau
luau
.luau
--[[ Font: Monogram Desc: A 6x10 font set based on Monogram. 91 Characters are supported ]] return { Lower = false, CharacterSize = Vector2.new(6, 10), Padding = 0, Bitmap = { ["A"] = {0b000000,0b011100,0b100010,0b100010,0b100010,0b111110,0b100010,0b100010,0b000000,0b000000}, ["B"] = {0b000000,0b111100,0b...
5,244
Ethanthegrand/CanvasDraw
Ethanthegrand-CanvasDraw-6843015/src/Fonts/Round.luau
luau
.luau
--[[ Font: Round Desc: A round 6x6 font set. 90 Characters are supported ]] return { Lower = false, CharacterSize = Vector2.new(6, 6), Padding = 0, Bitmap = { ["A"] = {0b011100,0b100010,0b111110,0b100010,0b100010,0b000000}, ["B"] = {0b111100,0b100010,0b111100,0b100010,0b111100,0b000000}, ["C"] = {0b0111...
3,421
Ethanthegrand/CanvasDraw
Ethanthegrand-CanvasDraw-6843015/src/ImageDataConstructor.luau
luau
.luau
--!native local Module = {} local Lerp = math.lerp local bit32bor = bit32.bor local bit32lshift = bit32.lshift local AssetService = game:GetService("AssetService") function Module.new(ImageDataResX, ImageDataResY, Buffer) local ImageData = { ImageBuffer = Buffer, ImageResolution = Vector2.new(ImageDataResX, Im...
3,634
Ethanthegrand/CanvasDraw
Ethanthegrand-CanvasDraw-6843015/src/SaveObjectReader.luau
luau
.luau
--!native --!optimize 2 --[[ The main module which handles loading SaveObjects, which are offline texture instances that are stored in the place itself rather outside on the cloud. This module is designed to be backwards compataible and be able to load any version of the CanvasDraw SaveObject along with other fo...
1,169
Ethanthegrand/CanvasDraw
Ethanthegrand-CanvasDraw-6843015/src/StringCompressor.luau
luau
.luau
--!native -- Module by 1waffle1, optimized by boatbomber -- https://devforum.roblox.com/t/text-compression/163637 local gsub = string.gsub local sub = string.sub local insert = table.insert local rep = string.rep local dictionary = {} do -- populate dictionary local length = 0 for i = 32, 127 do if i ~= 34 and i...
958
Ethanthegrand/CanvasDraw
Ethanthegrand-CanvasDraw-6843015/src/VectorFuncs.luau
luau
.luau
local Abs = math.abs function getNormalFromPartFace(part, normalId) return part.CFrame:VectorToWorldSpace(Vector3.FromNormalId(normalId)) end function normalVectorToFace(part, normalVector) local normalIDs = { Enum.NormalId.Front, Enum.NormalId.Back, Enum.NormalId.Bottom, Enum.NormalId.Top, Enum.NormalId....
507
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
EgoMoose/patch-roblox-cameramodule
EgoMoose-patch-roblox-cameramodule-46a5293/src/init.luau
luau
.luau
--!strict local ProxyTemplate = script:WaitForChild("ProxyTemplate") :: ModuleScript type ProxyValue<T> = { value: T } local function unknownRequire(instance: Instance) assert(instance:IsA("ModuleScript"), "The provided instance was not a ModuleScript.") return require(instance) :: any end local function createMo...
648
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
Pyseph/ObjectCache
Pyseph-ObjectCache-5775fc7/src/init.luau
luau
.luau
--!strict --!native local FAR_AWAY_CFRAME = CFrame.new(2^24, 2^24, 2^24) local EXPAND_BY_AMOUNT = 50 local MovingParts = table.create(10_000) local MovingCFrames = table.create(10_000) local ScheduledUpdate = false local function UpdateMovement() while true do workspace:BulkMoveTo(MovingParts, MovingCFrames, Enum....
1,384
PogoDigitalism/BetterReplication
PogoDigitalism-BetterReplication-6b337ba/src/BetterReplication/Interface/Client/PositionCache.luau
luau
.luau
-- A client-sided utility that you can use to access non-interpolated (!!!) player positions return {} :: {[Player]: CFrame}
30
PogoDigitalism/BetterReplication
PogoDigitalism-BetterReplication-6b337ba/src/BetterReplication/Interface/Client/ReplicationHandler.luau
luau
.luau
local Players = game:GetService('Players') local BetterReplication = script.Parent.Parent local Config = require(BetterReplication.Config) local BufferUtils = require(BetterReplication.Lib.BufferUtils) local Utils = require(BetterReplication.Lib.Utils) local FromClient = BetterReplication.Remotes.FromClient local pl...
484
PogoDigitalism/BetterReplication
PogoDigitalism-BetterReplication-6b337ba/src/BetterReplication/Interface/Config.luau
luau
.luau
local Config = { -- not recommended to change these values at runtime -- from how many studs should players not be replicated with BetterReplication anymore? proximityThreshold = 100, -- default: 100 -- ship the whole cframe orientation instead of only the yaw axis to make the humanoidrootpart interpolate accur...
231
PogoDigitalism/BetterReplication
PogoDigitalism-BetterReplication-6b337ba/src/BetterReplication/Interface/Example/ServerScriptService/SanityChecker.server.luau
luau
.luau
local BetterReplication = require(game.ReplicatedStorage.BetterReplication.Interface) BetterReplication.start() BetterReplication.bindSanityCheck(function(data) print(data.t, data.c) return true end)
44
PogoDigitalism/BetterReplication
PogoDigitalism-BetterReplication-6b337ba/src/BetterReplication/Interface/Example/StarterCharacterScripts/Interpolation.client.luau
luau
.luau
local BetterReplication = require(game.ReplicatedStorage.BetterReplication.Interface) BetterReplication.startReplication()
24
PogoDigitalism/BetterReplication
PogoDigitalism-BetterReplication-6b337ba/src/BetterReplication/Interface/Example/StarterPlayerScripts/Replication.client.luau
luau
.luau
local BetterReplication = require(game.ReplicatedStorage.BetterReplication.Interface) BetterReplication.startInterpolater()
25
PogoDigitalism/BetterReplication
PogoDigitalism-BetterReplication-6b337ba/src/BetterReplication/Interface/Lib/BufferUtils.luau
luau
.luau
type from_client_packet = { t: number, c: CFrame } type to_client_packet = { t: number, p: number, c: CFrame } type register_identifier = { p: string, id: number } local writef16, readf16 do local EXPONENT_BIAS = 14 local SIGN_OFFSET = 2 ^ 15 local EXPONENT_OFFSET = 2 ^ 10 local MANTISSA_OFFSET = 2 ^ 10 ...
2,282
PogoDigitalism/BetterReplication
PogoDigitalism-BetterReplication-6b337ba/src/BetterReplication/Interface/Lib/Snapshots.luau
luau
.luau
-- Implementation by Pogo. Used for the replication buffer implementation. --!strict local clock = os.clock local Snapshot = {} Snapshot.__index = Snapshot type datetime = number export type Snapshot = { -- fields _subject: Player?, _cache: { { o: CFrame, at: datetime } }, -- methods pushAt: (self: ...
758
PogoDigitalism/BetterReplication
PogoDigitalism-BetterReplication-6b337ba/src/BetterReplication/Interface/Lib/Utils.luau
luau
.luau
-- Thanks Tazmondo for this util suggestion local RunService = game:GetService('RunService') local Utils = {} function Utils.FrequencyPostSimulation(callback: (number) -> (), frequency: number) local last = time() frequency = 1/frequency return RunService.PostSimulation:Connect(function() local dt = time() - las...
177
PogoDigitalism/BetterReplication
PogoDigitalism-BetterReplication-6b337ba/src/BetterReplication/Interface/Rig/Animate.client.luau
luau
.luau
-- humanoidAnimateR15Moods.lua local Character = script.Parent local Humanoid = Character:WaitForChild("Humanoid") local pose = "Standing" local userNoUpdateOnLoopSuccess, userNoUpdateOnLoopValue = pcall(function() return UserSettings():IsUserFeatureEnabled("UserNoUpdateOnLoop") end) local userNoUpdateOnLoop = userNo...
6,319
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Constructors/Connections/OnAttached.luau
luau
.luau
-- Author: iGottic local OnAttached = {} -- Types export type OnAttached = (Object : any, Callback : (AttachedInstance : Instance) -> nil) -> RBXScriptConnection function OnAttached:__call(Object : any, Callback : (AttachedInstance : Instance) -> nil) return (Object.AttachedToInstance :: RBXScriptSignal):Connect...
172
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Constructors/Connections/OnAttributeChanged.luau
luau
.luau
-- Author: iGottic local OnAttributeChanged = {} -- Types export type OnAttributeChanged = (AttributeName : string) -> (...any) -> RBXScriptConnection function OnAttributeChanged:__call(AttributeName : string) local ActiveConnection : RBXScriptConnection = nil local EventBinding = setmetatable({ Des...
264
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Constructors/Connections/OnChanged.luau
luau
.luau
-- Author: iGottic local OnChanged = {} -- Types export type OnChanged = (Object : any, Callback : (PropertyChanged : string, NewValue : any) -> nil) -> RBXScriptConnection function OnChanged:__call(Object : any, Callback : (PropertyChanged : string, NewValue : any) -> nil) -- Fortunately, states also have a Cha...
210
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Constructors/Connections/OnEvent.luau
luau
.luau
-- Author: iGottic local OnEvent = {} -- Types export type OnEvent = (EventName : string) -> (...any) -> RBXScriptConnection function OnEvent:__call(EventName : string) local ActiveConnection : RBXScriptConnection = nil local EventBinding = setmetatable({ Destroy = function() if ActiveCo...
282
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Constructors/Declarations/Attribute.luau
luau
.luau
-- Author: iGottic local Attribute = {} -- Imports local Modules = script.Parent.Parent.Parent.Modules local Types = require(Modules.Types) local Symbol = require(Modules.Symbol) -- Variable local ClassSymbol = Symbol.new("Attribute") -- Types Extended export type Attribute = (AttributeName : string) -> (Object : I...
546
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Constructors/Declarations/Children.luau
luau
.luau
-- Author: iGottic local Children = {} -- Imports local Modules = script.Parent.Parent.Parent.Modules local Types = require(Modules.Types) local Symbol = require(Modules.Symbol) -- Variables local ClassSymbol = Symbol.new("Children") -- Types Extended export type Children = (Object : Instance, Children : {Types.Chi...
644
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Constructors/Declarations/Component.luau
luau
.luau
-- Author: iGottic -- Imports local Scope = require(script.Parent.Parent.Memory.Scope) local Symbol = require(script.Parent.Parent.Parent.Modules.Symbol) -- Types extended export type Component = ({[any] : any}) -> (Scope.ScopeInstance?, {[string] : any}) -> any local function Component(ComponentModule : {[any] : an...
339
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Constructors/Declarations/Destroyed.luau
luau
.luau
-- Author: iGottic local Destroyed = {} -- Types export type Destroyed = (Object : Instance, Callback : () -> nil) -> nil -- Imports local Modules = script.Parent.Parent.Parent.Modules local Symbol = require(Modules.Symbol) -- Variables local ClassSymbol = Symbol.new("Destroyed") function Destroyed:__call(Object :...
165
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Constructors/Declarations/EventSequence.luau
luau
.luau
-- Author: iGottic local EventSequence = {} -- Imports local Modules = script.Parent.Parent.Parent.Modules local Symbol = require(Modules.Symbol) local Trove = require(Modules.Trove) local UpdateSignals = require(Modules.UpdateSignals) -- Types extended export type SequenceKeyframe = {number | () -> nil} export typ...
804
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Constructors/Declarations/FollowAttribute.luau
luau
.luau
-- Author: iGottic local FollowAttribute = {} -- Imports local Modules = script.Parent.Parent.Parent.Modules local Types = require(Modules.Types) local Symbol = require(Modules.Symbol) -- Variables local ClassSymbol = Symbol.new("FollowAttribute") -- Types Extended export type FollowAttribute = (AttributeName : str...
472
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Constructors/Declarations/FollowProperty.luau
luau
.luau
-- Author: iGottic local FollowProperty = {} -- Imports local Modules = script.Parent.Parent.Parent.Modules local Types = require(Modules.Types) local Symbol = require(Modules.Symbol) -- Variables local ClassSymbol = Symbol.new("FollowProperty") -- Types Extended export type FollowProperty = (PropertyName : string)...
462
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Constructors/Declarations/Lifetime.luau
luau
.luau
-- Author: iGottic local Lifetime = {} -- Types export type Lifetime = (Object : Instance, CleanupTime : number) -> nil -- Services local DebrisService = game:GetService("Debris") -- Imports local Modules = script.Parent.Parent.Parent.Modules local Symbol = require(Modules.Symbol) -- Variables local ClassSymbol = ...
205
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Constructors/Declarations/New.luau
luau
.luau
-- Author: iGottic local New = {} -- Imports local Modules = script.Parent.Parent.Parent.Modules local Symbol = require(Modules.Symbol) local CreateDeepTraceback = require(Modules.CreateDeepTraceback) local Scope = require(script.Parent.Parent.Memory.Scope) local Children = require(script.Parent.Children) -- Types e...
571
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Constructors/Declarations/StyleSheet.luau
luau
.luau
-- Author: iGottic local StyleSheet = {} -- Services local CollectionService = game:GetService("CollectionService") -- Imports local Modules = script.Parent.Parent.Parent.Modules local Symbol = require(Modules.Symbol) -- Constants local API_MESSAGE_NAME = "SEAM_STYLESHEET" -- Variables local DeclarationSymbol = Sy...
1,861
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Constructors/Declarations/Tags.luau
luau
.luau
-- Author: iGottic local Tags = {} -- Types export type Tags = (Object : Instance, AddedTags : {string}) -> nil -- Imports local Modules = script.Parent.Parent.Parent.Modules local Symbol = require(Modules.Symbol) -- Variables local ClassSymbol = Symbol.new("Tags") function Tags:__call(Object : Instance, AddedTags...
174
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Constructors/Memory/Scope.luau
luau
.luau
-- Author: iGottic local Scope = {} -- Imports local Constructors = script.Parent.Parent local Modules = Constructors.Parent.Modules local States = Constructors.States local Trove = require(Modules.Trove) local Types = require(Modules.Types) local Symbol = require(Modules.Symbol) local CreateDeepTraceback = require(M...
1,874
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Constructors/States/Animation/Spring.luau
luau
.luau
-- Author: iGottic local Spring = {} -- Constants local EPSILON = 0.001 -- Imports local Constructors = script.Parent.Parent.Parent local Modules = Constructors.Parent.Modules local Batch = require(Modules.Batch) local GetValue = require(Constructors.Utilities.GetValue) local StateManager = require(Modules.StateMana...
2,237
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Constructors/States/Animation/Tween.luau
luau
.luau
-- Author: iGottic local Tween = {} -- Constants local EPSILON = 0.001 -- Services local TweenService = game:GetService("TweenService") -- Imports local Constructors = script.Parent.Parent.Parent local Modules = Constructors.Parent.Modules local Batch = require(Modules.Batch) local GetValue = require(Constructors.U...
1,342
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Constructors/States/Bezier.luau
luau
.luau
-- Author: iGottic local Bezier = {} -- Imports local Constructors = script.Parent.Parent local Modules = Constructors.Parent.Modules local Computed = require(script.Parent.Computed) local Value = require(script.Parent.Value) local GetValue = require(Constructors.Utilities.GetValue) local ValuePacker = require(Module...
1,708
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Constructors/States/Computed.luau
luau
.luau
-- Author: iGottic local Computed = {} -- Imports local Modules = script.Parent.Parent.Parent.Modules local Batch = require(Modules.Batch) local StateManager = require(Modules.StateManager) local Trove = require(Modules.Trove) local Signal = require(Modules.Signal) local Types = require(Modules.Types) local Symbol = ...
992
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Constructors/States/ForPairs.luau
luau
.luau
-- Author: iGottic local ForPairs = {} -- Imports local Modules = script.Parent.Parent.Parent.Modules local Types = require(Modules.Types) local Symbol = require(Modules.Symbol) local CreateDeepTraceback = require(Modules.CreateDeepTraceback) local Computed = require(script.Parent.Computed) local Value = require(scri...
531
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Constructors/States/Rendered.luau
luau
.luau
-- Author: iGottic local Rendered = {} -- Imports local Modules = script.Parent.Parent.Parent.Modules local Batch = require(Modules.Batch) local StateManager = require(Modules.StateManager) local Trove = require(Modules.Trove) local Signal = require(Modules.Signal) local Types = require(Modules.Types) local Symbol = ...
607