inside a local script in a image button
1 | local Player = game.Players.LocalPlayer |
2 | local ID = 1225234267 |
3 |
4 | script.Parent.MouseButton 1 Click:connect( function (click) |
5 | game:GetService( "MarketplaceService" ):PromptPurchase(Player,ID) |
6 | 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!