Why can all my textbuttons be dragged?

example:
https://gyazo.com/365773cd7f025ac1205056fd2e60c026
Why can my textbuttons be dragged? How can I make it so they are not draggable.

How did you accidently make a button draggable?? Can you show a script?

1 Like

There is literally no code that involves dragging at all. Just mouse enter and mousebutton1click events. Im so confused on how this is even possible.

double check if you had put a Draggable script in its parent and that it maybe makes the button draggable instead? like instead of script.Parent you did script.Parent.TextButton

1 Like

Double checked and theres nothing.

can i maybe see the script? and how you layed out ur gui

1 Like

There is literally zero dragging involved in any of the code on my UI and its hundreds of lines long.
image
Here is the menu displayed in the gif.

image
When I print if its draggable it says true, when I researched this is a deprecated feature and I didnt touch anything to make it draggable. Let me try seeing if I can set them to false.

maybe try this script. it should force it having draggable off

local button = your button

if button then
    button.Draggable = false
    
    for _, dragConstraint in ipairs(button:GetDescendants()) do
        if dragConstraint:IsA("UISizeConstraint") or dragConstraint:IsA("UIAspectRatioConstraint") then
            dragConstraint.Enabled = false
        end
    end
end

1 Like

I ran code in the command bar that would set all UI draggable to false. Weird that it could even just turn on like that when its deprecated (and my game was created years after its deprecation). Thank you for trying to help!

Indeed very wierd, maybe it became an option you can enable in the properties?

iā€™m glad it worked out, good luck on your journey!!

1 Like

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