So I made a model that attaches to a player using primary part. But everytime I run the game only the parts that are in the model moves not the primary/main part. The primary part just stays on the upper torso. I don't know what I am doing wrong. I am new to cframe so can anybody help me please!
local Lighting = game.Lighting
local Vest = Lighting:WaitForChild("Flak Jacket")
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:connect(function(character)
character:WaitForChild("UpperTorso")
local ClonedVest = Vest:Clone()
ClonedVest.Parent = character
ClonedVest:SetPrimaryPartCFrame(character:WaitForChild("UpperTorso").CFrame)
local Weld = Instance.new("Weld")
Weld.Part0 = ClonedVest.Main
Weld.Part1 = character:WaitForChild("UpperTorso")
Weld.Parent = character:WaitForChild("UpperTorso")
ClonedVest:SetPrimaryPartCFrame(ClonedVest:GetPrimaryPartCFrame() * CFrame.new(0,0,5))
end)
end)
Thanks.

2 comments
do i position it before i weld it?
You have to manually set the weld's c1 and c0 properties. Try removing the setprimarypartcframe and instead set weld.c1 to CFrame.new(0,0,5) and see if that gets the result you are looking for.