The imagebutton is not created and parented to the scrolling frame
Script:
local player = script.Parent.Parent.Parent.Parent.Parent
local Item = game.ServerStorage.Inventory[player.Name]:GetChildren()
print(player.Name)
for i = 1, #Item do
local NewItem = script:WaitForChild("ImageButton"):Clone()
NewItem.Name = Item[i].Name
NewItem.Image = Item[i].TextureId
NewItem.TopLabel.Text = Item[i].Name
NewItem.Parent = script.Parent
end
local player = script.Parent.Parent.Parent.Parent.Parent
local Item = game.ServerStorage.Inventory[player.Name]:GetChildren()
print(player.Name)
for i = 1, #Item do
local NewItem = script.ImageButton:Clone()
NewItem.Name = Item[i].Name
NewItem.Image = Item[i].TextureId
NewItem.TopLabel.Text = Item[i].Name
NewItem.Parent = script.Parent
end
local player = script.Parent.Parent.Parent.Parent.Parent
local Items = game.ServerStorage.Inventory[player.Name]:GetChildren()
print(player.Name)
for _, Item in Items do
local NewItem = script.ImageButton:Clone()
NewItem.Name = Item.Name
NewItem.Image = Item.TextureId
NewItem.TopLabel.Text = Item.Name
NewItem.Parent = script.Parent
end