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 » Scripting Helpers
Home Search
 

Re: What's wrong with this easy script?

Previous Thread :: Next Thread 
Cerualen is not online. Cerualen
Joined: 06 Aug 2013
Total Posts: 12109
17 Feb 2014 12:26 PM
local ITEM_ID = 145878945

script.Parent.MouseButton1Down:connect(function(p)
game:GetService("MarketplaceService"):PromptPurchase(p,ITEM_ID)
end)
Report Abuse
Cerualen is not online. Cerualen
Joined: 06 Aug 2013
Total Posts: 12109
17 Feb 2014 12:30 PM
bump
Report Abuse
Cerualen is not online. Cerualen
Joined: 06 Aug 2013
Total Posts: 12109
17 Feb 2014 12:35 PM
anyone?
Report Abuse
iYoshiFox is not online. iYoshiFox
Joined: 14 Apr 2012
Total Posts: 1058
17 Feb 2014 12:36 PM
Make le script local:

local p = game.Players.LocalPlayer
local ID = 145878945

script.Parent.MouseButton1Click:connect(function()
game:GetService("MarketplaceService"):PromtPurchase(p, ID)
end)
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
17 Feb 2014 12:39 PM
For future reference mouse does not return player but the location of the mouse.
Report Abuse
Cerualen is not online. Cerualen
Joined: 06 Aug 2013
Total Posts: 12109
17 Feb 2014 12:43 PM
doesn't work

more!
Report Abuse
Cerualen is not online. Cerualen
Joined: 06 Aug 2013
Total Posts: 12109
17 Feb 2014 12:47 PM
heyeheyeh
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
17 Feb 2014 12:52 PM
Output? Also what type of item is it?
Report Abuse
Cerualen is not online. Cerualen
Joined: 06 Aug 2013
Total Posts: 12109
17 Feb 2014 12:55 PM
gamepass
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
17 Feb 2014 12:57 PM
Replace MarketplaceService with GamePassService
Report Abuse
Cerualen is not online. Cerualen
Joined: 06 Aug 2013
Total Posts: 12109
17 Feb 2014 01:04 PM
Ah ty

Going to try it out :P
Report Abuse
Cerualen is not online. Cerualen
Joined: 06 Aug 2013
Total Posts: 12109
17 Feb 2014 01:13 PM
nope
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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