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

Does player character change after resetting in game mode? (Problem with a script error)

Asked by 8 years ago

I have a script who has a part wich does this at some part

RightShoulder = me.Character.Torso["Right Shoulder"]

Entire thing works fine, In studio, testing, everything works fine, even after resetting, But once i put it in a game to test in actual play mode, works fine, until the player resets wich is where the tool stops working, and the console shows an error saying * Right Shoulder is not a valid member of part*

Why does that happen? It seems like something changes when resetting in game mode.

0
can you put in full script? qwrn12 85 — 8y
0
it will be easyer to see whats wrong with full script qwrn12 85 — 8y
0
Resetting removes all joints, including the Right Shoulder. 1waffle1 2908 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

RightShoulder is a member of player.Character not player.Character.Torso

So try changing it to: RightShoulder = me.Character:findFirstChild("Right Shoulder");

0
This is wrong. 1waffle1 2908 — 8y
Ad

Answer this question