How to change string value's value from a gui textbox?

I want to change my string value’s value from a textbox but every time I try to script it I always get an error. So how can I do this?

local test = game.Players.LocalPlayer.PlayerGui.GUI.inventory.localItems.itemlists.item

test.Value= apple

Edit:: Found my problem :DDD

You should be posting your code so we can help you. Simply stating

is not helpful