repo stringclasses 302
values | file_path stringlengths 18 241 | language stringclasses 2
values | file_type stringclasses 4
values | code stringlengths 76 697k | tokens int64 10 271k |
|---|---|---|---|---|---|
LDGerrits/QuickZone | LDGerrits-QuickZone-6d93459/examples/Client/Observers/Disco.luau | luau | .luau | local ReplicatedStorage = game:GetService('ReplicatedStorage')
local RunService = game:GetService('RunService')
local QuickZone = require(ReplicatedStorage.QuickZone)
local SharedGroups = require(ReplicatedStorage.Common.Groups)
local discoPart = workspace:WaitForChild('DiscoPart')
local defaultColor = discoPart.Colo... | 277 |
LDGerrits/QuickZone | LDGerrits-QuickZone-6d93459/examples/Client/Observers/SpeedBoost.luau | luau | .luau | local ReplicatedStorage = game:GetService('ReplicatedStorage')
local TweenService = game:GetService('TweenService')
local QuickZone = require(ReplicatedStorage.QuickZone)
local SharedGroups = require(ReplicatedStorage.Common.Groups)
local SharedZones = require(ReplicatedStorage.Common.Zones)
local camera = workspace.... | 382 |
LDGerrits/QuickZone | LDGerrits-QuickZone-6d93459/examples/Client/Runtime.client.luau | luau | .luau | while not game:IsLoaded() do
game.Loaded:Wait()
end
local ReplicatedStorage = game:GetService('ReplicatedStorage')
local QuickZone = require(ReplicatedStorage.QuickZone)
QuickZone:configure({
enabled = true,
autoSyncRate = 30,
frameBudget = 1,
})
for _, instance in script.Parent.Observers:GetChildren() do
if in... | 98 |
LDGerrits/QuickZone | LDGerrits-QuickZone-6d93459/examples/Common/Groups.luau | luau | .luau | local RunService = game:GetService('RunService')
local QuickZone = require(game.ReplicatedStorage.QuickZone)
local Group = QuickZone.Group
--[=[
Put groups here only if they need to be accessed by multiple scripts.
(e.g., The "Players" group is used by Hazards, SafeZones, and Disco).
]=]
local Groups = {
Players =... | 106 |
LDGerrits/QuickZone | LDGerrits-QuickZone-6d93459/examples/Server/Observers/Hazards.luau | luau | .luau | local ReplicatedStorage = game:GetService('ReplicatedStorage')
local RunService = game:GetService('RunService')
local QuickZone = require(ReplicatedStorage.QuickZone)
local SharedGroups = require(ReplicatedStorage.Common.Groups)
local SharedZones = require(ReplicatedStorage.Common.Zones)
local hazardObserver = QuickZ... | 262 |
LDGerrits/QuickZone | LDGerrits-QuickZone-6d93459/examples/Server/Observers/SafeZone.luau | luau | .luau | local ReplicatedStorage = game:GetService('ReplicatedStorage')
local QuickZone = require(ReplicatedStorage.QuickZone)
local SharedGroups = require(ReplicatedStorage.Common.Groups)
local safeZonePart = workspace:WaitForChild('SafeZone')
local safeZone = QuickZone.Zone.fromPart(safeZonePart)
local safeObserver = Quick... | 226 |
LDGerrits/QuickZone | LDGerrits-QuickZone-6d93459/examples/Server/Runtime.server.luau | luau | .luau | local ReplicatedStorage = game:GetService('ReplicatedStorage')
local QuickZone = require(ReplicatedStorage.QuickZone)
QuickZone:configure({
enabled = true,
autoSyncRate = 30,
frameBudget = 1,
})
for _, instance in script.Parent.Observers:GetChildren() do
if instance:IsA('ModuleScript') then
require(instance)
e... | 82 |
LDGerrits/QuickZone | LDGerrits-QuickZone-6d93459/src/Classes/Group.luau | luau | .luau | --!strict
--[=[
@class Group
Groups represent a collection of entities that should be tracked by the system.
:::info Observer
Every entity must be in a group to be observed.
:::
]=]
local CollectionService = game:GetService('CollectionService')
local Players = game:GetService('Players')
local RunService = game... | 5,032 |
LDGerrits/QuickZone | LDGerrits-QuickZone-6d93459/src/Classes/Observer.luau | luau | .luau | --!strict
--[=[
@class Observer
Observers are the logical bridge between Groups and Zones.
They monitor specific groups and trigger events when entities within those
groups enter or exit any zones associated with the observer.
]=]
local Players = game:GetService('Players')
local RunService = game:GetService('Ru... | 10,160 |
LDGerrits/QuickZone | LDGerrits-QuickZone-6d93459/src/Config.luau | luau | .luau | --!strict
local Config = {}
-- Static enums used to determine how to read an entity's position
Config.Strategy = {
POS = 1,
PRIM = 2,
WORLD = 3,
CFRAME = 4,
TRANSFORM = 5,
PIVOT = 6,
}
Config.Group = {
-- Entities are automatically cleaned up for that group if destroyed
autoClean = true,
}
Config.Scheduler ... | 372 |
LDGerrits/QuickZone | LDGerrits-QuickZone-6d93459/src/Core/Scheduler.luau | luau | .luau | --!native
--!optimize 2
--!strict
local RunService = game:GetService('RunService')
local Config = require(script.Parent.Parent.Config)
local Types = require(script.Parent.Parent.Types)
local Geometry = require(script.Parent.Parent.Utils.Geometry)
local LinearBVH = require(script.Parent.Parent.Utils.LinearBVH)
local L... | 3,840 |
LDGerrits/QuickZone | LDGerrits-QuickZone-6d93459/src/Core/State.luau | luau | .luau | --!strict
local Types = require(script.Parent.Parent.Types)
local State = {
nextZoneId = 1,
nextObserverId = 1,
nextGroupId = 1,
staticCFrames = {} :: { [number]: CFrame },
staticHalfSizes = {} :: { [number]: Vector3 },
staticTypes = {} :: { [number]: number },
dynamicCFrames = {} :: { [number]: CFrame },
d... | 643 |
LDGerrits/QuickZone | LDGerrits-QuickZone-6d93459/src/Types.luau | luau | .luau | --!strict
--[=[
@type ShapeType "Block" | "Ball" | "Cylinder" | "Wedge" | "CornerWedge"
@within QuickZone
The geometric shape of a Zone.
]=]
export type ShapeType = 'Block' | 'Ball' | 'Cylinder' | 'Wedge' | 'CornerWedge'
--[=[
@interface EntityTable
@within QuickZone
.Position Vector3?
.WorldPosition Vector3?
... | 3,238 |
LDGerrits/QuickZone | LDGerrits-QuickZone-6d93459/src/Utils/Geometry.luau | luau | .luau | --!native
--!optimize 2
--!strict
local BLOCK_SHAPE_VALUE = Enum.PartType.Block.Value
local BALL_SHAPE_VALUE = Enum.PartType.Ball.Value
local CYLINDER_SHAPE_VALUE = Enum.PartType.Cylinder.Value
local WEDGE_SHAPE_VALUE = Enum.PartType.Wedge.Value
local CORNER_WEDGE_SHAPE_VALUE = Enum.PartType.CornerWedge.Value
local M... | 1,316 |
LDGerrits/QuickZone | LDGerrits-QuickZone-6d93459/src/Utils/LinearBVH.luau | luau | .luau | --!native
--!optimize 2
--!strict
local Geometry = require(script.Parent.Geometry)
local Types = require(script.Parent.Parent.Types)
local HUGE_VECTOR = Vector3.one * math.huge
local NEGATIVE_HUGE_VECTOR = -HUGE_VECTOR
local unionBounds = Geometry.unionBounds
local getObjectBounds = Geometry.getObjectBounds
local ge... | 1,410 |
LDGerrits/QuickZone | LDGerrits-QuickZone-6d93459/src/Utils/Log.luau | luau | .luau | --!strict
local Log = {}
local function formatLog(messageTemplate: string, trace: string?, ...: any): string
local messageText = string.format(messageTemplate, ...)
messageText = `[QuickZone] {messageText}`
local finalTrace = trace or debug.traceback('', 3)
if finalTrace ~= '' then
messageText ..= ` \n---- S... | 229 |
LDGerrits/QuickZone | LDGerrits-QuickZone-6d93459/src/init.luau | luau | .luau | --!strict
--v1.3.187 • LDGerrits
--[=[
@class QuickZone
A high-performance, physics-free spatial query library for Roblox. Maintain 60 FPS with 1M+ zones.
]=]
local RunService = game:GetService('RunService')
local Types = require(script.Types)
local Config = require(script.Config)
local Scheduler = require(script.... | 4,485 |
Coyenn/awesome-roblox-ts | Coyenn-awesome-roblox-ts-e5c14da/update.luau | luau | .luau | local process = require("@lune/process")
local fs = require("@lune/fs")
local task = require("@lune/task")
local serde = require("@lune/serde")
local README_PATH = "README.md"
-- Header for the README.md file
local README_HEADER = [[
# Awesome Roblox-TS
A list of all packages for [roblox-ts](https://roblox-ts.com/).... | 1,447 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/AVLTree/init.luau | luau | .luau | local AVLTree = {}
AVLTree.__index = AVLTree
export type Node<T = any> = {
Value: T,
Left: Node<T>?,
Right: Node<T>?,
Height: number,
}
export type Class<T = any> = typeof(setmetatable({} :: {
Root: Node<T>?,
Compare: (T, T) -> number,
_lookup: {
[T]: Node<T>,
},
_size: n... | 1,738 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/ArraySquash/init.luau | luau | .luau | local Shared = script.Parent
local Squash = require(Shared.Squash)
local VLQ = Squash.vlq()
local F32 = Squash.f32()
local I32 = Squash.i32()
local U32 = Squash.u32()
local U8 = Squash.u8()
type Cursor = Squash.Cursor
type SerDes<T...> = Squash.SerDes<T...>
--------------------------------------------
-- SerDes (Int... | 3,331 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/BufferExtras/init.luau | luau | .luau | --!native
--!strict
--- Reads a 16-bit floating point number (half-precision) from a buffer at the given offset.
local function readf16(buf: buffer, offset: number): number
local b0 = buffer.readu8(buf, offset)
local b1 = buffer.readu8(buf, offset + 1)
local sign = bit32.btest(b0, 128) and -1 or 1
loc... | 1,467 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/CrunchTable/init.luau | luau | .luau | -- CrunchTable lets you define compression schemes for simple tables to be sent by roblox
-- If a field in a table is not defined in the layout, it will be ignored and stay in the table
-- If a field in a table is not present, but is defined in the layout, it'll default to 0 (or equiv)
--!native
--!strict
local Crunc... | 3,278 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DeltaTable/init.luau | luau | .luau | --!native
--!strict
local DeltaTable = {}
export type LazyTable = {
[any]: any,
}
export type Patch = {
Path: { string },
Value: any,
}
export type Trace = {
Path: { string },
OnApply: (path: { string }, value: any) -> (),
}
local function Deep(tbl: any): any
local tCopy = table.create(#tbl... | 1,035 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Components/DragSelectionView.luau | luau | .luau | --[[
Component that displays a rubber band-style selection frame.
]]
local DraggerFramework = script.Parent.Parent
local Packages = DraggerFramework.Parent
local React = require(Packages.React)
local Colors = require(DraggerFramework.Utility.Colors)
export type Props = {
BackgroundColor3: Color3?,
BackgroundTrans... | 324 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Components/DraggedPivot.luau | luau | .luau | local DraggerFramework = script.Parent.Parent
local Packages = DraggerFramework.Parent
local React = require(Packages.React)
local Implementation = DraggerFramework.Implementation
local DraggerContext = require(Implementation.DraggerContext)
local MAIN_SPHERE_RADIUS = 0.4
local MAIN_SPHERE_TRANSPARENCY = 0.5
type Dr... | 220 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Components/DraggerTool.luau | luau | .luau | --[[
DraggerToolComponent is a React component which drives an internal
DraggerToolModel with inputs in a real-time situation such as ingame or in
studio plugin.
]]
-- Services
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local HttpService = game:GetS... | 1,487 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Components/LocalSpaceIndicator.luau | luau | .luau | --[[
Component that displays an "L" label near the bottom-right corner of the
passed in bounding volume.
]]
local DraggerFramework = script.Parent.Parent
local Packages = DraggerFramework.Parent
local React = require(Packages.React)
local PADDING = 3
local Implementation = DraggerFramework.Implementation
local Drag... | 1,057 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Components/MoveHandleView.luau | luau | .luau |
local DraggerFramework = script.Parent.Parent
local Shared = DraggerFramework.Parent
local Math = require(DraggerFramework.Utility.Math)
local React = require(Shared.React)
local ReactRoblox = require(Shared.ReactRoblox)
local CULLING_MODE = Enum.AdornCullingMode.Never
local BASE_HANDLE_RADIUS = 0.10
local BASE_HAN... | 1,473 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Components/RotateHandleView.luau | luau | .luau | --[[
Displays rotation gimbal handles. When dragging, start and end radii showing
the central angle of rotation are displayed.
]]
-- Dragger Framework
local RotateHandleView = {}
local DraggerFramework = script.Parent.Parent
local Packages = DraggerFramework.Parent
local React = require(Packages.React)
local Math =... | 2,376 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Components/ScaleHandleView.luau | luau | .luau | --[[
Component that displays a spherical scale handle.
]]
local ScaleHandleView = {}
local DraggerFramework = script.Parent.Parent
local Packages = DraggerFramework.Parent
local React = require(Packages.React)
-- Dragger Framework
local Math = require(DraggerFramework.Utility.Math)
local CULLING_MODE = Enum.AdornC... | 1,002 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Components/SelectionDot.luau | luau | .luau | --[[
Component that displays a dot of fixed size at the given position.
Intended to be used to show the center of the current selection.
]]
local DraggerFramework = script.Parent.Parent
local Packages = DraggerFramework.Parent
local React = require(Packages.React)
local Colors = require(DraggerFramework.Utility.Colo... | 250 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Components/StandaloneSelectionBox.luau | luau | .luau | --[[
Component that displays a SelectionBox with an arbitrary position and size,
without having to create an adornee.
Internally, StandaloneSelectionBox creates a transparent adornee with the
correct position/size and parents it to CoreGui to prevent implementation
details from leaking into the workspace.
]]
loc... | 477 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Components/SummonHandlesHider.luau | luau | .luau | local DraggerFramework = script.Parent.Parent
local Implementation = DraggerFramework.Implementation
local DraggerContext = require(Implementation.DraggerContext)
local Packages = DraggerFramework.Parent
local React = require(Packages.React)
local SummonHandlesHider = {}
-- When the user has summoned the handles for... | 373 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Components/SummonHandlesNote.luau | luau | .luau | local DraggerFramework = script.Parent.Parent
local Implementation = DraggerFramework.Implementation
local DraggerContext = require(Implementation.DraggerContext)
local Packages = DraggerFramework.Parent
local ReactRoblox = require(Packages.ReactRoblox)
local React = require(Packages.React)
-- How much space between ... | 750 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Handles/MoveHandles.luau | luau | .luau |
-- Libraries
local DraggerFramework = script.Parent.Parent
local Utility = DraggerFramework.Utility
local Shared = DraggerFramework.Parent
local React = require(Shared.React)
local Colors = require(Utility.Colors)
local SelectionInfo = require(Utility.SelectionInfo)
local computeDraggedDistance = require(Utility.com... | 4,122 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Handles/RotateHandles.luau | luau | .luau |
-- Libraries
local DraggerFramework = script.Parent.Parent
local Shared = DraggerFramework.Parent
local React = require(Shared.React)
-- Dragger Framework
local Utility = DraggerFramework.Utility
local Colors = require(Utility.Colors)
local Math = require(Utility.Math)
local roundRotation = require(Utility.roundRotat... | 3,262 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Implementation/DraggerStateType.luau | luau | .luau | local StateType = {
Ready = "Ready",
PendingDraggingParts = "PendingDraggingParts",
PendingSelectNext = "PendingSelectNext",
DraggingHandle = "DraggingHandle",
DraggingParts = "DraggingParts",
DragSelecting = "DragSelecting",
DraggingFaceInstance = "DraggingFaceInstance",
}
export type StateType = keyof<typeof(... | 126 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Implementation/DraggerStates/DragSelecting.luau | luau | .luau | local Implementation = script.Parent.Parent
local DraggerToolModel = require(Implementation.DraggerToolModel)
local DraggerFramework = Implementation.Parent
local Packages = DraggerFramework.Parent
local React = require(Packages.React)
local Components = DraggerFramework.Components
local DragSelectionView = require(C... | 722 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Implementation/DraggerStates/DraggingFaceInstance.luau | luau | .luau | --[[
When dragging over a Part, DraggingFaceInstance parents the instance onto
the part and sets the instance's "Face" property to the closest Surface.
]]
--!nonstrict
local Implementation = script.Parent.Parent
local DraggerToolModel = require(Implementation.DraggerToolModel)
local DraggerFramework = Implementatio... | 634 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Implementation/DraggerStates/DraggingHandle.luau | luau | .luau | local Implementation = script.Parent.Parent
local DraggerToolModel = require(Implementation.DraggerToolModel)
local DraggerFramework = Implementation.Parent
local StandardCursor = require(DraggerFramework.Utility.StandardCursor)
local DraggingHandle = {}
DraggingHandle.__index = DraggingHandle
type DraggerToolModel ... | 913 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Implementation/DraggerStates/DraggingParts.luau | luau | .luau | local DraggerFramework = script.Parent.Parent.Parent
local Implementation = DraggerFramework.Implementation
local DraggerToolModel = require(Implementation.DraggerToolModel)
local Utility = DraggerFramework.Utility
local PartMover = require(Utility.PartMover)
local StandardCursor = require(Utility.StandardCursor)
lo... | 885 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Implementation/DraggerStates/PendingDraggingParts.luau | luau | .luau | local Implementation = script.Parent.Parent
local DraggerFramework = Implementation.Parent
local DraggerToolModel = require(Implementation.DraggerToolModel)
type DraggerToolModel = DraggerToolModel.Class
local Utility = DraggerFramework.Utility
local StandardCursor = require(Utility.StandardCursor)
local FREEFORM_DR... | 564 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Implementation/DraggerStates/PendingSelectNext.luau | luau | .luau | --[[
When clicking on the selection in a way that doesn't change the selection on
mouse down, attempt to select the next selectables instead when the mouse is
released. The reason that we do this on mouse up is for uniformity with the
begin freeform drag behavior.
]]
local Implementation = script.Parent.Parent
loca... | 498 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Implementation/DraggerStates/Ready.luau | luau | .luau | --!strict
local Implementation = script.Parent.Parent
local DraggerFramework = Implementation.Parent
local Components = DraggerFramework.Components
local Packages = DraggerFramework.Parent
local Utility = DraggerFramework.Utility
local React = require(Packages.React)
local HoverTracker = require(Implementation.Hover... | 2,225 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Implementation/HoverTracker.luau | luau | .luau | local DraggerFramework = script.Parent.Parent
local Utility = DraggerFramework.Utility
local SelectionInfo = require(Utility.SelectionInfo)
type SelectionInfo = SelectionInfo.Class
--[[
Ignored handle hits: When the ToolImplementation's shouldBiasTowardsObject
function returns true, then this function will decide w... | 1,275 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Utility/AttachmentMover.luau | luau | .luau | local RunService = game:GetService("RunService")
local AttachmentMover = {}
AttachmentMover.__index = AttachmentMover
type AttachmentMover = {
_originalWorldCFrames: {
[Attachment]: CFrame,
},
_partsToUnanchor: {
[BasePart]: true,
},
}
type Proto = typeof(AttachmentMover)
export type Class = setmetatable<At... | 380 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Utility/BoundingBox.luau | luau | .luau | local function getBoundingBoxInternal(cframe: CFrame, size: Vector3, inverseBasis: CFrame?)
local localCFrame = if inverseBasis then inverseBasis * cframe else cframe
local sx, sy, sz = size.X, size.Y, size.Z
local _, _, _,
t00, t01, t02,
t10, t11, t12,
t20, t21, t22 = localCFrame:GetComponents()
local hw =... | 2,345 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Utility/BoundsChangedTracker.luau | luau | .luau |
--[[
BoundsChangedTracker object
Watches a set of parts for cframe and size changes.
]]
local Utility = script.Parent
local SelectionInfo = require(Utility.SelectionInfo)
local DraggerFramework = Utility.Parent
local Implementation = DraggerFramework.Implementation
local DraggerContext = require(Implementation.Dr... | 1,822 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Utility/Colors.luau | luau | .luau | local Colors = {}
Colors.WHITE = Color3.new(1, 1, 1)
Colors.BLACK = Color3.new(0, 0, 0)
Colors.GRAY = Color3.new(0.7, 0.7, 0.7)
Colors.X_AXIS = Color3.new(1, 0, 0)
Colors.Y_AXIS = Color3.new(0, 1, 0)
Colors.Z_AXIS = Color3.new(0, 0, 1)
Colors.WeldJoint = Color3.new(1, 1, 1)
Colors.RotatingJoint = Color3.new(0, 0, 1)... | 206 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Utility/DragHelper.luau | luau | .luau | local Utility = script.Parent
local Math = require(Utility.Math)
local getGeometry = require(Utility.getGeometry)
local roundRotation = require(Utility.roundRotation)
local snapRotationToPrimaryDirection = require(Utility.snapRotationToPrimaryDirection)
local PrimaryDirections = {
Vector3.xAxis,
-Vector3.xAxis,
Ve... | 3,823 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Utility/DragSelector.luau | luau | .luau | local Utility = script.Parent
local SelectionHelper = require(Utility.SelectionHelper)
local DraggerFramework = Utility.Parent
local Implementation = DraggerFramework.Implementation
local DraggerContext = require(Implementation.DraggerContext)
type DraggerContext = DraggerContext.Class
-- Minimum distance (pixels) r... | 1,395 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Utility/JointMaker.luau | luau | .luau | local DraggerFramework = script.Parent.Parent
local Utility = DraggerFramework.Utility
local getGeometry = require(Utility.getGeometry)
local JointPairs = require(Utility.JointPairs)
local JointUtil = require(Utility.JointUtil)
local JointMaker = {}
JointMaker.__index = JointMaker
type LengthConstraint =
| RopeCons... | 2,301 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Utility/JointPairs.luau | luau | .luau | local Utility = script.Parent
local DraggerFramework = Utility.Parent
local Packages = DraggerFramework.Parent
local React = require(Packages.React)
local getGeometry = require(Utility.getGeometry)
local Colors = require(Utility.Colors)
local Math = require(Utility.Math)
local JointPairs = {}
JointPairs.__index = Joi... | 4,185 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Utility/JointUtil.luau | luau | .luau | local JointUtil = {}
function JointUtil.getConstraintCounterpart(constraint: Constraint, part: BasePart?): BasePart?
-- Ugly micro-optimized code because this function gets hit in hot paths
-- The micro-optimized version saves 3-4ms on some actions over the
-- unoptimized variant.
local attachment0 = constraint.At... | 409 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Utility/PartMover.luau | luau | .luau | --[[
Shared utility class which transforms parts efficiently as a group, and
manages joining / unjoining them from the world.
]]
local RunService = game:GetService("RunService")
local Utility = script.Parent
local JointUtil = require(Utility.JointUtil)
local JointPairs = require(Utility.JointPairs)
local getGeometry... | 5,119 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Utility/SelectionHelper.luau | luau | .luau | --[[
Provides utility functions related to the selection.
]]
local SelectionHelper = {}
type SelectionChangeHint = {
Added: { Instance },
Removed: { Instance },
}
-- Returns: Did the selection change, The new selection, A change hint
function SelectionHelper.updateSelection(
selectable: Instance?,
oldSelection:... | 917 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Utility/SelectionInfo.luau | luau | .luau |
local Utility = script.Parent
local BoundingBox = require(Utility.BoundingBox)
local shouldDragAsFace = require(Utility.shouldDragAsFace)
local DraggerFramework = Utility.Parent
local Implementation = DraggerFramework.Implementation
local DraggerContext = require(Implementation.DraggerContext)
type DraggerContext = ... | 3,086 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Utility/SelectionWrapper.luau | luau | .luau | --!strict
--[[
A wrapper around a Selection object (anything with the same API the Roblox
SelectionService has), which disambiguates selection changed events which
were caused by something else setting the selection, vs selection changed
events which were caused by calling :Set on the Selection object.
Also cach... | 557 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Utility/StandardCursor.luau | luau | .luau | --[[
This file is a workaround for STUDIOCORE-22344
We would like to just use the system cursors for the draggers, however, due to
the above unresolved issue, the system cursors do not work in Play Solo mode.
To work around this, use the old set of dragger cursors instead while in Play
Solo mode.
]]
local RunService... | 259 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Utility/TemporaryTransparency.luau | luau | .luau | local NO_COLLISIONS_TRANSPARENCY = 0.4
local TemporaryTransparency = {}
TemporaryTransparency.__index = TemporaryTransparency
type TemporaryTransparency = {
_draggingModifiedParts: { BasePart },
}
type Proto = typeof(TemporaryTransparency)
export type Class = setmetatable<TemporaryTransparency, Proto>
function Tem... | 202 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Utility/assertGoodCFrame.luau | luau | .luau | --[[
Check that a CFrame has "good" values. That is:
* None of the values are NaN
* The position values are not particularly large
* The rotation matrix is orthonormal
This is a general catchall to be used for DEBUGGING ONLY to investigate
CFrames becoming corrupted in some way. There are situations where a user... | 499 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Utility/classifyPivot.luau | luau | .luau | const PIVOT_NEAR_EDGE_THRESHOLD = 0.01
export type PivotType =
| "None"
| "Center"
| "Surface"
| "Inside"
| "Outside"
| "Far"
return function(cframe: CFrame, offset: Vector3, size: Vector3): PivotType
if offset:FuzzyEq(Vector3.zero, PIVOT_NEAR_EDGE_THRESHOLD) then
return "Center"
end
local absOffset = Ve... | 338 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Utility/computeDraggedDistance.luau | luau | .luau | local Utility = script.Parent
local Math = require(Utility.Math)
--[[
Returns the distance the mouse cursor was dragged from dragStartPosition
along dragDirection
This is non-trivial when the cursor gets away from the axis on the screen.
Let p be the start of the handle, u be the direction of the handle, and ... | 417 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Utility/getBoundingBoxScale.luau | luau | .luau | local BoundingBoxCorners = {
Vector3.new(0.5, 0.5, 0.5),
Vector3.new(-0.5, 0.5, 0.5),
Vector3.new(0.5, -0.5, 0.5),
Vector3.new(-0.5, -0.5, 0.5),
Vector3.new(0.5, 0.5, -0.5),
Vector3.new(-0.5, 0.5, -0.5),
Vector3.new(0.5, -0.5, -0.5),
Vector3.new(-0.5, -0.5, -0.5),
}
local DraggerFramework = script.Parent.Paren... | 286 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Utility/getFaceInstance.luau | luau | .luau |
--[[
Get the FaceInstance (Decal or Texture) on a given part closest to a given
position.
]]
local function getNormalId(normalizedPosition: Vector3): Enum.NormalId
local x = math.abs(normalizedPosition.X)
local y = math.abs(normalizedPosition.Y)
local z = math.abs(normalizedPosition.Z)
if x > y and x > z then
... | 250 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Utility/getGeometry.luau | luau | .luau | export type Shape =
| "Brick"
| "Sphere"
| "Cylinder"
| "Wedge"
| "CornerWedge"
| "Terrain"
| "Mesh"
export type Surface =
| "RightSurface"
| "LeftSurface"
| "TopSurface"
| "BottomSurface"
| "FrontSurface"
| "BackSurface"
type IGeometry<T> = {
type: T,
id: number?,
part: BasePart?,
}
export type Face... | 3,608 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Utility/isProtectedInstance.luau | luau | .luau |
--[[
isProtectedInstance( instance ): Return true for instances which are
"protected" by Roblox. Accessing any method or property on these instances
will raise an error.
Internally use a weak hash map to cache the protection status of the
instances, as determining the protection status is somewhat expensive.
]]
... | 225 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Utility/roundRotation.luau | luau | .luau | --[[
roundRotation(CFrame) -> CFrame
Round a rotation CFrame which is approximately primary axis aligned to be
exactly primary axis aligned instead (such that all of its components are
-1, 0, or 1).
Will not work on an arbitrary CFrame! This function is intended to be used
on CFrames which within a small amount... | 267 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Utility/setInsertPoint.luau | luau | .luau | -- Wrapper around WorldRoot::SetInsertPoint, since that function is Roblox only,
-- but we want the DraggerFramework to be forkable.
return function(insertPoint: Vector3)
pcall(function()
local setInsertPoint = (workspace :: any).SetInsertPoint
setInsertPoint(workspace, insertPoint, true)
end)
end | 72 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Utility/shouldDragAsFace.luau | luau | .luau | return function(instance: Instance)
return instance:IsA("FaceInstance") or instance:IsA("VideoFrame") or instance:IsA("SurfaceGui")
end | 31 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/Utility/snapRotationToPrimaryDirection.luau | luau | .luau | local PrimaryDirections = {
Vector3.xAxis
-Vector3.xAxis,
Vector3.yAxis,
-Vector3.yAxis,
Vector3.zAxis,
-Vector3.zAxis,
}
local function largestComponent(vector: Vector3)
return math.max(math.abs(vector.X), math.abs(vector.Y), math.abs(vector.Z))
end
local function snapVectorToPrimaryDirection(direction: Vec... | 471 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerFramework/init.luau | luau | .luau | local Implementation = script.Implementation
local Components = script.Components
local Handles = script.Handles
local Utility = script.Utility
local DraggerTool = require(Components.DraggerTool)
local DraggedPivot = require(Components.DraggedPivot)
local SelectionDot = require(Components.SelectionDot)
local MoveHandl... | 1,321 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerSchemaCore/BoundsChangedTracker.luau | luau | .luau | -- Baseline wrapper around the default BoundsChangedTracker implementation provided in DraggerFramework.
-- This provides backwards compatibility for its previous place of residence, while still allowing
-- consumers to extend it as needed.
local DraggerSchemaCore = script.Parent
local Packages = DraggerSchemaCore.Par... | 100 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerSchemaCore/ExtrudeHandlesImplementation.luau | luau | .luau |
local DraggerSchemaCore = script.Parent
local Packages = DraggerSchemaCore.Parent
local DraggerFramework = require(Packages.DraggerFramework)
local Utility = DraggerFramework.Utility
local JointMaker = Utility.JointMaker
local getBoundingBoxScale = Utility.getBoundingBoxScale
local TemporaryTransparency = Utility.Tem... | 5,440 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerSchemaCore/FreeformDragger.luau | luau | .luau | local DraggerSchemaCore = script.Parent
local Packages = DraggerSchemaCore.Parent
local DraggerFramework = require(Packages.DraggerFramework)
local Utility = DraggerFramework.Utility
local AttachmentMover = Utility.AttachmentMover
local DragHelper = Utility.DragHelper
local PartMover = Utility.PartMover
local Freefo... | 2,013 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerSchemaCore/HoverEscapeDetector.luau | luau | .luau | --[[
class HoverEscapeDetector
Constructed with a given selectable object and a given callback. Calls the
callback whenever selectable object changes in some way that could make it
no longer hovered thanks to factors external to the dragger (such as when
it is deleted through a hotkey).
]]
local DraggerSchemaCor... | 658 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerSchemaCore/Selection.luau | luau | .luau |
local SelectionService = game:GetService("Selection")
local Packages = script.Parent.Parent
local DraggerFramework = require(Packages.DraggerFramework)
local isProtectedInstance = DraggerFramework.Utility.isProtectedInstance
local Selection = {}
Selection.__index = Selection
export type Class = setmetatable<{
Sele... | 341 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerSchemaCore/SelectionInfo.luau | luau | .luau | -- Baseline wrapper around the default SelectionInfo implementation provided in DraggerFramework.
-- This provides backwards compatibility for its previous place of residence, while still allowing
-- consumers to extend it as needed.
local DraggerSchemaCore = script.Parent
local Packages = DraggerSchemaCore.Parent
lo... | 95 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerSchemaCore/TransformHandlesImplementation.luau | luau | .luau | local DraggerSchemaCore = script.Parent
local Packages = DraggerSchemaCore.Parent
local DraggerFramework = require(Packages.DraggerFramework)
type TemporaryTransparency = DraggerFramework.TemporaryTransparency
type AttachmentMover = DraggerFramework.AttachmentMover
type DraggerContext = DraggerFramework.DraggerContext... | 3,683 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerSchemaCore/addUndoWaypoint.luau | luau | .luau | local DraggerSchemaCore = script.Parent
local Packages = DraggerSchemaCore.Parent
local DraggerFramework = require(Packages.DraggerFramework)
type DraggerContext = DraggerFramework.DraggerContext
return function(draggerContext: DraggerContext, waypointIdentifier: string, waypointText: string)
draggerContext:addUndoW... | 82 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerSchemaCore/beginBoxSelect.luau | luau | .luau | local DraggerSchemaCore = script.Parent
local Packages = DraggerSchemaCore.Parent
local DraggerFramework = require(Packages.DraggerFramework)
type DraggerContext = DraggerFramework.DraggerContext
local getSelectableWithCache = require(DraggerSchemaCore.getSelectableWithCache)
local shouldSelectSubPart = require(Dragg... | 505 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerSchemaCore/dispatchWorldClick.luau | luau | .luau |
local DraggerSchemaCore = script.Parent
local FreeformDragger = require(DraggerSchemaCore.FreeformDragger)
local Packages = DraggerSchemaCore.Parent
local DraggerFramework = require(Packages.DraggerFramework)
local Utility = DraggerFramework.Utility
local getGeometry = Utility.getGeometry
local getFaceInstance = Uti... | 832 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerSchemaCore/endBoxSelect.luau | luau | .luau | return function(draggerContext)
-- Nothing to do, the incremental updates as the mouse moves are sufficient
-- to get the selection up to date in the core schema.
end | 38 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerSchemaCore/getMouseTarget.luau | luau | .luau |
local DraggerSchemaCore = script.Parent
local shouldSelectSubPart = require(DraggerSchemaCore.shouldSelectSubPart)
local getSelectableWithCache = require(DraggerSchemaCore.getSelectableWithCache)
local Packages = DraggerSchemaCore.Parent
local DraggerFramework = require(Packages.DraggerFramework)
type DraggerContext... | 530 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerSchemaCore/getNextSelectables.luau | luau | .luau | local DraggerSchemaCore = script.Parent
local Packages = DraggerSchemaCore.Parent
local dispatchWorldClick = require(DraggerSchemaCore.dispatchWorldClick)
type FreeformDragInfo = dispatchWorldClick.FreeformDragInfo
local DraggerFramework = require(Packages.DraggerFramework)
type DraggerContext = DraggerFramework.Drag... | 151 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerSchemaCore/getSelectableWithCache.luau | luau | .luau | --[[
Get the selectable object from the passed-in part or model.
If the instance is an Attachment or Constraint, it is returned directly.
If the instance belongs to a model the top-level model is returned, unless
the alt key is held, in which case the part itself is returned. Locked parts
are not considered sele... | 661 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerSchemaCore/getSelectionBoxComponent.luau | luau | .luau | local DraggerSchemaCore = script.Parent
local Packages = DraggerSchemaCore.Parent
local DraggerFramework = require(Packages.DraggerFramework)
type DraggerContext = DraggerFramework.DraggerContext
return function(draggerContext: DraggerContext, hoverSelectable: Instance): string?
if draggerContext:areConstraintDetail... | 186 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerSchemaCore/init.luau | luau | .luau | --[[
DraggerSchema, Core Dragger Implementation
A schema describing the dragger framework implementation which the core
modeling tools use, where the user selects and transforms an aggregate of
parts and attachments.
]]
local TransformHandlesImplementation = require(script.TransformHandlesImplementation)
local Ex... | 2,407 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerSchemaCore/isExclusiveSelectable.luau | luau | .luau |
-- Attachments like to be exclusively selected unless we're trying to multiple
-- select them.
local Packages = script.Parent.Parent
local DraggerFramework = require(Packages.DraggerFramework)
type DraggerContext = DraggerFramework.DraggerContext
return function(draggerContext: DraggerContext, selectable: Instance?,... | 90 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerSchemaCore/setActivePoint.luau | luau | .luau | local DraggerSchemaCore = script.Parent
local SelectionInfo = require(DraggerSchemaCore.SelectionInfo)
local Packages = DraggerSchemaCore.Parent
local DraggerFramework = require(Packages.DraggerFramework)
type DraggerContext = DraggerFramework.DraggerContext
type SelectionInfo = SelectionInfo.Class
return function(d... | 119 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerSchemaCore/setHover.luau | luau | .luau | -- For the core manipulators, just set the Studio Service hovered instance to
-- the instance which the mouse was directly hovered over (hoverItem).
local DraggerSchemaCore = script.Parent
local Packages = DraggerSchemaCore.Parent
local DraggerFramework = require(Packages.DraggerFramework)
type DraggerContext = Dragge... | 107 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/DraggerSchemaCore/shouldSelectSubPart.luau | luau | .luau | local DraggerSchemaCore = script.Parent
local Packages = DraggerSchemaCore.Parent
local DraggerFramework = require(Packages.DraggerFramework)
type DraggerContext = DraggerFramework.DraggerContext
return function(draggerContext: DraggerContext)
-- Geometric mode: hover -> select model, alt-hover -> select sub part... | 144 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/EasyStore/init.luau | luau | .luau | --!strict
local EasyStore = {}
EasyStore.__index = EasyStore
local PlayerData = {}
PlayerData.__index = PlayerData
local DataStoreService = game:GetService("DataStoreService")
local Players = game:GetService("Players")
local Shared = script.Parent
local Trove = require(Shared.Trove)
local Signal = require(Shared.Sig... | 4,804 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/LinearPath/init.luau | luau | .luau | --!strict
local LinearPath = {}
LinearPath.__index = LinearPath
export type Class = typeof(setmetatable({} :: {
Dists: { number },
Points: { Vector3 },
Normals: { Vector3 },
Length: number,
}, LinearPath))
--- Creates a new LinearPath from a list of points.
function LinearPath.new(points: { Vector3 }... | 994 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/Marketplace/init.luau | luau | .luau | --!strict
local Shared = script.Parent
local Signal = require(Shared.Signal)
local Network = require(Shared.Network)
local Promise = require(Shared.Promise)
local RunContext = require(Shared.RunContext)
local Players = game:GetService("Players")
local MarketplaceService = game:GetService("MarketplaceService")
type P... | 2,308 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/ModelSquash/init.luau | luau | .luau | local Shared = script.Parent
local Squash = require(Shared.Squash)
local PropSquash = require(script.PropSquash)
local ArraySquash = require(Shared.ArraySquash)
local ReflectionService = game:GetService("ReflectionService")
local Accumulated = ArraySquash.Accumulated
local AccI32 = Accumulated.I32
local STRING = Squ... | 2,184 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/Mutex/init.luau | luau | .luau | local function index(key: string): string
return `|{key:gsub("|", "\\|")}`
end
local function addLock(inst: Instance, lock: string, key: string)
local list = tostring(inst:GetAttribute(lock) or "")
key = index(key)
if not list:find(key) then
list ..= key
inst:SetAttribute(lock, list)
... | 279 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/Network/Client.luau | luau | .luau | --!strict
local Client = {}
Client.__index = Client
local Network = script.Parent
local Types = require(Network.Types)
local Signal = Types.Signal
type Signal<T...> = Types.Signal<T...>
type EventOptions = Types.EventOptions
type Validator<T...> = Types.Validator<T...>
export type Class<T... = ...any> = typeof(setm... | 262 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/Network/Remotes.luau | luau | .luau | --!strict
local Shared = script.Parent.Parent
local RunContext = require(Shared.RunContext)
local reliable = script:FindFirstChildOfClass("RemoteEvent")
local unreliable = script:FindFirstChildOfClass("UnreliableRemoteEvent")
if not (reliable and unreliable) then
if RunContext.IsServer or RunContext.IsEdit then
... | 298 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-5e8a467/Modules/Network/Server.luau | luau | .luau | --!strict
local Server = {}
Server.__index = Server
local Network = script.Parent
local Players = game:GetService("Players")
local Types = require(Network.Types)
local Signal = Types.Signal
type Signal<T...> = Types.Signal<T...>
type EventOptions = Types.EventOptions
type Validator<T...> = Types.Validator<T...>
ex... | 496 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.