SEVENTLY
|
  |
| Joined: 12 Mar 2016 |
| Total Posts: 1516 |
|
|
| 10 Apr 2016 05:38 PM |
I'm trying to get image labels inside a gui frame. I'm using a for loop and it's going through the items, but returning them as nil. I have no clue why it's doing this. Here's the loop.
-------------------------------CODE---------------------------------
local frames = {} for a,b in pairs(frame.Eight:GetChildren()) do b = frames[a] print(b) end
------------------------------In Studio Gui Description-------------
I have a frame with another frame inside named "Eight" and it has 8 imageLabels inside.
|
|
|
| Report Abuse |
|
|
SEVENTLY
|
  |
| Joined: 12 Mar 2016 |
| Total Posts: 1516 |
|
|
| 10 Apr 2016 05:38 PM |
the print(b) prints out "nil" 8 times in the output.
|
|
|
| Report Abuse |
|
|
|
| 10 Apr 2016 05:40 PM |
| there's nothing in frames, or am i missing something. |
|
|
| Report Abuse |
|
|
SEVENTLY
|
  |
| Joined: 12 Mar 2016 |
| Total Posts: 1516 |
|
|
| 10 Apr 2016 06:22 PM |
Wow I'm dumb. I meant to be setting frames[a] = b, not the other way around...
You just solved that by asking a question.
xD
|
|
|
| Report Abuse |
|
|