Service · inherits Instance
DraggerService
A service that centralizes the global dragger settings that Studio's dragging tools read so they move, snap, and highlight objects consistently.
About DraggerService
DraggerService is a central hub for dragger-related settings that Studio's
dragging tools (and other dragger-like editing UX) read when deciding how to
move, snap, and highlight objects. Because the Move, Scale, and Rotate tools
all consult the same service, changing a setting here keeps their snapping,
collision, joint, and hover behavior in sync. Each property reflects the
corresponding Studio editing preference or global editing state.
Properties 15
AlignDraggedObjects
: booleanNotReplicatedWhether a dragged object is re-aligned to the surface it is dropped onto.When
true, a dragged object is rotated to align with the surface it is dropped on instead of keeping its original orientation. This reflects Studio's "Align Dragged Objects" editing preference and is read by the dragging tools.AngleSnapEnabled
: booleanNotReplicatedWhether rotation drags snap to multiples ofDraggerService.AngleSnapIncrement.When
true, rotating an object with a dragger snaps the rotation to multiples ofDraggerService.AngleSnapIncrement. Whenfalse, rotation is continuous and the increment has no effect.AngleSnapIncrement
: floatNotReplicatedThe angle, in degrees, that rotation drags snap to.The rotation snapping step, in degrees, applied while
DraggerService.AngleSnapEnabledistrue; it has no effect when angle snapping is disabled. The value is clamped to a small positive minimum, so it can never be set to0or a negative number.AnimateHover
: booleanNotReplicatedWhether the hover highlight pulses instead of staying static.When
true, the highlight drawn over the object under the cursor animates (pulses) atDraggerService.HoverAnimateFrequency. It only has a visible effect whenDraggerService.ShowHoveristrue.CollisionsEnabled
: booleanNotReplicatedWhether draggers prevent a moved object from overlapping other geometry.When
true, dragging performs collision checking so that a moved object stops against other parts instead of passing through them. Whenfalse, objects can be dragged freely through existing geometry.DraggerCoordinateSpace
: DraggerCoordinateSpaceNotReplicatedWhether drag transforms are applied in the object's local space or in world space.Controls the coordinate space draggers operate in:
DraggerCoordinateSpace.Objectmoves and rotates relative to the object's own orientation, whileDraggerCoordinateSpace.Worlduses the global axes. Defaults toDraggerCoordinateSpace.Object.DraggerMovementMode
: DraggerMovementModeNotReplicatedWhether dragging moves objects geometrically or by respecting physical constraints.Selects how draggers compute movement:
DraggerMovementMode.Geometricapplies transforms directly, whileDraggerMovementMode.Physicalrespects physical constraints while dragging. Defaults toDraggerMovementMode.Geometric.GeometrySnapColor
: Color3NotReplicatedThe color of the on-screen indicators drawn when a drag snaps to geometry.The
Color3used to draw the snapping indicators (such as pivot-to-geometry snap points) shown while dragging. It reflects the corresponding Studio color preference.HoverAnimateFrequency
: floatNotReplicatedThe frequency, in hertz, at which the hover highlight animates.How fast the hover highlight pulses, in cycles per second, when
DraggerService.AnimateHoveristrue. The value corresponds to Studio's hover-animation speed preference, which ranges from0.5(very slow) to10(very fast).HoverThickness
: floatNotReplicatedThe thickness of the highlight outline drawn around the object under the cursor.The thickness of the outline drawn around the object beneath the cursor. It is only visible when
DraggerService.ShowHoveristrue, and reflects Studio's hover-outline thickness preference.JointsEnabled
: booleanNotReplicatedWhether draggers create surface joints between touching parts when a drag ends.When
true, parts that come to rest against other surfaces during a drag are joined to them (for example, surface welds) when the drag finishes. Whenfalse, dragging does not create joints.LinearSnapEnabled
: booleanNotReplicatedWhether positional drags snap to a grid ofDraggerService.LinearSnapIncrement.When
true, moving an object with a dragger snaps its position to a grid whose spacing isDraggerService.LinearSnapIncrement. Whenfalse, movement is continuous and the increment has no effect.LinearSnapIncrement
: floatNotReplicatedThe grid size, in studs, that positional drags snap to.The spacing, in studs, of the movement grid applied while
DraggerService.LinearSnapEnabledistrue; it has no effect when linear snapping is disabled. The value is clamped to a small positive minimum, so it can never be set to0or a negative number.ShowHover
: booleanNotReplicatedWhether a highlight is drawn over the object currently under the cursor.When
true, draggers draw a highlight over the object beneath the cursor to indicate what a drag would affect. Whenfalse, no hover highlight is shown andDraggerService.AnimateHover,DraggerService.HoverThickness, andDraggerService.HoverAnimateFrequencyhave no visible effect.ShowPivotIndicator
: booleanNotReplicatedWhether to show the pivot indicator for a selected object as it's being dragged.When
true, the pivot indicator (the marker showing an object's pivot point) is shown while dragging. Defaults tofalse.
DraggerService also has every member of Instance. Deprecated and Roblox-only members are hidden.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.