generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

[NOT WORKING][:][SNIPPET OF CODE][ERROR INCLUDED]

Previous Thread :: Next Thread 
youssef04 is not online. 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
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
19 Jun 2014 03:48 PM
WaitForChild? Check if the torso is nil though, whatever you do.
Report Abuse
TheNewScripter is not online. TheNewScripter
Joined: 02 Mar 2010
Total Posts: 2432
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
TheNewScripter is not online. TheNewScripter
Joined: 02 Mar 2010
Total Posts: 2432
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 is not online. 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 is not online. youssef04
Joined: 22 Jan 2011
Total Posts: 1745
19 Jun 2014 03:51 PM
Ignore my post, I just read yours, lol.
Report Abuse
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
19 Jun 2014 03:51 PM
and how would you decide what detail we need you fool.
Report Abuse
DhatBoiiPapi is not online. DhatBoiiPapi
Joined: 27 May 2013
Total Posts: 701
19 Jun 2014 03:52 PM
Give us Error Code on Output.
Report Abuse
youssef04 is not online. 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
COOLDUDE11OO is not online. COOLDUDE11OO
Joined: 21 Aug 2011
Total Posts: 5115
19 Jun 2014 04:08 PM
Why'd you write your title like that? lol
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image