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

Welding script not working?

Asked by 10 years ago
Player = script.Parent.Parent

x = Instance.new("Part")
x.Size = Vector3.new(1, 3, 1)
x.TopSurface = "Smooth"
x.BottomSurface = "Smooth"
x.BrickColor = BrickColor.new("Mild Gray")
x.Reflectance = 0.3

x.Parent = c
game.Debris:AddItem(x,5)

w1 = Instance.new("Weld", c)
w1.Part0 = w1.Parent["Right Arm"]
w1.Part1 = x
w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) *CFrame.new(0, 0, 0)

Is the script. I get a problem saying Players.Sarcasticly.Backpack.Script:14: attempt to call field 'Parent' (a nil value) Any help?

2 answers

Log in to vote
1
Answered by
HexC3D 830 Moderation Voter
10 years ago

Note that you have to define everything, in this case what is c. Remember always define

0
Some Body IS MESSING WITH MY REP!!!!!!! Reputation Tampering!! HexC3D 830 — 10y
Ad
Log in to vote
-1
Answered by 10 years ago

Im Sorry, This Is Not A Valid Thing To Post!

0
Don't capitalize all your letters. It's freaking annoying. Also, who cares? FamousDoge 0 — 10y
0
I Dont Think You Should Be Posting This... I Think I Will Report! mommmy123456789011 0 — 10y

Answer this question