of     1   

mythmaker64
#111848821Monday, September 02, 2013 12:12 AM GMT

My Script: local weldTo = script.Parent.Functions.Engine local weldToCF = weldTo.CFrame:inverse() local parts = (weldTo) function Weld(parent) for _,v in pairs(parent:GetChildren()) do if (v:IsA("BasePart") and v ~= weldTo) then local w = Instance.new("Weld") w.Name = "PlaneWeld" w.Part0 = weldTo w.Part1 = v w.C0 = weldToCF w.C1 = v.CFrame:inverse() w.Parent = weldTo table.insert(parts, v) end Weld(v) end end Weld(script.Parent) for _,v in pairs(parts) do v.Anchored = false end script:Destroy() It says "Workspace.Plane.Weld:21: bad argument #1 to 'insert' (table expected, got userdata)" I'm not sure what is wrong with it. Please help me. ~Myth
blocco
#111851511Monday, September 02, 2013 12:32 AM GMT

I can tell that you don't understand the code with which you program. Try understanding it first.
mythmaker64
#111852535Monday, September 02, 2013 12:40 AM GMT

Yes I do I have my Weld function, which is a recursive function that will reiterate through every single part of the plane that I am working on. The Weld function will check to see if those are actual parts, if it is it will weld that to the Engine and while it does that, it collects all the parts it finds and throws it into the table. After everything is welded, it scans through the part and un-anchors everything that is found, and finally, the script destroys itself.
mythmaker64
#111852771Monday, September 02, 2013 12:42 AM GMT

Nevermind, I accidently used the wrong kind of brackets at a point in my script. Thanks anyway.
[rfa#hidefromsearch]
#111857305Monday, September 02, 2013 1:17 AM GMT

[rfa#hidefromsearch]
mythmaker64
#111860444Monday, September 02, 2013 1:40 AM GMT

XD

    of     1