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
GamebeastGG/RobloxSDK
GamebeastGG-RobloxSDK-f53296a/src/Infra/Server/Modules/PlayerStats.luau
luau
.luau
--[[ The Gamebeast SDK is Copyright © 2023 Gamebeast, Inc. to present. All rights reserved. PlayerStats.luau Description: Holds general player state data. --]] --= Root =-- local PlayerStats = { } --= Roblox Services =-- local Players = game:GetService("Players") --= Dependenc...
597
GamebeastGG/RobloxSDK
GamebeastGG-RobloxSDK-f53296a/src/Infra/Server/Modules/RequestFunctionHandler/RequestFunctions.luau
luau
.luau
-- The Gamebeast SDK is Copyright © 2023 Gamebeast, Inc. to present. -- All rights reserved. local Players = game:GetService("Players") local ChatService = game:GetService("Chat") local Updater = shared.GBMod("Updater") local Utilities = shared.GBMod("Utilities") local Experiments = shared.GBMod("InternalExperiments")...
1,123
GamebeastGG/RobloxSDK
GamebeastGG-RobloxSDK-f53296a/src/Infra/Server/Modules/ServerClientInfoHandler.lua
luau
.lua
--[[ The Gamebeast SDK is Copyright © 2023 Gamebeast, Inc. to present. All rights reserved. ServerClientInfoHandler.lua Description: No description provided. --]] --= Root =-- local ServerClientInfoHandler = { } --= Roblox Services =-- local Players = game:GetService("Players")...
1,625
GamebeastGG/RobloxSDK
GamebeastGG-RobloxSDK-f53296a/src/Infra/Server/Modules/ServerGate.lua
luau
.lua
--[[ The Gamebeast SDK is Copyright © 2023 Gamebeast, Inc. to present. All rights reserved. ServerGate.lua Description: No description provided. --]] --= Root =-- local ServerGate = { } --= Roblox Services =-- local Players = game:GetService("Players") local RunService = game:GetSe...
638
GamebeastGG/RobloxSDK
GamebeastGG-RobloxSDK-f53296a/src/Infra/Server/Modules/ServerStateReporter.luau
luau
.luau
--[[ The Gamebeast SDK is Copyright © 2023 Gamebeast, Inc. to present. All rights reserved. ServerStateReporter.luau Description: Tracks various metrics, records them to MetricCollector. Records incoming metrics from ClientExporter. Reports the server state to the backend. ]...
1,296
GamebeastGG/RobloxSDK
GamebeastGG-RobloxSDK-f53296a/src/Infra/Server/Modules/Utilities/Queue.luau
luau
.luau
-- The Gamebeast SDK is Copyright © 2023 Gamebeast, Inc. to present. -- All rights reserved. -- Simple queue implementation. -- Good to avoid an O(n) operation each time we want to process a single request. local queue = {} function queue.new() local q = { first = 0, last = -1, len = 0 } function q.push(lis...
176
GamebeastGG/RobloxSDK
GamebeastGG-RobloxSDK-f53296a/src/Infra/Server/Modules/Utilities/init.luau
luau
.luau
-- The Gamebeast SDK is Copyright © 2023 Gamebeast, Inc. to present. -- All rights reserved. local marketplaceService = game:GetService("MarketplaceService") local messagingService = game:GetService("MessagingService") local httpService = game:GetService("HttpService") local runService = game:GetService("RunService") ...
2,293
GamebeastGG/RobloxSDK
GamebeastGG-RobloxSDK-f53296a/src/Infra/Server/Public/Cohorts.lua
luau
.lua
--[[ The Gamebeast SDK is Copyright © 2023 Gamebeast, Inc. to present. All rights reserved. Cohorts.lua Description: Public API module for Cohorts Service. --]] --= Root =-- local Cohorts = { } --= Roblox Services =-- local ReplicatedStorage = game:GetService("ReplicatedStorage"...
210
GamebeastGG/RobloxSDK
GamebeastGG-RobloxSDK-f53296a/src/Infra/Server/Public/Configs.lua
luau
.lua
--[[ The Gamebeast SDK is Copyright © 2023 Gamebeast, Inc. to present. All rights reserved. Configs.lua Description: Server-side API for accessing and observing configuration data. --]] --= Root =-- local Configs = { } --= Roblox Services =-- local ReplicatedStorage = game:GetS...
591
GamebeastGG/RobloxSDK
GamebeastGG-RobloxSDK-f53296a/src/Infra/Server/Public/Events.lua
luau
.lua
--[[ The Gamebeast SDK is Copyright © 2023 Gamebeast, Inc. to present. All rights reserved. Events.lua Description: Public API for managing definined events. --]] --= Root =-- local Events = { } --= Roblox Services =-- --= Dependencies =-- local EventsManager = shared.GBMod("E...
258
GamebeastGG/RobloxSDK
GamebeastGG-RobloxSDK-f53296a/src/Infra/Server/Public/Experiments.luau
luau
.luau
local Experiments = {} local InternalExperiments = shared.GBMod("InternalExperiments") local Types = require(script.Parent.Parent.Parent.Types) --[[ Returns information about the experiment group currently assigned to the player, if any. ]] function Experiments:GetGroupForPlayer(player: Player): Types.ExperimentG...
122
GamebeastGG/RobloxSDK
GamebeastGG-RobloxSDK-f53296a/src/Infra/Server/Public/Jobs.lua
luau
.lua
--[[ The Gamebeast SDK is Copyright © 2023 Gamebeast, Inc. to present. All rights reserved. Jobs.lua Description: Handles public facing API for binding to custom jobs. --]] --= Root =-- local Jobs = { } --= Roblox Services =-- --= Dependencies =-- local RequestFunctionHandler ...
179
GamebeastGG/RobloxSDK
GamebeastGG-RobloxSDK-f53296a/src/Infra/Server/Public/Markers.lua
luau
.lua
--[[ The Gamebeast SDK is Copyright © 2023 Gamebeast, Inc. to present. All rights reserved. Markers.lua Description: Server-side API for sending engagement markers. --]] --= Root =-- local Markers = { } --= Roblox Services =-- local Players = game:GetService("Players") --= Dep...
457
GamebeastGG/RobloxSDK
GamebeastGG-RobloxSDK-f53296a/src/Infra/Shared/Modules/Cleaner.lua
luau
.lua
--[[ The Gamebeast SDK is Copyright © 2023 Gamebeast, Inc. to present. All rights reserved. Cleaner.lua Description: A utility module for managing and cleaning up objects and connections. --]] --= Root =-- local Cleaner = {} Cleaner.__index = Cleaner --= Roblox Services =-- --= De...
270
GamebeastGG/RobloxSDK
GamebeastGG-RobloxSDK-f53296a/src/Infra/Shared/Modules/DataCache.lua
luau
.lua
--[[ The Gamebeast SDK is Copyright © 2023 Gamebeast, Inc. to present. All rights reserved. DataCache.lua Description: Simple module for caching data that can be accessed by other modules. --]] --= Root =-- local DataCache = { } --= Roblox Services =-- local ReplicatedStorage = ...
181
GamebeastGG/RobloxSDK
GamebeastGG-RobloxSDK-f53296a/src/Infra/Shared/Modules/GetRemote.luau
luau
.luau
--[[ The Gamebeast SDK is Copyright © 2023 Gamebeast, Inc. to present. All rights reserved. GetRemote.luau Description: A utility module for retrieving or creating remote functions or events. --]] --= Roblox Services =-- local RunService = game:GetService("RunService") --= Depe...
379
GamebeastGG/RobloxSDK
GamebeastGG-RobloxSDK-f53296a/src/Infra/Shared/Modules/MetricCollector.lua
luau
.lua
--[[ The Gamebeast SDK is Copyright © 2023 Gamebeast, Inc. to present. All rights reserved. MetricCollector.luau Description: Holds history for various metrics. Used for reporting server and client memory usage, ping and fps. ]] --= Root =-- local MetricCollector = {} --= Roblox Servic...
372
GamebeastGG/RobloxSDK
GamebeastGG-RobloxSDK-f53296a/src/Infra/Shared/Modules/Schema.lua
luau
.lua
--[[ The Gamebeast SDK is Copyright © 2023 Gamebeast, Inc. to present. All rights reserved. Schema.lua Description: No description provided. --]] --= Root =-- local Schema = {} Schema.__index = Schema --= Roblox Services =-- --= Dependencies =-- --= Types =-- --= Object Referenc...
533
GamebeastGG/RobloxSDK
GamebeastGG-RobloxSDK-f53296a/src/Infra/Shared/Modules/Signal/SignalConnection.lua
luau
.lua
-- The Gamebeast SDK is Copyright © 2023 Gamebeast, Inc. to present. -- All rights reserved. --[[ SignalConnection.lua Description: Emulates a RBXScriptConnection for signals, allowing for connection management --]] --= Root =-- local SignalConnection = {} SignalConnection.__index = SignalConnect...
237
GamebeastGG/RobloxSDK
GamebeastGG-RobloxSDK-f53296a/src/Infra/Shared/Modules/Signal/init.lua
luau
.lua
-- The Gamebeast SDK is Copyright © 2023 Gamebeast, Inc. to present. -- All rights reserved. --[[ Signal.lua Description: Custom signal class that doesnt use Roblox's deffered signal system. --]] --= Root =-- local Signal = {} Signal.__index = Signal --= Dependencies =-- local SignalConnec...
798
GamebeastGG/RobloxSDK
GamebeastGG-RobloxSDK-f53296a/src/Infra/Shared/Modules/SignalTimeout.lua
luau
.lua
--[[ The Gamebeast SDK is Copyright © 2023 Gamebeast, Inc. to present. All rights reserved. SignalTimeout.lua Description: Wrap a signal with a timeout. --]] --= Root =-- local SignalTimeout = {} SignalTimeout.__index = SignalTimeout --= Roblox Services =-- local RunService = game...
453
GamebeastGG/RobloxSDK
GamebeastGG-RobloxSDK-f53296a/src/Infra/Shared/Modules/Timer.lua
luau
.lua
--[[ The Gamebeast SDK is Copyright © 2023 Gamebeast, Inc. to present. All rights reserved. Timer.lua Description: Simple timer that fires a signal when the time is up. --]] --= Root =-- local Timer = {} Timer.__index = Timer --= Roblox Services =-- local RunService = game:GetServ...
335
GamebeastGG/RobloxSDK
GamebeastGG-RobloxSDK-f53296a/src/Infra/Types.luau
luau
.luau
type SDKSettings = { -- Enables SDK warnings for API misuse, internal errors, etc. sdkWarningsEnabled : boolean, -- Enables stack trace inclusion with warning messages. includeWarningStackTrace : boolean, -- Enables SDK debug messages for internal state changes, etc. sdkDebugEnabled : boolean, -- Custom URL for ...
839
GamebeastGG/RobloxSDK
GamebeastGG-RobloxSDK-f53296a/src/License.server.lua
luau
.lua
--[[ GAMEBEAST INC. COMMUNITY LICENSE AGREEMENT Version Release Date: April 25, 2024 "Agreement" means the terms and conditions for use, reproduction, distribution, and modification of the Gamebeast Materials set forth herein. "Documentation" means the specifications, manuals, and documentation accompanying Gamebeas...
547
GamebeastGG/RobloxSDK
GamebeastGG-RobloxSDK-f53296a/src/init.lua
luau
.lua
--[[ The Gamebeast SDK is Copyright © 2023 Gamebeast, Inc. to present. All rights reserved. Gamebeast.lua Description: Primary SDK entry point and module loader. --]] --= Root =-- local Gamebeast = { } --= Roblox Services =-- local RunService = game:GetService("RunService") --= Dependencies =-- local ...
1,716
GamebeastGG/RobloxSDK
GamebeastGG-RobloxSDK-f53296a/tests/StartTest.client.luau
luau
.luau
local ReplicatedFirst = game:GetService("ReplicatedFirst") local ReplicatedStorage = game:GetService("ReplicatedStorage") local Tester = require(ReplicatedFirst:WaitForChild("Tests").Tester) local ClientTestRemote = ReplicatedStorage:WaitForChild("TestRunnerRemote") ClientTestRemote.OnClientEvent:Connect(function() ...
81
GamebeastGG/RobloxSDK
GamebeastGG-RobloxSDK-f53296a/tests/StartTest.server.luau
luau
.luau
local ReplicatedFirst = game:GetService("ReplicatedFirst") local ReplicatedStorage = game:GetService("ReplicatedStorage") local Tester = require(ReplicatedFirst.Tests.Tester) local ClientTestRemote = Instance.new("RemoteEvent", ReplicatedStorage) ClientTestRemote.Name = "TestRunnerRemote" ClientTestRemote:SetAttribut...
211
GamebeastGG/RobloxSDK
GamebeastGG-RobloxSDK-f53296a/tests/Tester.luau
luau
.luau
--[[ The Gamebeast SDK is Copyright © 2023 Gamebeast, Inc. to present. All rights reserved. Tester.luau Description: Tester module to run tests. Run tests in studio. 1. Press play 2. Switch to server context 3. Go to replicatedStorage and find the Test ...
445
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/lune/Utils/colors.luau
luau
.luau
local colors = { red = function(str) return `\27[31m{str}\27[39m` end, green = function(str) return `\27[32m{str}\27[39m` end, yellow = function(str) return `\27[33m{str}\27[39m` end, blue = function(str) return `\27[34m{str}\27[39m` end, grey = function(str) return `\27[90m{str}\27[39m` end, bold ...
146
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/lune/Utils/createSequence.luau
luau
.luau
local DateTime = require("@lune/datetime") local process = require("@lune/process") local c = require("./colors") local generateUuid = require("./generateUuid") local shortUuid = require("./shortUuid") local trim = require("./trim") export type Command = { label: string?, exec: string | (sessionId: string, args: {...
565
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/lune/Utils/fsWatch.luau
luau
.luau
local DateTime = require("@lune/datetime") local fs = require("@lune/fs") local process = require("@lune/process") local task = require("@lune/task") local DEFAULT_POLL_INTERVAL = 5 local SESSION_START = DateTime.now() local function powershellGetLastModified(dir: string?) if not dir or not fs.isDir(dir) then retu...
389
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/lune/Utils/generateUuid.luau
luau
.luau
--!strict local function generateUuid() local template = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx" local result = string.gsub(template, "[xy]", function(c) local v = (c == "x") and math.random(0, 0xf) or math.random(8, 0xb) return string.format("%x", v) end) return result end return generateUuid
88
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/lune/Utils/shortUuid.luau
luau
.luau
--!strict local generateUuid = require("./generateUuid") local function shortUuid(uuid: string?) if uuid then return uuid:sub(1, 7) end return shortUuid(generateUuid()) end return shortUuid
51
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/lune/Utils/trim.luau
luau
.luau
local function trim(str: string): string local trimmed = str:gsub("^%s*(.-)%s*$", "%1") return trimmed end return trim
35
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/lune/build.luau
luau
.luau
local DateTime = require("@lune/datetime") local fs = require("@lune/fs") local process = require("@lune/process") local serde = require("@lune/serde") local task = require("@lune/task") local c = require("./Utils/colors") local createSequence = require("./Utils/createSequence") local trim = require("./Utils/trim") lo...
1,769
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/lune/wally-install.luau
luau
.luau
local fs = require("@lune/fs") local c = require("./Utils/colors") local createSequence = require("./Utils/createSequence") type Command = { label: string?, exec: string | (sessionId: string, args: { string }) -> (), args: { string }?, when: ((sessionId: string) -> boolean)?, } local removedPackages = false loca...
317
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Assets/IconMap.luau
luau
.luau
-- This file was @generated by Tarmac. It is not intended for manual editing. return { Icons = { backspace = function(dpiScale) if dpiScale >= 3 then return { Image = "rbxassetid://113892098394283", ImageRectOffset = Vector2.new(0, 0), ImageRectSize = Vector2.new(48, 48), } elseif dpiSca...
4,834
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Assets/MaterialVariants.luau
luau
.luau
export type Variant = { surfaceType: Enum.SurfaceType, colorMap: string, normalMap: string, studsPerTile: number, } return { glue = { surfaceType = Enum.SurfaceType.Glue, colorMap = "rbxassetid://10509635556", normalMap = "rbxassetid://10509645465", studsPerTile = 1, }, inlet = { surfaceType = Enum.Su...
328
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/App.luau
luau
.luau
local React = require("@pkgs/React") local PluginFacade = require("./PluginFacade") local SelectionTracker = require("./Widgets/SelectionTracker") local StudioPluginProvider = require("./Components/StudioPlugin/StudioPlugin").Provider local ViewportWidget = require("./Widgets/ViewportWidget") local e = React.createEl...
132
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/ClassicMenu.luau
luau
.luau
local plugin: Plugin = plugin or script:FindFirstAncestorOfClass("Plugin") local HttpService = game:GetService("HttpService") local Studio = settings():GetService("Studio") local IconMap = require("@root/Assets/IconMap") local Preferences = require("@root/Stores/Preferences") local Icon = require("./Components/Icon")...
806
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Components/ComponentGroup.luau
luau
.luau
local React = require("@pkgs/React") local useDefaultProps = require("../Hooks/useDefaultProps") local useTheme = require("../Hooks/useTheme") local memo = React.memo local e = React.createElement local function ComponentGroup(props: { orientation: ("horizontal" | "vertical")?, spacing: UDim?, native: { [string]:...
324
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Components/Divider.luau
luau
.luau
local React = require("@pkgs/React") local useDefaultProps = require("../Hooks/useDefaultProps") local useTheme = require("../Hooks/useTheme") local e = React.createElement local memo = React.memo local function Divider(props: { orientation: ("horizontal" | "vertical")?, native: { [string]: any }?, }) local theme...
209
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Components/Gizmos/NormalGizmo.luau
luau
.luau
local React = require("@pkgs/React") local e = React.createElement local LINE_THICKNESS = 0.15 local LINE_ZINDEX = 2 local function LeftRightWirebox(props: { normal: Enum.NormalId, part: BasePart, color: Color3?, }) if props.normal ~= Enum.NormalId.Right and props.normal ~= Enum.NormalId.Left then return end ...
3,299
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Components/Gizmos/PartGizmo.luau
luau
.luau
local React = require("@pkgs/React") local e = React.createElement local LINE_THICKNESS = 0.15 local function BoxWireframe(props: { part: BasePart, color: Color3?, }) local size = props.part.Size local x = size.X / 2 local y = size.Y / 2 local z = size.Z / 2 local sizeX = Vector3.new(size.X + LINE_THICKNESS...
1,053
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Components/Icon.luau
luau
.luau
local React = require("@pkgs/React") local useDefaultProps = require("../Hooks/useDefaultProps") local useDpiScale = require("../Hooks/useDpiScale") local useTheme = require("../Hooks/useTheme") local useMemo = React.useMemo local e = React.createElement local memo = React.memo export type TarmacImage = { Image: st...
341
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Components/Popover.luau
luau
.luau
local React = require("@pkgs/React") local IconMap = require("@root/Assets/IconMap") local LocalStore = require("@root/Stores/LocalStore") local Preferences = require("@root/Stores/Preferences") local BasePopover = require("./BasePopover") local useValue = require("@root/Lib/Store").useValue local useDpiScale = requ...
1,174
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Components/StudioPlugin/StudioPlugin.luau
luau
.luau
local React = require("@pkgs/React") local StudioPluginContexts = require("./StudioPluginContexts") local e = React.createElement local useContext = React.useContext local function StudioPluginProvider(props: { plugin: Plugin, children: React.Node?, }) return e(StudioPluginContexts.plugin.Provider, { value = pr...
113
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Components/StudioPlugin/StudioPluginContexts.luau
luau
.luau
local Plugin = plugin or script:FindFirstAncestorOfClass("Plugin") :: Plugin local React = require("@pkgs/React") local createContext = React.createContext local pluginContext = createContext(Plugin) local pluginToolbarContext = createContext((nil :: never) :: PluginToolbar) return { plugin = pluginContext, plugin...
75
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Components/StudioPlugin/StudioPluginMenu.luau
luau
.luau
local HttpService = game:GetService("HttpService") local React = require("@pkgs/React") local Icon = require("../Icon") local useDpiScale = require("../../Hooks/useDpiScale") local usePlugin = require("./StudioPlugin").usePlugin local useEffect = React.useEffect local createUniqueKey = require("../.../Lib/createUni...
432
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Components/StudioPlugin/StudioPluginToolbar.luau
luau
.luau
local React = require("@pkgs/React") local StudioPlugin = require("./StudioPlugin") local StudioPluginContexts = require("./StudioPluginContexts") local e = React.createElement local useContext = React.useContext local useRef = React.useRef local useEffect = React.useEffect local function StudioPluginToolbarProvider...
230
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Components/StudioPlugin/StudioPluginToolbarButton.luau
luau
.luau
local React = require("@pkgs/React") local StudioPluginToolbar = require("./StudioPluginToolbar") local useRef = React.useRef local useEffect = React.useEffect local function StudioPluginToolbarButton(props: { id: string, tooltip: string?, icon: string?, text: string?, enabled: boolean?, clickableWhenViewportH...
491
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Components/SurfacePickerGridView.luau
luau
.luau
local Array = require("@root/Lib/Array") local React = require("@pkgs/React") local SurfacePickerGridItem = require("./SurfacePickerGridItem") local useBoolean = require("../Hooks/useBoolean") local useTheme = require("../Hooks/useTheme") local useEffect = React.useEffect local createUniqueKey = require("../../Lib/c...
577
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Components/SurfacePickerListItem.luau
luau
.luau
local React = require("@pkgs/React") local LocalStore = require("@root/Stores/LocalStore") local Preferences = require("@root/Stores/Preferences") local SurfacePreviewIcon = require("./SurfacePreview/SurfacePreviewIcon") local useValue = require("@root/Lib/Store").useValue local useBoolean = require("../Hooks/useBoo...
994
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Components/SurfacePickerListView.luau
luau
.luau
local Array = require("@root/Lib/Array") local React = require("@pkgs/React") local SurfacePickerListItem = require("./SurfacePickerListItem") local useBoolean = require("../Hooks/useBoolean") local useTheme = require("../Hooks/useTheme") local useEffect = React.useEffect local createUniqueKey = require("../../Lib/c...
539
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Components/SurfacePreview/HingeMotor.luau
luau
.luau
local React = require("@pkgs/React") local e = React.createElement local HINGE_PART_COLOR = BrickColor.Yellow().Color local BASE_PART_COLOR = BrickColor.Gray().Color local function HingeMotor(props: { isMotor: boolean, cframe: CFrame?, }) local hingePartRef = React.createRef() :: { current: Part? } return e("Mo...
427
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Components/SurfacePreview/SurfacePreview.luau
luau
.luau
local plugin: Plugin = script:FindFirstAncestorOfClass("Plugin") local React = require("@pkgs/React") local HingeMotor = require("./HingeMotor") local useDefaultProps = require("../../Hooks/useDefaultProps") local useMemo = React.useMemo local createUniqueKey = require("../../../Lib/createUniqueKey") local e = Reac...
905
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Components/SurfacePreview/SurfacePreviewIcon.luau
luau
.luau
local plugin: Plugin = script:FindFirstAncestorOfClass("Plugin") local React = require("@pkgs/React") local HingeMotor = require("./HingeMotor") local useDefaultProps = require("../../Hooks/useDefaultProps") local useTheme = require("../../Hooks/useTheme") local e = React.createElement local memo = React.memo loca...
797
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Components/Tooltip.luau
luau
.luau
local GuiService = game:GetService("GuiService") local React = require("@pkgs/React") local IconMap = require("@root/Assets/IconMap") local LocalStore = require("@root/Stores/LocalStore") local Preferences = require("@root/Stores/Preferences") local BasePopover = require("./BasePopover") local useValue = require("@...
1,757
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Hooks/useBoolean.luau
luau
.luau
local React = require("@pkgs/React") local useState = React.useState local useCallback = React.useCallback local function useBoolean(initialValue: boolean?) local value, setValue = useState(initialValue or false) local setEnabled = useCallback(function() setValue(true) end, {}) local setDisabled = useCallback...
142
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Hooks/useCurrentCamera.luau
luau
.luau
local useState = require("@pkgs/React").useState local useEvent = require("./useEvent") local function useCurrentCamera() local camera, setCamera = useState(workspace.CurrentCamera) useEvent(workspace:GetPropertyChangedSignal("CurrentCamera"), function() if workspace.CurrentCamera then setCamera(workspace.Curr...
79
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Hooks/useDefaultProps.luau
luau
.luau
local useMemo = require("@pkgs/React").useMemo local function merge(...) local result = {} for _, object in { ... } do if typeof(object) ~= "table" then continue end for key, value in object do result[key] = value end end return result end local function useDefaultProps(...) local args = { ... }...
115
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Hooks/useDpiScale.luau
luau
.luau
local useMemo = require("@pkgs/React").useMemo local useViewport = require("./useViewport") local calculateDpiScale = require("../Lib/calculateDpiScale") local function useDpiScale(fallback: number?) local viewport = useViewport() local dpiScale = useMemo(function() return calculateDpiScale(fallback) end, { vie...
93
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Hooks/useEvent.luau
luau
.luau
local useEffect = require("@pkgs/React").useEffect local useLatest = require("./useLatest") local function useEvent<T...>( event: RBXScriptSignal<T...>?, callback: (T...) -> ()?, options: { once: boolean?, connected: boolean?, }? ) local callbackRef = useLatest(callback) local once = options and options.onc...
223
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Hooks/useLatest.luau
luau
.luau
local React = require("@pkgs/React") local useMemo = React.useMemo local useRef = React.useRef type Predicate<T = unknown> = (a: T?, b: T) -> boolean local function isStrictEqual(a: unknown?, b: unknown) return a == b end local function useLatest<T>(value: T, predicate: Predicate<T>?): { current: T } local ref = ...
147
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Hooks/useStudioTheme.luau
luau
.luau
local Studio = settings():GetService("Studio") local React = require("@pkgs/React") local useEvent = require("./useEvent") local useState = React.useState local useMemo = React.useMemo local function getStudioThemeId(theme: StudioTheme) local studioThemeId = theme.Name:lower() return studioThemeId end local functi...
138
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Hooks/useTheme.luau
luau
.luau
-- local Studio = settings():GetService("Studio") -- local React = require("@pkgs/React") local DarkTheme = require("../Themes/Dark") local function useTheme() -- local isLight, setIsLight = React.useState(Studio.Theme.Name == "Light") -- React.useEffect(function() -- local connection = Studio.ThemeChanged:Conn...
175
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Hooks/useViewport.luau
luau
.luau
local useState = require("@pkgs/React").useState local useCurrentCamera = require("./useCurrentCamera") local useEvent = require("./useEvent") local function useViewport() local camera = useCurrentCamera() local viewport, setViewport = useState(camera.ViewportSize) useEvent(camera:GetPropertyChangedSignal("Viewpor...
87
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Hotkeys.client.luau
luau
.luau
local UserInputService = game:GetService("UserInputService") local LocalStore = require("@root/Stores/LocalStore") local Preferences = require("@root/Stores/Preferences") local keybindStrings = { CTRL = { Enum.KeyCode.LeftControl, Enum.KeyCode.RightControl }, SHIFT = { Enum.KeyCode.LeftShift, Enum.KeyCode.RightShif...
384
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Lib/calculateDpiScale.luau
luau
.luau
local UserInputService = game:GetService("UserInputService") local function calculateDpiScale(fallback: number?) local ok, scale = pcall(function() local buttonContentId = UserInputService:GetImageForKeyCode(Enum.KeyCode.ButtonA) local buttonScale = buttonContentId:lower():match("@([%d%.]-)x%.%w+$") return ...
108
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Lib/createNextOrder.luau
luau
.luau
local function createNextOrder(startAt: number?) local layoutOrder = startAt or 0 return function() layoutOrder += 1 return layoutOrder end end return createNextOrder
44
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Lib/createShortUuid.luau
luau
.luau
local HttpService = game:GetService("HttpService") local function createShortUuid(length: number?) local uuid = HttpService:GenerateGUID(false) return uuid:sub(1, length and math.max(1, length) or 7):lower() end return createShortUuid
59
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Lib/formatEnumName.luau
luau
.luau
local function formatEnumName(name: string | EnumItem) if typeof(name) == "EnumItem" then name = name.Name end local formatted = (name :: string):gsub("(%l)(%u)", "%1 %2") return formatted end return formatEnumName
61
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Lib/formatKeyCode.luau
luau
.luau
local GuiService = game:GetService("GuiService") local UserInputService = game:GetService("UserInputService") local IS_MACOS = GuiService.IsWindows == false local function formatKeyCode(keycode: (string | Enum.KeyCode)?): string? if not keycode then return end if typeof(keycode) == "string" then return keycod...
265
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Lib/withFont.luau
luau
.luau
local function withFont(font: Font, weight: Enum.FontWeight?, style: Enum.FontStyle?) if font.Weight == weight and font.Style == style then return font end local baseWeight = font.Weight or Enum.FontWeight.Regular local baseStyle = font.Style or Enum.FontStyle.Normal return Font.new(font.Family, weight or base...
83
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Lib/withInputEvents.luau
luau
.luau
type Callback<T> = (rbx: T, input: InputObject) -> () local function withInputEvents( events: { hovered: ((rbx: GuiButton) -> ())?, pressed: ((rbx: GuiButton) -> ())?, }, ...: Callback<GuiButton> ) local callbacks = { ... } return function(rbx: GuiButton, input: InputObject) if input.UserInputType == Enum....
180
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/PluginFacade.luau
luau
.luau
local RuntimeScript = script.Parent.Parent local React = require("@pkgs/React") local IconMap = require("@root/Assets/IconMap") local LocalStore = require("@root/Stores/LocalStore") local Manifest = require("@root/Manifest") local StudioPluginToolbar = require("./Components/StudioPlugin/StudioPluginToolbar") local S...
595
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Themes/Dark.luau
luau
.luau
return { id = "dark", name = "Dark", mode = "dark", colors = { accent = { default = Color3.fromHex("ffdf35"), hovered = Color3.fromHex("ffed96"), pressed = Color3.fromHex("c2a92a"), disabled = Color3.fromHex("222222"), }, onAccent = { default = Color3.new(), hovered = Color3.fromHex("1a1a1a"...
801
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Themes/init.luau
luau
.luau
--!strict local DarkTheme = require(script.Dark) local themeMap = table.freeze({ [DarkTheme.id] = DarkTheme, }) return themeMap
34
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Widgets/ContextualToolbar.luau
luau
.luau
local Selection = game:GetService("Selection") local React = require("@pkgs/React") local IconMap = require("@root/Assets/IconMap") local LocalStore = require("@root/Stores/LocalStore") local Preferences = require("@root/Stores/Preferences") local ResurfaceApi = require("@root/ResurfaceApi") local Button = require(...
792
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Widgets/PrimaryToolbar.luau
luau
.luau
local React = require("@pkgs/React") local IconMap = require("@root/Assets/IconMap") local LocalStore = require("@root/Stores/LocalStore") local Preferences = require("@root/Stores/Preferences") local Button = require("../Components/Button") local ComponentGroup = require("../Components/ComponentGroup") local Divider...
1,603
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Widgets/SettingsWidget.luau
luau
.luau
local plugin: Plugin = plugin or script:FindFirstAncestorOfClass("Plugin") local StudioService = game:GetService("StudioService") local RuntimeScript = script.Parent.Parent.Parent local React = require("@pkgs/React") local LocalStore = require("@root/Stores/LocalStore") local Manifest = require("@root/Manifest") loc...
3,817
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Frontend/Widgets/SurfacePickerWidget.luau
luau
.luau
local UserInputService = game:GetService("UserInputService") local Array = require("@root/Lib/Array") local React = require("@pkgs/React") local IconMap = require("@root/Assets/IconMap") local LocalStore = require("@root/Stores/LocalStore") local Preferences = require("@root/Stores/Preferences") local Button = requi...
1,325
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Lib/Array.luau
luau
.luau
--!strict local function filter<T>(array: { T }, predicate: (value: T, index: number) -> any): { T } local output = {} for index, value in array do if predicate(value, index) then table.insert(output, value) end end return output end local function map<T, U>(array: { T }, mapper: (value: T, index: number)...
154
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Lib/Store.luau
luau
.luau
export type Value<T> = ((value: (T | (current: T) -> T)?, bypassSignals: boolean?) -> T) & { changed: RBXScriptSignal<T, T>, initialValue: T, destroy: () -> (), reset: () -> (), onChange: (prev: T, next: T) -> () -> (), onReset: (() -> ())?, } local function Value<T>( value: T, api: { validate: ((va...
603
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Lib/createUniqueKey.luau
luau
.luau
local function createUniqueKey(existingNames: { any }?) local names = {} if existingNames then for _, name in existingNames do local stringified = tostring(name) if names[stringified] == nil then names[stringified] = 1 else names[stringified] += 1 end end end return function(name: any): s...
172
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Manifest.luau
luau
.luau
local WallyManifest = require(script.Parent.WallyPackageManifest) :: WallyManifest type WallyManifest = { package: { name: string, realm: string, registry: string, version: string, }, dependencies: { [string]: string, }, product: { description: string, display_name: string, }, } return WallyManife...
86
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/ResurfaceApi.luau
luau
.luau
local ChangeHistoryService = game:GetService("ChangeHistoryService") local MaterialService = game:GetService("MaterialService") local MaterialVariants = require("@root/Assets/MaterialVariants") local createUniqueKey = require("@root/Lib/createUniqueKey") local NORMAL_IDS: { Enum.NormalId } = Enum.NormalId:GetEnumIte...
1,568
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Stores/LocalStore.luau
luau
.luau
local plugin: Plugin = plugin or script:FindFirstAncestorOfClass("Plugin") local Store = require("@root/Lib/Store") local Value = Store.Value type Value<T> = Store.Value<T> local validWidgetIds = { settings = true, surfacePicker = true, } local store = { isPluginActive = Value(false), currentWidget = Value(nil,...
214
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/Stores/Preferences.luau
luau
.luau
local Store = require("@root/Lib/Store") local Value = Store.Value type Value<T> = Store.Value<T> type Keybind = Enum.KeyCode | "CTRL" | "SHIFT" | "ALT" local sessionSyncedPreferences = { isReducedMotion = true, transparencyScale = true, } local store = { selectedSurface = Value(Enum.SurfaceType.Studs), applyT...
1,056
cxmeel/resurface-plugin
cxmeel-resurface-plugin-334997a/src/init.client.luau
luau
.luau
local CoreGui = game:GetService("CoreGui") local Janitor = require("@pkgs/Janitor") local React = require("@pkgs/React") local ReactRoblox = require("@pkgs/ReactRoblox") local LocalStore = require("./Stores/LocalStore") -- Migrations to ease transition from Surface Tool if plugin:GetSetting("currentVersion") ~= nil ...
478
Nebula-Softworks/Nebula-Icon-Library
Nebula-Softworks-Nebula-Icon-Library-bd7f84f/LucideLab.luau
luau
.luau
-- This file was @generated by Tarmac. It is not intended for manual editing. return { ["ampersand-square"] = 73636065579359, ["apple-core"] = 125355488958478, ["arrows-up-down-square"] = 74379862672887, ["astronaut-helmet"] = 113553596996795, ["at-sign-circle"] = 93684138725717, ["at-sign-square"] = 102134732596...
4,985
Nebula-Softworks/Nebula-Icon-Library
Nebula-Softworks-Nebula-Icon-Library-bd7f84f/Phosphor Filled.luau
luau
.luau
-- This file was @generated by Tarmac. It is not intended for manual editing. return { ["acorn"] = 83252700666770, ["address-book"] = 94117857840281, ["address-book-tabs"] = 79902742162713, ["air-traffic-control"] = 122218102339847, ["airplane"] = 75192075330156, ["airplane-in-flight"] = 80897195196562, ["airpla...
20,427
Nebula-Softworks/Nebula-Icon-Library
Nebula-Softworks-Nebula-Icon-Library-bd7f84f/src/Phosphor Icons Filled/assets.lua
luau
.lua
-- This file was @generated by Tarmac. It is not intended for manual editing. return { ["t-shirt-fill"] = "rbxassetid://109021513255487", ["text-strikethrough-fill"] = "rbxassetid://89674465289268", ["text-subscript-fill"] = "rbxassetid://93404914640978", ["text-superscript-fill"] = "rbxassetid://112202295026218", ...
2,925
arindam-codes/roblox-scripting-practices
arindam-codes-roblox-scripting-practices-8cbeb05/src/client/init.client.luau
luau
.luau
------------------------------------------------------------------------------------------------------------------- ---- understading of errors of infinte yield, nill, timeout ------------------------------------------------------- ----------------------------------------------------------------------------------------...
674
arindam-codes/roblox-scripting-practices
arindam-codes-roblox-scripting-practices-8cbeb05/src/server/day2.server.luau
luau
.luau
--[[ local table1 = {1, 2, 3} local table2 = {4, 5, 6} local metatable = { __add = function(table1, table2) local elements = {} for i in ipairs(table1) do elements[i] = table1[i] + table2[i] end return elements end } setmetatable(table1, metatable) setmet...
842
arindam-codes/roblox-scripting-practices
arindam-codes-roblox-scripting-practices-8cbeb05/src/server/init.server.luau
luau
.luau
--[[local function calaculateDamege(baseDamage, multiplier) return baseDamage * multiplier end print(calaculateDamege(10, 2)) -- Output: 20 --[[for i = 1, 20, 1 do if i % 3 == 0 and i % 5 == 0 then print("FizzBuzz") elseif i % 5 ==0 then print("Buzz") elseif i % 3 == 0 then prin...
265
arindam-codes/roblox-scripting-practices
arindam-codes-roblox-scripting-practices-8cbeb05/src/server/main.server.luau
luau
.luau
--[[ -- was understadning modulescripts local module = require(game.ReplicatedStorage.Shared.moduleScript) val = module.add(5, 3) print(val) ]]
37
arindam-codes/roblox-scripting-practices
arindam-codes-roblox-scripting-practices-8cbeb05/src/shared/moduleScript.luau
luau
.luau
--[[ local module = {} -- do something function module.add(a, b) return a + b end return module ]]
28
paralov/roblox-studio-opencode-mcp
paralov-roblox-studio-opencode-mcp-130eac4/src/tools.ts
roblox-ts
.ts
/** * MCP Tool Definitions for Roblox Studio * * 6 consolidated tools with action-based routing: * roblox_get – read-only queries (workspace tree, instances, properties, search, logs, etc.) * roblox_manage – mutations (create, update, delete, clone, reparent, undo/redo, selection) * roblox_script –...
6,550
paralov/roblox-studio-opencode-mcp
paralov-roblox-studio-opencode-mcp-130eac4/types/plugin.d.luau
luau
.luau
-- Plugin global type definition for luau-lsp analysis declare plugin: Plugin
17