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

Why doesn't this work?

Asked by 9 years ago

So i put this in a local script in the starter pack:

w1=Instance.new("Weld")

w1.Parent=player.Character

w1.Part0=player.Character.Torso           --this is where it errors

w1.Part1=part

w1.C1=CFrame.fromEulerAnglesXYZ(0,0,0)*CFrame.Angles(0,4.7,0)*CFrame.new(0,-1.4,3)

and the output gives me when i test it:

"00:46:48.818 - Torso is not a valid member of Player"

Any thoughts? Appreciate it.

1 answer

Log in to vote
0
Answered by
KoreanBBQ 301 Moderation Voter
9 years ago

In the wiki it clearly says a weld will not work if Part0 is not set as the Parent of the Weld.

0
lol. Thanks man! NAWESOME14 40 — 9y
0
lol well now I put: w1.Parent=player.Character.Torso and it gives me: :28: attempt to index field 'Character' (a nil value) NAWESOME14 40 — 9y
0
try doing repeat wait() until player.Character KoreanBBQ 301 — 9y
Ad

Answer this question