To start:
local AddressQ = script.Parent.HatAdress.Value local Button = script.Parent Button.Image = "https://www.roblox.com/Thumbs/Asset.ashx?width=110&height=110&assetId=" .. game.Workspace.ObjectImageValues.AddressQ.Value.Value
I want to have a value in the model to change and and that will change the destination. Im not sure how to say this. I have a string-value in the model with a "address" and I want it to change what it will pick depending on the addressQ value. so this is the part.
game.Workspace.ObjectImageValues.{AddressQ}.Value.Value
So the addressQ is a variable and it will change. Can I put it in the "tree" and make the destination change places depending on the value of the variable?
Thanks always :)
Now that I understand better your best bet is to use a table
local vars = {"a", "b", "c"} for _, var in pairs(vars) do workspace[var].Color = 1 end