Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

String is expected?

Asked by
lomo0987 250 Moderation Voter
10 years ago
local id = script.Parent.ID
local Asset = game:GetService("MarketplaceService"):GetProductInfo(id.Value)
local image = script.Parent.Parent.Parent.BInfo.Image

function update()
    image.Image = Asset
end

script.Parent.MouseButton1Down:connect(update)

line 6 string expected...

What i'm trying to do is make it have an image update the Image of a an item when a button is clicked...

http://gyazo.com/02b33475708b93488837b334de657b74

The highlighted Local Script is where this script is placed...

Answer this question