Drag and weld system question

  1. What do you want to achieve? Keep it simple and clear!
    Snapping(welding) system simmilar to “My Summer Car”. I want the player to be able to drag parts of the car to their desired positions, and once the parts are somewhat in the correct position, they should snap in place.

  2. What is the issue?
    I’ve tried using attachments, but I was never able to actually make the two models snap(weld) together.

  3. What solutions have you tried so far?
    I am unable to find any better info on this matter, as when you google “snapping”, snapping to grid and stuff like this appears.

I don’t really have a script to post here, I just need some ideas on how to even make this work. Are attachments even the right way?
Thanks :smiley:

1 Like

If your grabbing system relies on AlignPosition (Which is recommended) you could use workspace:GetPartsInPart() to check if it’s touching an invisible part which is where the car part should go in. You can detect if it’s the right part by checking its tag (CollectionService). If it is, change the AlignPosition.Position to the invisible part’s Position.