|
| 06 Aug 2014 09:05 PM |
Why does this not work
local sp = stats:findFirstChild("Coins")
But this one does?
local score = stats:findFirstChild("Spatulas")
This is the error
21:05:36.217 - Workspace.Mr. Krabs.Head.Dialog.DialogChoice.Script:4: attempt to index global 'stats' (a function value)
|
|
|
| Report Abuse |
|
|
| |
|
iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
|
| 06 Aug 2014 09:18 PM |
| Judging by the output, you have a function called stats() within the first script, or before that part of the script. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 06 Aug 2014 09:35 PM |
| ill wait for u to come back online |
|
|
| Report Abuse |
|
|
Infocus
|
  |
| Joined: 28 Apr 2011 |
| Total Posts: 8022 |
|
| |
|