|
| 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 |
|
|
|
| 19 Jul 2017 08:52 PM |
Why you printing it to the world? THB I want to know.
|
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
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 |
|
|