|
| 30 Aug 2016 03:48 PM |
LocalScript into a Button that is in a SurfaceGUI on a part:
local id = 476148930 local plr = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function() game:GetService('MarketplaceService'):PromptPurchase(plr, id) end)
When I click the "buy here", "buy now", etc button to make the promptpurchase come up, it's not doing anything.
|
|
|
| Report Abuse |
|
|
Monadic
|
  |
| Joined: 03 Aug 2016 |
| Total Posts: 731 |
|
|
| 30 Aug 2016 03:55 PM |
Instead of asking why it doesn't work; Tell us what you want it to do.
Sheesh, schools don't teach common sense anymore good god. |
|
|
| Report Abuse |
|
|
|
| 30 Aug 2016 03:56 PM |
| because PromptPurchase should be server sided i think |
|
|
| Report Abuse |
|
|
|
| 30 Aug 2016 03:57 PM |
But yet it works in a GUI.
Also, wow you're almost at 4k posts? Do you no life it or just have time during the day?
|
|
|
| Report Abuse |
|
|
|
| 30 Aug 2016 03:57 PM |
@Monadic "to make the promptpurchase come up" |
|
|
| Report Abuse |
|
|
|
| 30 Aug 2016 04:18 PM |
"game:GetService('MarketplaceService'):PromptPurchase(plr, id)"
see how it has a player argument?
if it didnt it would be client sided |
|
|
| Report Abuse |
|
|
| |
|