Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I'm making an inventory system but i can only select the first item?

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

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.