How to make a BillboardGui that drags a part?

Hi! I was wondering if someone could please help me with the question above.I know how to create the Gui with a button, however I am having trouble of manipulating the events of the ImageButton to make the adornee part move with the button. Can someone please help.

Edit
I am trying to move a part through the use of a image button that is parented to a Billboard gui, and the mouse cannot be used since this is a feature i am refining for mobile devices

There isn’t a property .Adornee for an ImageButton, so I’m a little confused what you are referring to. An Adornee just describes the part a GUI object is attached too, but doesn’t need to be used if the GUI is server side (the GUI will appear on the part that is it’s Parent)

From the wiki: “[An Adornee] defines which BasePart the GuiObject is attached to.”

Could you describe your problem a little more/edit your original post so we know what you’re asking more in-depth? Thank you

I meant the adornee forBillboardGui

Do you mean you want to be able to move the part by dragging it?

You could either set the part’s CFrame to wherever the mouse is pointing, or you could try using a Handle object! Bear in mind that a Handle must be parented to a player’s PlayerGui or the CoreGui to be interactive.

3 Likes

Thank you very much :slight_smile: didnt know about those objects lol

1 Like