Skip to content

Service · inherits Instance

DraggerService

Official docs ↗

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 of DraggerService.AngleSnapIncrement.

    When true, rotating an object with a dragger snaps the rotation to multiples of DraggerService.AngleSnapIncrement. When false, 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.AngleSnapEnabled is true; it has no effect when angle snapping is disabled. The value is clamped to a small positive minimum, so it can never be set to 0 or 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) at DraggerService.HoverAnimateFrequency. It only has a visible effect when DraggerService.ShowHover is true.

  • 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. When false, 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.Object moves and rotates relative to the object's own orientation, while DraggerCoordinateSpace.World uses the global axes. Defaults to DraggerCoordinateSpace.Object.

  • DraggerMovementMode: DraggerMovementModeNotReplicatedWhether dragging moves objects geometrically or by respecting physical constraints.

    Selects how draggers compute movement: DraggerMovementMode.Geometric applies transforms directly, while DraggerMovementMode.Physical respects physical constraints while dragging. Defaults to DraggerMovementMode.Geometric.

  • GeometrySnapColor: Color3NotReplicatedThe color of the on-screen indicators drawn when a drag snaps to geometry.

    The Color3 used 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.AnimateHover is true. The value corresponds to Studio's hover-animation speed preference, which ranges from 0.5 (very slow) to 10 (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.ShowHover is true, 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. When false, dragging does not create joints.

  • LinearSnapEnabled: booleanNotReplicatedWhether positional drags snap to a grid of DraggerService.LinearSnapIncrement.

    When true, moving an object with a dragger snaps its position to a grid whose spacing is DraggerService.LinearSnapIncrement. When false, 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.LinearSnapEnabled is true; it has no effect when linear snapping is disabled. The value is clamped to a small positive minimum, so it can never be set to 0 or 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. When false, no hover highlight is shown and DraggerService.AnimateHover, DraggerService.HoverThickness, and DraggerService.HoverAnimateFrequency have 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 to false.

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.