Eauz
|
  |
| Joined: 23 Jul 2013 |
| Total Posts: 2942 |
|
|
| 07 Nov 2015 10:17 AM |
local Joints = { Neck = bodyParts.Torso:WaitForChild("Neck"), RightShoulder = bodyParts.Torso:WaitForChild("Right Shoulder"), LeftShoulder = bodyParts.Torso:WaitForChild("Left Shoulder"), RightHip = bodyParts.Torso:WaitForChild("Right Hip"), LeftHip = bodyParts.Torso:WaitForChild("Left Hip") }
it waits forever, and I made sure that they are there after the player dies. whats the problem? Thank you.
Just be grateful. |
|
|
| Report Abuse |
|
|
|
| 07 Nov 2015 10:23 AM |
| Apparently, you did not make sure that they are there after the player dies. |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 07 Nov 2015 10:24 AM |
player.CharacterAdded:connect(function(char) local Joints = { Neck = char.Torso:WaitForChild("Neck"), RightShoulder = char.Torso:WaitForChild("Right Shoulder"), LeftShoulder = char.Torso:WaitForChild("Left Shoulder"), RightHip = char.Torso:WaitForChild("Right Hip"), LeftHip = char.Torso:WaitForChild("Left Hip") }
end)
define the table each time the character loads |
|
|
| Report Abuse |
|
|
Eauz
|
  |
| Joined: 23 Jul 2013 |
| Total Posts: 2942 |
|
|
| 07 Nov 2015 10:32 AM |
it's in a local script, and yes, using the ingame console, I checked all of torso's children and all the joints were there. These variables are using "WaitForChild".
Just be grateful. |
|
|
| Report Abuse |
|
|
Eauz
|
  |
| Joined: 23 Jul 2013 |
| Total Posts: 2942 |
|
|
| 07 Nov 2015 10:34 AM |
Anyway I also tried this: It repeats forever
repeat Joints = { Neck = bodyParts.Torso:FindFirstChild("Neck"), RightShoulder = bodyParts.Torso:FindFirstChild("Right Shoulder"), LeftShoulder = bodyParts.Torso:FindFirstChild("Left Shoulder"), RightHip = bodyParts.Torso:FindFirstChild("Right Hip"), LeftHip = bodyParts.Torso:FindFirstChild("Left Hip") } wait(.1) until Joints.LeftHip
Just be grateful. |
|
|
| Report Abuse |
|
|
Eauz
|
  |
| Joined: 23 Jul 2013 |
| Total Posts: 2942 |
|
|
| 07 Nov 2015 03:02 PM |
Any ideas?
Just be grateful. |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 07 Nov 2015 03:13 PM |
why not just define them every time the character respawns..? if it is in a local script it won't matter:
local plr = game.Players.LocalPlayer local Joints = {}
plr.CharacterAdded:connect(function(char) local bodyParts = char:GetChildren() Joints.Neck = bodyParts.Torso:WaitForChild("Neck") Joints.RightShoulder = bodyParts.Torso:WaitForChild("Right Shoulder") Joints.LeftShoulder = bodyParts.Torso:WaitForChild("Left Shoulder") Joints.LeftHip = bodyParts.Torso:WaitForChild("Left Hip") Joints.RightHip = bodyParts.Torso:WaitForChild("Left Hip") end) |
|
|
| Report Abuse |
|
|
|
| 07 Nov 2015 03:14 PM |
| Joints dissapear after death, don't they? |
|
|
| Report Abuse |
|
|
Eauz
|
  |
| Joined: 23 Jul 2013 |
| Total Posts: 2942 |
|
|
| 07 Nov 2015 03:51 PM |
It is in a local script :/
Just be grateful. |
|
|
| Report Abuse |
|
|
Eauz
|
  |
| Joined: 23 Jul 2013 |
| Total Posts: 2942 |
|
|
| 07 Nov 2015 04:48 PM |
Come on on someone help plz.
Just be grateful. |
|
|
| Report Abuse |
|
|
Eauz
|
  |
| Joined: 23 Jul 2013 |
| Total Posts: 2942 |
|
|
| 07 Nov 2015 05:26 PM |
works in solo mode, forgot to say that.
Just be grateful. |
|
|
| Report Abuse |
|
|
Eauz
|
  |
| Joined: 23 Jul 2013 |
| Total Posts: 2942 |
|
| |
|
Eauz
|
  |
| Joined: 23 Jul 2013 |
| Total Posts: 2942 |
|
| |
|