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 » Scripters
Home Search
 

Re: attempt to index field 'Parent' (a nil value)

Previous Thread :: Next Thread 
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
12 Feb 2015 05:01 PM
function Hit(hit)
if hit then
local hum = hit.Parent:FindFirstChild('Humanoid')
if hum then
hum:TakeDamage(Damage)
Tag(hum)
end
end
end

so d*mn Strange! never had these idiotic Problems! -_-

"My Life is going Good... but..."
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
12 Feb 2015 05:05 PM
Excuse me what is this connected to / fired by?

Since if it's a Touched or something then wtf
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
12 Feb 2015 05:05 PM
if hit.Parent then

or

Tag(hum) may be the problem

Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
12 Feb 2015 05:09 PM
bullet.Touched:connect(Hit)
it clearly states that the line were I do
hum = hit.Parent:FindFirstChild('Humanoid')
is the cause

"My Life is going Good... but..."
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
12 Feb 2015 05:10 PM
hmmm i guessing you dont even know what Lua is
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
12 Feb 2015 05:13 PM
dude -_-
I used the same, EXACT SAME Code before, Worked fine!
am pretty experienced if u didnt know! :P

"My Life is going Good... but..."
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
12 Feb 2015 05:24 PM
Just do this /cry: if hit and hit.Parent then
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
12 Feb 2015 05:28 PM
i am, since this stupid error isnt bypassable -_-

"My Life is going Good... but..."
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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