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

Welds not working?

Asked by 10 years ago

I'm not very good at welds, as I do not know how to use them, but I pulled this directly off the wiki, and it won't work:

            local function weldBetween(a,b)
            local weld = Instance.new("ManualWeld")
            weld.Part0 = a
            weld.Part1 = b
            weld.C0 = CFrame.new()
            weld.C1 = b.CFrame:inverse() * a.CFrame
            weld.Parent = a
            return weld;
            end
            weldBetween(throwingHandle, hit.Parent)

I get the error: bad cast

0
For which lines? VariadicFunction 335 — 10y

Answer this question