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

How do I weld bricks together?

Asked by 10 years ago

How do I weld bricks together? I need to weld Police lights to my police car, but everytime I put them on, they fall off. How do I weld them?

2 answers

Log in to vote
0
Answered by 10 years ago
local weld = Instance.new("Weld", game.Workspace.Part);
weld.Part0 = weld.Parent;
weld.Part1 = game.Workspace.Part2;
Ad
Log in to vote
0
Answered by 10 years ago

I might add this for easy use:

weld.C1 = part1.CFrame:inverse() * part0.CFrame

"part0" being the weld's Part0, "part1" being the weld's Part1. Adding that will position the parts in the correct fashion.

Answer this question