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

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

Asked by 7 years ago
Edited by OldPalHappy 7 years ago
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.

0
You put the code inside the code block OldPalHappy 1477 — 7y
0
Are you happy now?;) 1000anton 38 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

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

Ad

Answer this question