I recently came up with troubles trying to change an IntValue in one of my GUI's to be equal to a shirt ID. here is the script:
local vlu = game.StarterGui.ScreenGui.Shop.ScrollingFrame.Frame.ImageButton.ID.Value
script.Parent.ClickDetector.MouseClick:connect(function()
vlu = 912196966
end)
And my GUI script:
local itemID = script.Parent.ID.Value
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Down:connect(function()
game:GetService("MarketplaceService"):PromptPurchase(player, itemID)
end)
For some odd reason, it does not work, could anyone tell me why? Thanks, Y.C.

3 comments
I forgot to add my GUI, I'll put it in, in a second, but I am using marketplaceservice. It works without the rbxassetid://.
Oh whoops, I misread your question. I think the problem is that you're trying to change the value in StarterGui. So in the second script, it won't see the change as the player's PlayerGui wasn't affected.
Well, the issue is the value is not changing at all, it just stays at zero. When I click the torso (where the click detector is), nothing happens to the value.