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?
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
Double checked and theres nothing.
can i maybe see the script? and how you layed out ur gui
There is literally zero dragging involved in any of the code on my UI and its hundreds of lines long.
Here is the menu displayed in the gif.
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
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!!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.