How to make a Welding Tool

Hey! So I am wanting to make a game, where you have building blocks and you can build anything. The only issue I have is the welding part. I have looked around for some tutorials but I can’t seem to find anything.

I am trying to achieve this:

image
image
So I am holding a welding tool and depending on where my mouse clicks depend on where these little neon balls go, the little neon balls I want them to act as a weld holding those two parts together.

This then means I can drag the two parts around as one. How can I do this as I can’t seem to find a good way…

Hope someone can help :smiley:

2 Likes

maybe when creating them make them weld everything that it touches ?

That’s a good idea, but I am not really sure how to do that :frowning:

1 Like

same lol xDDD im not a good scripter ether but it would look something like

touched:connect(function()
if bla bla touched then
create weld bla bla boom
its welded
end)

You could use the roblox welds to weld those 2 parts, and you should basically detect if that neon part is touching 2 or more parts and weld them all together.

1 Like