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 |
|---|---|---|---|---|---|
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-993aa2e/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,483 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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,138 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-993aa2e/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,278 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-993aa2e/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-993aa2e/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-993aa2e/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... | 662 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-993aa2e/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-993aa2e/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... | 911 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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,842 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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,644 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/Modules/DraggerSchemaCore/beginRecording.luau | luau | .luau | local DraggerSchemaCore = script.Parent
local Packages = DraggerSchemaCore.Parent
local DraggerFramework = require(Packages.DraggerFramework)
type DraggerContext = DraggerFramework.DraggerContext
return function(draggerContext: DraggerContext, waypointName: string)
draggerContext:beginRecording(waypointName)
end
| 74 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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,466 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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-993aa2e/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... | 5,178 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-993aa2e/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-993aa2e/Modules/ModelSquash/DeferredPatcher.luau | luau | .luau | local DeferredPatcher = {}
local AssetService = game:GetService("AssetService")
type MeshPatch = {
MeshContent: Content?,
FluidFidelity: Enum.FluidFidelity?,
RenderFidelity: Enum.RenderFidelity?,
CollisionFidelity: Enum.CollisionFidelity?,
}
local pendingMeshes = {} :: {
[MeshPart]: MeshPatch
}
l... | 373 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-993aa2e/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 DeferredPatcher = require(script.DeferredPatcher)
local ReflectionService = game:GetService("ReflectionService")
local Filters = require(script.Filters... | 2,589 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-993aa2e/Modules/Mutex/init.luau | luau | .luau | local DEFAULT_KEY = "Default"
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 or DEFAULT_KEY)
if not list:find(key) then
list ... | 300 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-993aa2e/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-993aa2e/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-993aa2e/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 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-993aa2e/Modules/Network/Types.luau | luau | .luau | --!strict
local Shared = script.Parent.Parent
local Signal = require(Shared.Signal)
export type Signal<T...> = Signal.Signal<T...>
export type Validator<T...> = (...unknown) -> T...
export type EventOptions = {
Name: string,
Reliable: boolean?,
Unreliable: boolean?,
}
return {
Signal = Signal,
} | 76 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-993aa2e/Modules/Network/init.luau | luau | .luau | --!strict
local Shared = script.Parent
local RunContext = require(Shared.RunContext)
local Players = game:GetService("Players")
local Client = require(script.Client)
local Server = require(script.Server)
local Types = require(script.Types)
type Client<T...> = Client.Class<T...>
type Server<T...> = Server.Class<T...>... | 1,359 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-993aa2e/Modules/Octree/init.luau | luau | .luau | --!strict
local Octree = {}
Octree.__index = Octree
local OctreeNode = {}
OctreeNode.__index = OctreeNode
type Region = {
subRegions: { Region },
lowerBounds: Vector3,
upperBounds: Vector3,
position: Vector3,
size: Vector3,
parent: Region?,
parentIndex: number?,
depth: number,
nodes: {
[NodeInternal]: t... | 3,345 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-993aa2e/Modules/RobloxMesh/Buffer.luau | luau | .luau | local Buffer = {}
Buffer.__index = Buffer
export type Class = typeof(setmetatable({} :: {
_buf: buffer,
_pos: number,
_bitsValue: number,
_bitsLength: number,
}, Buffer))
export type LowHigh = {
Low: number,
High: number,
}
function Buffer.new(buf: buffer, pos: number?): Class
if pos the... | 1,460 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-993aa2e/Modules/RobloxMesh/Draco/Constants.luau | luau | .luau | local CONST = table.freeze
return CONST({
MeshEncoderType = CONST({
Invalid = -1,
PointCloud = 0,
TriangularMesh = 1,
}),
MeshEncodingMethod = CONST({
Sequential = 0,
EdgeBreaker = 1,
}),
MetadataConstants = CONST({
FlagMask = 0x8000,
}),
... | 831 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-993aa2e/Modules/RobloxMesh/Draco/Debug.luau | luau | .luau | local Draco = script.Parent
local RobloxMesh = Draco.Parent
local Buffer = require(RobloxMesh.Buffer)
local DEBUG = false
type Buffer = Buffer.Class
local debugStack = 0
local function nameof<T>(sourceTable: T, value: number?): keyof<T> | "nil"
if value == nil then
return "nil"
end
for name, val... | 567 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-993aa2e/Modules/RobloxMesh/Draco/Rans.luau | luau | .luau | local Draco = script.Parent
local RobloxMesh = Draco.Parent
local Buffer = require(RobloxMesh.Buffer)
local Debug = require(Draco.Debug)
local Rans = {}
Rans.__index = Rans
type ProbEnt = {
prob: number,
cumProb: number,
}
export type BitState = {
BitsValue: number,
BitsLength: number,
}
export typ... | 1,412 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-993aa2e/Modules/RunContext/init.luau | luau | .luau | --!strict
local UserInputService = game:GetService("UserInputService")
local GuiService = game:GetService("GuiService")
local RunService = game:GetService("RunService")
local VRService = game:GetService("VRService")
local isEdit = false
local isServer = RunService:IsServer()
local isClient = RunService:IsClient()
loc... | 407 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-993aa2e/Modules/StackModifier/init.luau | luau | .luau | -- StackModifier
-- MaximumADHD
-- March 21st, 2023
--!strict
--- A module for handling complex property stacking and modification.
--- It allows for multiple sources to modify the same property on an instance, with the ability to prioritize and weight each source.
--- Modifiers with higher priorities will override l... | 2,575 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-993aa2e/Modules/StringBuilder/init.luau | luau | .luau | local StringBuilder = {}
StringBuilder.__index = StringBuilder
export type Class = typeof(setmetatable({} :: {
_stack: number,
_buffer: string,
_dirty: boolean,
_splitCache: { string },
}, StringBuilder))
local function new(): Class
return setmetatable({
_stack = 0,
_buffer = ... | 585 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-993aa2e/Modules/Tags/init.luau | luau | .luau | ------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- Tags
-- MaximumADHD
-- December 22nd, 2020
---------------------------------------------------------------------------------------------------------------... | 567 |
MaximumADHD/Roblox-Utils | MaximumADHD-Roblox-Utils-993aa2e/Modules/UserId/init.luau | luau | .luau | local Shared = script.Parent
local RunContext = require(Shared.RunContext)
local StudioService = if RunContext.IsStudio
then game:GetService("StudioService")
else nil
local Players = game:GetService("Players")
--- Returns a player's `UserId`, and a `boolean` indicating whether it is a mocked value or not.
--... | 548 |
AlexanderLindholt/TextPlus | AlexanderLindholt-TextPlus-860e1cb/source/CorrectOptions.luau | luau | .luau | --!optimize 2
--!native
-- Services.
local TextService = game:GetService("TextService")
-- Option defaults.
local defaults = require(script.Parent.Defaults)
-- User fonts.
local userFonts = require(script.Parent.Fonts)
-- Option lists for validity checks.
local scaleSizeTypes = {
RootX = true,
RootY = true,
RootX... | 1,584 |
AlexanderLindholt/TextPlus | AlexanderLindholt-TextPlus-860e1cb/source/Defaults.luau | luau | .luau | --!optimize 2
-- Services.
local CollectionService = game:GetService("CollectionService")
-- Attempt to find the plugin object.
local plugin = script:FindFirstAncestorOfClass("Plugin")
-- Options list for validation.
local optionsList = require(script.Parent.Options)
-- Default defaults.
local defaults = {
Font = ... | 422 |
AlexanderLindholt/TextPlus | AlexanderLindholt-TextPlus-860e1cb/source/Fonts.luau | luau | .luau | --!optimize 2
-- Services.
local CollectionService = game:GetService("CollectionService")
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
-- Load and store all custom fonts.
local userFonts = {}
for _, module in CollectionService:GetTagged("Fonts") do
if module:IsA("Modul... | 1,142 |
AlexanderLindholt/TextPlus | AlexanderLindholt-TextPlus-860e1cb/source/Options.luau | luau | .luau | return {
Font = true,
Size = true,
ScaleSize = true,
MinimumSize = true,
MaximumSize = true,
Color = true,
Transparency = true,
Pixelated = true,
Offset = true,
Rotation = true,
StrokeSize = true,
StrokeColor = true,
StrokeTransparency = true,
ShadowOffset = true,
ShadowColor = true,
Shado... | 151 |
Roblox/rocale-cli | Roblox-rocale-cli-ad165e9/scripts/build.luau | luau | .luau | local args = { ... }
local version = args[2] or "unknown"
local hash = args[3] or "unknown"
local fs = require("@std/fs")
local system = require("@lute/system")
local log = require("../src/util/log")
log.setLevel("debug")
local runProcess = require("../src/util/runProcess")
if not fs.exists("build") then
fs.create... | 231 |
Roblox/rocale-cli | Roblox-rocale-cli-ad165e9/scripts/test.luau | luau | .luau | local process = require("@lute/process")
local fs = require("@std/fs")
local log = require("../src/util/log")
log.setLevel("debug")
local runProcess = require("../src/util/runProcess")
runProcess(
"build/rocale-cli",
"run",
"--script",
"tests/run-test-project.luau",
"--placeId",
process.env.TEST_PLACE_ID,
"--... | 266 |
Roblox/rocale-cli | Roblox-rocale-cli-ad165e9/src/cli.luau | luau | .luau | local args = { ... }
local runCommand = require("./commands/run")
local versionInfo = require("./version")
local function helpCommand()
print([[
rocale-cli
A command-line tool for building, uploading, and running Roblox projects in Open Cloud.
USAGE:
rocale-cli <command> [options]
COMMANDS:
run Build, upl... | 175 |
Roblox/rocale-cli | Roblox-rocale-cli-ad165e9/src/commands/run.luau | luau | .luau | local function help()
print([[
rocale-cli run
Build, upload, and run a Roblox project in Open Cloud
USAGE:
rocale-cli run [options]
REQUIRED:
-u, --universeId <id> Target universe ID to spawn an Open Cloud instance of
-p, --placeId <id> Target place ID to spawn an Open Cloud instance of
--apiK... | 1,684 |
Roblox/rocale-cli | Roblox-rocale-cli-ad165e9/src/util/log.luau | luau | .luau | --[[
Simple logger module.
]]
local richterm = require("@batteries/richterm")
local process = require("@lute/process")
local log = {}
type Level = "trace" | "debug" | "info" | "warn" | "error"
local dimBlueFormatter = richterm.combine(richterm.blue, richterm.dim)
local currentLevel: Level = "info"
local colorsEna... | 823 |
Roblox/rocale-cli | Roblox-rocale-cli-ad165e9/src/util/runProcess.luau | luau | .luau | local process = require("@std/process")
local system = require("@std/system")
local log = require("../util/log")
local isWin32 = string.lower(system.os) == "windows_nt"
local function runProcess(...: string): string
local cmd = { ... }
if isWin32 then
cmd[1] ..= ".exe"
end
local cmdStr = table.concat(cmd, " "... | 181 |
Roblox/rocale-cli | Roblox-rocale-cli-ad165e9/tests/project/init.luau | luau | .luau | return true
| 3 |
Roblox/rocale-cli | Roblox-rocale-cli-ad165e9/tests/run-test-project.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TestProject = require(ReplicatedStorage:FindFirstChild("TestProject"))
assert(TestProject == true, "TestProject did not return true")
local hello = _G.HELLO_GLOBAL or ""
local world = _G.WORLD_GLOBAL or ""
local output = {
BinaryOutput = buffer.fr... | 93 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.