Drag and Drop System

Hello I am SkyKurr a programmer on roblox. My problem is that I cannot figure out how to make a drag and drop system with moving parts. I was wondering if you have any suggestions on posts or anything to look at that might be able to help me. I have tried looking already and could not find any. So if you have any that would be great.

Yes, if you mean get an item from the floor and move it to a custom inventory (or regular inventory), you could put a value that indicates if that item is pickable or not. When drop, you can put it in the own inventory UI.

If you mean drag a block or item to place it somewhere, you can do it the same as I just said, add a value that indicates that object is dragable. Once the mouse is hovered, it will pop up a clickdetector or something else that indicates that the item is dragable. Then, send from the LocalScript to the Server that the player got the item and he will be placing it soon.
Once the player drops it, send to the Server that he or she has dropped it, and it should load to all clients that the item has been moved, same as you should do with the drag system.

Hope this works for you. If not, feel free to ask.

I’ll see what I can do. Thanks for the help!

If you mean dragging things in the air, maybe this article of mine would help.

2 Likes