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: FindFirstChild error

Previous Thread :: Next Thread 
GeoVolcano is not online. GeoVolcano
Joined: 05 Jul 2012
Total Posts: 1433
19 Jul 2017 05:15 PM
print(thing.Tags:FindFirstChild(Player.Name))

- "Error occurred, no output from Lua"

thing and thing.Tags exist, there are also no children to thing.Tags and yet this error occurs when it should return nil, any suggestions why?
Report Abuse
ZAwesomeZCoI is online. ZAwesomeZCoI
Joined: 23 Apr 2016
Total Posts: 159
19 Jul 2017 08:52 PM
Why you printing it to the world? THB I want to know.


Report Abuse
GeoVolcano is not online. GeoVolcano
Joined: 05 Jul 2012
Total Posts: 1433
19 Jul 2017 10:02 PM
That's for testing purposes, it should have printed nil but it did not. It won't use print() in the final code.
Report Abuse
ZAwesomeZCoI is online. ZAwesomeZCoI
Joined: 23 Apr 2016
Total Posts: 159
19 Jul 2017 10:02 PM
Oh ok.


Report Abuse
G0tPrankedBro is online. G0tPrankedBro
Joined: 05 Oct 2012
Total Posts: 31
19 Jul 2017 10:06 PM
That error occurs because the output is nil. If there is nothing to output, then it will throw that error.

Instead, try this:

if thing.Tags:findFirstChild(Player.Name) then
print(thing.Tags:findFirstChild(Player.Name))
else
print("Nil")
end


"Before you criticize a man, walk a mile in his shoes. That way you'll be a mile away and he'll be shoeless."
Report Abuse
caca50 is not online. caca50
Joined: 10 Jul 2011
Total Posts: 2037
19 Jul 2017 10:08 PM
@G0tPrankedBro

I don't think that's true.

Here's my output from the command line:

> print(nil)
nil
> print(thing)
nil

No errors


Roblox.Forum.Scripters:1: bad argument #1 to 'intellect' (number expected, got nil)
Report Abuse
G0tPrankedBro is online. G0tPrankedBro
Joined: 05 Oct 2012
Total Posts: 31
19 Jul 2017 10:14 PM
Nvm. That doesn't work either. The wiki doesn't provide an explanation for that error :/ It seems like a new error that roblox implemented a few months ago


"Before you criticize a man, walk a mile in his shoes. That way you'll be a mile away and he'll be shoeless."
Report Abuse
G0tPrankedBro is online. G0tPrankedBro
Joined: 05 Oct 2012
Total Posts: 31
19 Jul 2017 10:15 PM
@caca50 Yes, I just tested my code and I still received the error. It has something to do with ################ ################ "Before you criticize a man, walk a mile in his shoes. That way you'll be a mile away and he'll be shoeless."
Report Abuse
GeoVolcano is not online. GeoVolcano
Joined: 05 Jul 2012
Total Posts: 1433
20 Jul 2017 10:27 AM
So any other ideas?
Report Abuse
1pie23 is not online. 1pie23
Joined: 11 Jul 2010
Total Posts: 1865
20 Jul 2017 10:31 AM
Clearly the script doesn't know what variable "thing" is. Can I see the line where you define it?
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