06-05-2011, 05:29 PM
Here's some code, for example:
[lua]
link(tool.Selected, function()
gui = tool.UIFrame:clone()
gui.Parent = tool.Parent.Parent.UI
chosen = gui:getChild("Chosen")
[/lua]
Doesn't find it.
Also,
[lua]
local stuff = gui:getChildren()
print(#stuff)
[/lua]
prints 0. The UI itself clones into the Player and is visible, but I can't access the descendants.
[lua]
link(tool.Selected, function()
gui = tool.UIFrame:clone()
gui.Parent = tool.Parent.Parent.UI
chosen = gui:getChild("Chosen")
[/lua]
Doesn't find it.
Also,
[lua]
local stuff = gui:getChildren()
print(#stuff)
[/lua]
prints 0. The UI itself clones into the Player and is visible, but I can't access the descendants.