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?
http://wiki.roblox.com/index.php?title=API:Class/SurfaceGui/Adornee
Parent the surfaceGui and all its children in the playergui (or startergui) and set the surfaceGui’s Adornee property to the part.
I dont know what you did wrong here, your script works fine. I have tested your script. I've also added in the explorer to let you know how the objects are placed.
I hope this helps you, make sure to upvote if it does. Thank you!