I am trying to weld 2 objects, named Engine2 and Wing1 and I am also putting a function where I touch a brick and both of them move. I really need help on how to stick them together so that one of them don't go off alone.
local function weldBetween(a, b)
local weld = Instance.new("ManualWeld")
weld.Engine.Engine2 = a
weld.Engine.Wing1 = b
weld.C0 = CFrame.new()
weld.C1 = b.CFrame:inverse() * a.CFrame
weld.Parent = a
return weld;
end
weldBetween(game.Workspace.Engine.Engine2, game.Workspace.Engine.Wing1)
The output window says " Engine is not a valid member of ManualWeld "
I do not understand it, can anyone help me?
~Thanks for reading this, Yeevivor4
