Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

the welding script stopped working after the Roblox upgrade who can help?

Asked by 4 years ago
            if face.Weld then
                face.Weld:Destroy()
            end


            face.Part.Parent = nil
            face.Part.CFrame = woodClass.Sections[cut.SectionId].Part.CFrame *  sectionCF * bottomCF * CFrame.new(0, cut.Height, 0)
            face.Part.Parent = woodClass.Model

            if face.Weld then
                face.Weld:Destroy()
            end
            face.Weld = Instance.new("Weld")
            face.Weld.Part0 = face.Part
            face.Weld.Part1 = woodClass.Sections[cut.SectionId].Part
            face.Weld.C0 = bottomCF * CFrame.new(0, -cut.Height, 0)
            face.Weld.C1 = sectionCF 
            face.Weld.Parent = face.Part
        end
    end

Answer this question