generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Why does that not work?

Previous Thread :: Next Thread 
ExplodeLikeAVolcano is not online. ExplodeLikeAVolcano
Joined: 02 Nov 2013
Total Posts: 12146
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 is not online. 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
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
30 Aug 2016 03:56 PM
because PromptPurchase should be server sided i think
Report Abuse
ExplodeLikeAVolcano is not online. ExplodeLikeAVolcano
Joined: 02 Nov 2013
Total Posts: 12146
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
apdapreturns is not online. apdapreturns
Joined: 31 Mar 2012
Total Posts: 1627
30 Aug 2016 03:57 PM
@Monadic
"to make the promptpurchase come up"
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
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
ExplodeLikeAVolcano is not online. ExplodeLikeAVolcano
Joined: 02 Nov 2013
Total Posts: 12146
30 Aug 2016 04:43 PM
:/


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image