I'm making a miner's haven type game and i already have a way to put items in an inventory but i can only select the first item in the inventory
the way i'm currently doing it is with making every single item called "item" because that also works with a hitbox system but that doesn't work. i have tried using tables in the function so it searches for those items but it doesn't even select any items.
i'm only a begginer so i don't know as much as a lot of other people.
the code:
ScrollingFrame.Item.MouseEnter:connect(function()
print(ScrollingFrame.Item.NameValue.Value)
InventoryFrame.Frame.NameText.Visible = true
InventoryFrame.Frame.NameText.Text = ScrollingFrame.Item.NameValue.Value
print(ScrollingFrame.Item.NameValue.Value)
end)
ScrollingFrame.Item.MouseLeave:connect(function()
InventoryFrame.Frame.NameText.Visible = false
InventoryFrame.Frame.NameText.Text = ("no")
end)
please help i have been trying to fix this for a week
