As you can see MakeJoints() is being used.. I was wondering if there was something else I could use?
local a = script.Parent.Parent.Cartlol3:Clone()
local deb = false
function chng()
if deb == false then
deb = true
local new = a:Clone()
new.Parent = script.Parent.Parent
local part1 = new
new:MakeJoints() -- Deprecated
script.Parent.BrickColor = BrickColor.new(21)
wait(2)
script.Parent.BrickColor = BrickColor.new(28)
deb = false
end
end
script.Parent.Click.MouseClick:Connect(chng)

2 comments
Idk if this helps but looking at the dev hub it says you should use stuff like WeldConstraints and HingeConstraints.
SurfaceType based joining is deprecated, do not use MakeJoints for new projects. WeldConstraints and HingeConstraints should be used instead. AKA what @PhantomBrix said.