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 line
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.