I don't know why this script not working automatically... Can help someone? I have 2 scripts.. First script: Selecting (example item) button
local select = script.Parent.Parent.Parent.Selected -- StringValue
function Select()
select.Value = "Item1"
end
script.Parent.MouseButton1Down:connect(Select)
Second script: Detect selected item and config for buy button and something... (localscript)
local select = script.Parent.Selected
local Image = script.Parent.ImageLabel
local Des = script.Parent.Text
script.Parent.Selected.Changed(function(select)
if select == "Item1" then
Image.Image = "http://www.roblox.com/asset/?id=285779644"
Des.Text = "Bla"
elseif select == "Item2" then
Image.Image = "http://www.roblox.com/asset/?id=285779644"
Des.Text = "Bla"
end)

2 comments
I would always recommend not using Lua keywords as variables like table, spawn, or select as it might cause complications in the script in the future.
Oh, thx for that! :D