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

Why doesn't this work?

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

✓ Accepted answer

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

3 comments

0

lol. Thanks man!

0

lol well now I put: w1.Parent=player.Character.Torso and it gives me: :28: attempt to index field 'Character' (a nil value)

0

try doing repeat wait() until player.Character

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