youssef04
|
  |
| Joined: 22 Jan 2011 |
| Total Posts: 1745 |
|
|
| 19 Jun 2014 03:47 PM |
ERROR: Torso is not a valid member of Model
SNIPPET OF CODE: --Players is defined. for _,v in pairs(players:GetPlayers())do if(v.Character~=nil)then local char = v.Character if((char.Torso.Position-base.Position).magnitude <= 20)and(char.Humanoid.Health > 1)then --rest of code end end end |
|
|
| Report Abuse |
|
|
|
| 19 Jun 2014 03:48 PM |
| WaitForChild? Check if the torso is nil though, whatever you do. |
|
|
| Report Abuse |
|
|
|
| 19 Jun 2014 03:49 PM |
| Well giving us more detail as to what isn't working would be nice. We may know how to code, but we aren't miracle workers. Give us detail if you want results. |
|
|
| Report Abuse |
|
|
|
| 19 Jun 2014 03:50 PM |
| Actually ignore that last post, I just misread the code. If the person is dead, they have no Torso. Just do what JarodOfOrbiter said. |
|
|
| Report Abuse |
|
|
youssef04
|
  |
| Joined: 22 Jan 2011 |
| Total Posts: 1745 |
|
|
| 19 Jun 2014 03:51 PM |
I gave you the detail you need, you don't need my life story so you can figure this out... All you need is the code, and the error, pretty much nothing else. This may sound rude, if it does, I am sorry. |
|
|
| Report Abuse |
|
|
youssef04
|
  |
| Joined: 22 Jan 2011 |
| Total Posts: 1745 |
|
|
| 19 Jun 2014 03:51 PM |
| Ignore my post, I just read yours, lol. |
|
|
| Report Abuse |
|
|
|
| 19 Jun 2014 03:51 PM |
and how would you decide what detail we need you fool. |
|
|
| Report Abuse |
|
|
|
| 19 Jun 2014 03:52 PM |
| Give us Error Code on Output. |
|
|
| Report Abuse |
|
|
youssef04
|
  |
| Joined: 22 Jan 2011 |
| Total Posts: 1745 |
|
|
| 19 Jun 2014 03:53 PM |
| Dw, what Jared said made it work, thanks guys! |
|
|
| Report Abuse |
|
|
|
| 19 Jun 2014 04:08 PM |
| Why'd you write your title like that? lol |
|
|
| Report Abuse |
|
|