How would I break a weld connection between two different models?

NOTE: I DO NOT WANT ANYONE TO SCRIPT FOR ME, I JUST WANT HELP ON HOW TO ACHIEVE THIS.

Achieve

I want to achieve a way to make it so when I touch a certain brick… it breaks a welds connection to two bricks that are in different models…

Issues

  1. I know very little about Welds.
  2. I have no idea where to start when it comes to welding.
  3. I don’t know anything about the welding process and how to access it through scripts.

Script

--[Main Script]--
script.Parent.Touched:Connect(function(part)
	local plr = part.Parent:FindFirstChild("Humanoid")
	if plr and plr.PlatformStand then
		--Where do I start?..
	end
end)

Again, I want help on how to do this and where to go to learn how this stuff works on ROBLOX.
Thank you to anyone who helps me with this issue.

1 Like

can you not set Part0 and Part1 to nil or just destroy the weld? @MillerrIAm

1 Like

Breaking welds is extremely easy. All you have to do is destroy them. ( @MarkiPr0 – I’d recommend just deleting the weld straight away )

Take weld A, attached between Brick1 as Part0, and Brick2 as Part1.

This weld “connects” Brick2 to Brick1, meaning that if you move Brick1, Brick2 will move alongside it.

Therefore, deleting this weld breaks this connection.

--[Main Script]--
script.Parent.Touched:Connect(function(part)
	local plr = part.Parent:FindFirstChild("Humanoid")
	if plr and plr.PlatformStand then -- why the PlatformStand by the way?
		workspace.Brick1.Weld:Destroy()
                -- Weld being in Brick1 is not necessary, but it is "good practice", as Brick1 is the "main" part of the weld (Part0)
                -- Removing the weld implies breaking it, therefore it is this easy
	end
end)
2 Likes

Yes you could, my post was very flawed and unclear on what I was actually asking as I was very tired.
I am also very new to welding so one of my main questions were how do welds work properly and how do I use them properly.

1 Like