UIDragDetector only functions in one direction?

Hello people of the forums, how do you do? I honestly don’t know the correct category for this issue, but it’s extremely annoying.

I’m currently attempting to use a UIDragDetector to make a slider for my project, and it works, but only in one direction? Watch the video below to get some more context:

Notice how at first I can drag my slider back and fourth with no issues at all.

8 seconds into the video, you can see me attempting to drag my slider back to the start, and it doesn’t move an inch. In addition, I noticed whenever I try to drag my slider back to the start, it immediately sets the DragUDim2 property to 0, on every axis.

One more thing, If I change the MinDragTranslation to match the MaxDragTranslation, the slider just goes out of bounds completely.

Here’s how my UI is setup:
Medal_3YMrqfr1pm

And here’s how the UIDragDetector is setup too:

I thank whoever comes to my aid in advance :pray:

Update:
I went through the example place roblox provided in their post, and immediately found what I was doing wrong. For the people in the future that have the same issue I did, this is what fixed it:

I didn’t set a ReferenceUIInstance on my dragger, this needs to be set so your dragger stays within the bounds of your UI.

MinDragTranslation was set to:
-0.5, 0, 0, 0

MaxDragTranslation was set to:
0.5, 0, 0, 0

Configuring these properties allowed my dragger to work properly.

2 Likes

Glad you were able to figure it out-- please don’t hesitate to reach out or reply on the thread with questions on usage!

1 Like