wait(1) added = game.Players.LocalPlayer.Backpack.ChildAdded Name = script.Parent.ScrollingFrame game.Players.LocalPlayer.Backpack.ChildAdded:connect(function() if Name.Text1.Text == "" then Name.Text1.Text = added.Name end end)
and this is the error
Name is not a valid member of RBXScriptSignal
any help because i rlly cant solve it
the problem is on line 7
You try to get the name of the event ChildAdded
. Thats not possible, you can however give the Child that was added, as an argument in the function like so:
game.Players.LocalPlayer.Backpack.ChildAdded:connect(function(Child)
To fix your script we can simpfully do the following:
Name = script.Parent:WaitForChild("ScrollingFrame") game.Players.LocalPlayer.Backpack.ChildAdded:connect(function(Child) if Name.Text1.Text == "" then Name.Text1.Text = Child.Name end end)