How to receive parts that is nil back?
I'm trying to make my custom character transform when the player press e, and it will go back to its original from by pressing e again, but it kept saying:
The Parent property of Leg1 is locked, current parent: NULL, new parent ----
is anything wrong here?
03 | game:GetService( "UserInputService" ).InputBegan:connect( function (input) |
04 | if input.KeyCode = = Enum.KeyCode.E then |
18 | game:GetService( "UserInputService" ).InputBegan:connect( function (input) |
19 | if input.KeyCode = = Enum.KeyCode.E then |
21 | L 1. Parent = script.Parent |
22 | L 2. Parent = script.Parent |
23 | L 12. Parent = script.Parent |
24 | L 22. Parent = script.Parent |
25 | S 1. Parent = script.Parent |
26 | S 2. Parent = script.Parent |
27 | Animate.Parent = script.Parent |
28 | Humanoid.HipHeight = 10 |