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

Welding a model to a leg?

Asked by 7 years ago
Edited 7 years ago

Hello, I am trying to make a shoe. The primary Part of the shoe is where the leg would be and I have welded the primary part to the leg but the rest of the model does not move along with the leg. Here is the code:

game.Players.PlayerAdded:connect(function(player)
    player.CharacterAdded:connect(function(Char)
        RightLeg = Char:WaitForChild("Right Leg")
        print(RightLeg:GetFullName())
        RightShoe = workspace:WaitForChild("RightShoe")
        shoe = workspace.RightShoe:Clone()
        shoe.Parent = workspace
        shoe.Name = "Cloned"

            weld=Instance.new("ManualWeld")
        weld.Parent = RightLeg
            weld.Part0 = RightLeg
            weld.Part1 = shoe.Prime
        shoe.Prime.CFrame = RightLeg.CFrame

    end)
end)

Answer this question