How to change the postion of all the parts in a tool in a line

hello!
I am currently making an item spawn system where it would clone the tool and place it in X location

I have a sword where the mesh parts go in a line, if I just change all their positions it puts them in a ground, if I just put the handle the rest of the meshes wotn get dragged with it, how would I do this?

tl:dr, change the position of all the parts in a tool and keep them in the same line2021-11-01 19_23_34-Window

2 Likes
local tool = workspace.Tool --change reference to tool

for i, v in pairs(workspace.Tool:GetDescendants()) do
	if v:IsA("Part") then
		v.Position += Vector3.new(0, 0, 0) --change components of the Vector3 value
	end
end

You could do this by modifying the CFrame property of the parts as well.

2 Likes

weld all the parts together to a singular part and teleport the part

1 Like