Is there a way to weld models? I tried to but it puts in the output that CFrame is not a valid member of Model" or something. Here is the code:
function weldToHuman(a,b)
b.CFrame = a.CFrame
local weld = Instance.new("Weld")
weld.Part0 = a;
weld.C0 = a.CFrame:inverse()
weld.Part1 = b;
weld.C1 = b.CFrame:inverse()
weld.Parent = a;
return weld;
end
game.Players.PlayerAdded:connect(function(player)
print(player.Name .. " Welcome");
player.CharacterAdded:connect(function(character)
game.Lighting.JetPack:Clone()
game.Lighting.JetPack.Parent = game.Workspace
print(character.Name .. " character")
wait(2);
weldToHuman(character.Torso,game.Workspace.JetPack)
end)
end)
print("loaded welding")

6 comments
Doesn't work. It only welds the part I told it to weld. The rest of the model just sits there.
It will work if you weld all the parts together.
I assumed that you had already done that, since you were trying to weld multiple parts to something else.
Yea I tried to weld all of it but it only does the first part i told it to.
I suggest that you use a weld script to do that for you inside of the jet pack and then run the script. It makes it a lot quicker.
Would you be able to get it for me? I am confused