inside a local script in a image button
local Player = game.Players.LocalPlayer
local ID = 1225234267
script.Parent.MouseButton1Click:connect(function(click)
game:GetService("MarketplaceService"):PromptPurchase(Player,ID)
end)
the problem is, it does nothing, no error message, nothing. I want it to prompt purchase when a player clicks it, any tips or ideas?

7 comments
What the heck....... this is so irrelevant
No, its the answer. Look at the page for adornee, and things have to be in the players gui for it to work with clicks etc
Adornee: sets what the surface gui is attached to
Mouse input requires the object to be in a client-sided object. Workspace is not client sided, but
PlayerGuis is. This is the one reason why the adornee property even exists. You cant get mouse input because the mouse doent exist in the workspace.
Works perfectly, thanks!
No problemo