Math, asked by aserahmed2006, 9 months ago

What constraint are welds subject to in Roblox programming? (need the code)

Answers

Answered by Pitymys
16

Answer:

The code is given down  

Step-by-step explanation:

-- Create two parts and position them at the same height

local partA = Instance.new("Part")

local partB = Instance.new("Part")

partA.Position = Vector3.new(0, 10, 0)

partB.Position = Vector3.new(0, 10, 10)

partA.Parent = workspace

partB.Parent = workspace

 

-- Weld the two parts together

local weld = Instance.new("WeldConstraint")

weld.Parent = workspace

weld.Part0 = partA

weld.Part1 = partB

 

-- Update the position of the first part; the first part will move but the second will stay where it started

partA.Position = Vector3.new(0, 20, 0)

Answered by 18zverdi
9

Answer:

I don’t know srry

Step-by-step explanation:

Similar questions