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

I need help with a weld script? [Unanswered]

Asked by
Prioxis 673 Moderation Voter
9 years ago

alright so this weld script doesn't work and i've tried a lot of other weld scripts but they all don't work my plane just falls out of the sky the parts in the plane (class names I mean) are WedgePart, Union, Part and thats it in play mode the thing just falls out of the sky after I Unanchor it and parts fly everywhere from the plane

if someone could just help me clean up this script and fix it that'd be great!

Here's the script

local pln = script.Parent 

local w = Instance.new("Weld") 
w.Parent = pln
w.Part0 = pln.Union
w.Part1 = pln.Union2
w.C0 = CFrame.new(0, 0, 6)*CFrame.new(0, -math.pi/5, 0)
local w2 = Instance.new("Weld") 
w2.Parent = pln
w2.Part0 = pln.Union
w2.Part1 = pln.Union3

local w3 = Instance.new("Weld") 
w3.Parent = pln
w3.Part0 = pln.Union
w3.Part1 = pln.Union4

local w4 = Instance.new("Weld") 
w4.Parent = pln
w4.Part0 = pln.Union
w4.Part1 = pln.Part1

local w5 = Instance.new("Weld") 
w5.Parent = pln
w5.Part0 = pln.Union
w5.Part1 = pln.Part2

local w6 = Instance.new("Weld") 
w6.Parent = pln
w6.Part0 = pln.Union
w6.Part1 = pln.Part3

local w7 = Instance.new("Weld") 
w7.Parent = pln
w7.Part0 = pln.Union
w7.Part1 = pln.Part4

local w8 = Instance.new("Weld") 
w8.Parent = pln
w8.Part0 = pln.Union
w8.Part1 = pln.Part5

local w9 = Instance.new("Weld") 
w9.Parent = pln
w9.Part0 = pln.Union
w9.Part1 = pln.Part6

local w10 = Instance.new("Weld") 
w10.Parent = pln
w10.Part0 = pln.Union
w10.Part1 = pln.Part7

local w11 = Instance.new("Weld") 
w11.Parent = pln
w11.Part0 = pln.Union
w11.Part1 = pln.Part8

local w12 = Instance.new("Weld") 
w12.Parent = pln
w12.Part0 = pln.Union
w12.Part1 = pln.Part9

local w13 = Instance.new("Weld") 
w13.Parent = pln
w13.Part0 = pln.Union
w13.Part1 = pln.Wedge

local w14 = Instance.new("Weld") 
w14.Parent = pln
w14.Part0 = pln.Union
w14.Part1 = pln.Propellar1

local w15 = Instance.new("Weld") 
w.Parent = pln
w.Part0 = pln.Union
w.Part1 = pln.CamPart

local w16 = Instance.new("Weld") 
w.Parent = pln
w.Part0 = pln.Union
w.Part1 = pln.Propellar2

local w17 = Instance.new("Weld") 
w.Parent = pln
w.Part0 = pln.Union
w.Part1 = pln.Propellar3

local w18 = Instance.new("Weld") 
w.Parent = pln
w.Part0 = pln.Union
w.Part1 = pln.Propellar4



if anyone could help me make this more efficient and not so long of a script and tell me what I did wrong that'd be great! :D

1 answer

Log in to vote
0
Answered by 9 years ago

Making weld scripts manually is all well and good, but they can take really long to make and get tedious when making many different models. To work around this, I highly recommend Crazyman32's Auto-weld Script. Just put this in any model you want and the script takes care of the rest!

On a side note, the script looks fine, but manual weld scripts are generally inefficient and are really long. So you didn't do anything wrong, even though the script is huge.

Ad

Answer this question