This simple, short little block of code is supposed to basically update a big screen to correctly show details about a specific place. I get no errors in my output, and the print()
command works just fine, but the screen doesn't update at all.
Asset = game:GetService("MarketplaceService"):GetProductInfo(script.LookUpID.Value) itemThumbnail = script.Parent.Frame.ScrollingFrame.ImageLabel.Image itemDescription = script.Parent.Frame.ScrollingFrame.itemDesc.Text itemName = script.Parent.Frame.ScrollingFrame.itemName.Text itemLastUpdate = script.Parent.Frame.ScrollingFrame.updateDate.Text itemType = script.Parent.Frame.ScrollingFrame.typeID.Text function updateScreen() itemThumbnail = "http://www.roblox.com/Thumbs/Asset.ashx?format=png&width=420&height=230&assetId="..script.LookUpID.Value itemDescription = Asset.Description itemName = Asset.Name itemLastUpdate = Asset.Updated print("Is it working?") print(Asset.Description) end game.Workspace.BUTTONBIG.ClickDetector.MouseClick:connect(updateScreen)
Edit:
For due diligence I went ahead and added a new print()
command to make sure that GetProductInfo()
still works the way I thought it did, and that works, too.
You set the Asset once in your script if you want to update your GUI you also need to update the Asset ;P