Drag-Detector [Border]

Hello, I have a Door and drawer. You can move them with the Drag-Editor. Now I have the problem, It moves to far. I have set a limit, so I can only go a certain distance with one movement. But now you can let go (no longer pull. Then it is somehow etched back and you can move the limit forward again. So how do I make a general limit, not just one for one movement?

Video + Images:


2 Likes

You need to set the ReferenceInstance to some part that doesn’t move.

1 Like

Thank you.
[Don’t wonder, I deleted the video after @'mile told me the solution.]

ok.

anyways how do you get the drag detector locked to a certain axis

Drag Detectors | Documentation - Roblox Creator Hub

Drag Style

DragDetectors map cursor motion to virtual lines and planes to calculate proposed 3D motion. Through the DragStyle property, you can choose from different mappings to suit your needs. For example, TranslatePlane produces translation in a virtual plane, whereas RotateAxis produces rotation about a virtual axis.

Setting Description
TranslateLine 1D motion along the detector’s Axis, by default the world Y axis.

YOu can customice it in Axis

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.