this is my code but i don't know where this error is coming from
local player = game.Players.LocalPlayer
local ItemGui = script.Parent.Item
local ObjectName = ItemGui:FindFirstChild("ObjectName")
player.Inventory.ChildAdded:Connect(function(child)
ItemGui:Clone()
ObjectName.Text = child.Name
ItemGui.Visible = true
end)
Players.FireDreamGames.PlayerGui.Inventory.InventoryFrame.MainFrame.Items.LocalScript:7: attempt to index nil with 'Text'

2 comments
does child have a value?
i don't understand?