-
I want to create a puzzle system that lets the player drag a part to the end part & the drag part snaps to the end part, removing the capability for the user to drag the part. They need to do this 3 times with the snapping having to match the correct colour. I also want the user not to drag the part out of the electrical box.
-
The issue is, I do not know how to use DragDetectors or script a dragging system.
-
I’ve looked everywhere on the DevForum but nobody has ever covered this topic.
Here is a picture of my explorer with the parts.
I made some Puzzles with DragDetectors and I recommend them for this situation. Setting up the drags may be a bit confusing but you’ll get it. You are gonna wanna set up a script for Each Drag and either go by Distance/Magnitude or Touch with Run-Service.
Here is a Little Test Experience of the Puzzles you can make with DragDetectors and scripts.
DragPuzzles.rbxl (65.4 KB)
I’ll Update it later unless you got it from here. (☞゚ヮ゚)☞
Have a Blessed Day.
------------ Edit
-------------
Here is the New Version with the Wire system:
DragPuzzles.rbxl (69.5 KB)
Thank you so much, it works after tons of customisations!
Glad to be of assistance.
I want to let you know I Added a Wire System to it. The code isn’t great but it works.
You can tell I like to randomize my stuff. For replay ability of course.
Also, The Important thing about DragDetectors is the Reference Part. It can change everything about how the DragDetector moves and rotates.
You might of noticed that by now. But most of it is just testing it out, and Remember you can move the draggable parts in Studio without running the game by unselecting the select tool.

One more thing!
Have a Blessed Day!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.