Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Welding script not working?

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

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

1 comment

0

Some Body IS MESSING WITH MY REP!!!!!!! Reputation Tampering!!

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

2 comments

0

Don't capitalize all your letters. It's freaking annoying. Also, who cares?

0

I Dont Think You Should Be Posting This... I Think I Will Report!

This discussion is preserved as it was. New answers, comments, and votes are closed.