Its in the updateInventory() script.
Its on this line that you gave me:
if table.find(SelectedTrail, item) then
Its in the updateInventory() script.
Its on this line that you gave me:
if table.find(SelectedTrail, item) then
Let me see the variable where SelectedTrail is defined. It should automatically be
local SelectedTrail = {}
Show me a picture of the red line in the code if it doesn’t work.
I changed the variable to that. The issue now is that its not finding SelectButton in the cloned InvFrame.
Did you check post 14 again? in the bottom I changed it a little.
There is still the same problem on this line:
buttonDictionary[child.SelectButton]:Disconnect() -- removing it
buttonDictionary[child.SelectButton] = nil
It keeps saying that Selectbutton is not a child of invItem when it is. Maybe there is a problem with cloning?
By the way, thanks for being the only one helping me, I appreciate you.
Check in the frame in-game to see if there’s any other frames without SelectButton
The invframe that clones isn;t even cloning so I can’t check.
I know why. It’s because we’re removing the button before that happens. Move that above the line where you’re removing it.