Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

my tool weld isnt working why? it welds but on the wrong place.

for i, v in pairs(script.Parent:GetChildren()) do
	
if v.ClassName == "UnionOperation" or "Part" or "WedgePart" then
	
weld = Instance.new("Weld", v)
weld.Part0 = v
weld.Part1 = script.Parent.Union.CFrame
weld.C0 = v.CFrame:inverse()
weld.C1 = script.Parent.Union.CFrame:inverse()	
v.Anchored = false	
	
	
	
	
	
	
end	
end

so the result of this would be the second half of the tool welding a far distance from the Handle.

2 comments

0

You put the code inside the code block

0

Are you happy now?;)

1 answer

You need the identify the CFrame of v if you want it to weld on a certain location. for example, v.CFrame = Handle.CFrame

This discussion is preserved as it was. New answers, comments, and votes are closed.