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

Can someone give me a short weld explanation?

Asked by
tumadrina 179
10 years ago

Can someone give me someone give me a brief explanation of welding, I understand it holds together non-anchored parts, I just don't understand the things like part0

1 answer

Log in to vote
1
Answered by 10 years ago
FirstPart = Workspace.Partname1 -- The location of the first part
SecondPart = Workspace.Partname2 -- The location of the second part

WeldName = Instance.new("Weld") -- Create new weld with name "WeldName"
WeldName.Part0 = FirstPart -- Selecting the first part to be welded
WeldName.Part1 = SecondPart -- Selecting the second part to be welded
WeldName.C0 = CFrame.new(0,0,0)*CFrame.Angles(0,0,0) -- Selecting where the parts will be welded at
WeldName.Parent = FirstPart -- Where the actual weld will be stored
0
Thank you :D tumadrina 179 — 10y
Ad

Answer this question