Redioux
|
  |
| Joined: 25 May 2012 |
| Total Posts: 1013 |
|
|
| 06 May 2014 08:41 AM |
Will this work? because it is not working for me or bringing up the dev product thing
local itemId = 19758318 --The Item ID for an item (the numbers at the end of an item's URL) local service = Game:GetService("MarketplaceService") --Service for buying stuff ingame local player = game.Players.LocalPlayer -- The player function on.click() service:PromptPurchase(player, itemId) end
script.Parent.MouseButton1Click:connect(function() click() end)
Thanks! -From the Cardboard Gentleman |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 06 May 2014 08:42 AM |
| Function and connection line are wrong, instead of a connection line you put an annoyomous -woops- function. |
|
|
| Report Abuse |
|
|
Redioux
|
  |
| Joined: 25 May 2012 |
| Total Posts: 1013 |
|
|
| 06 May 2014 08:44 AM |
Okay thanks
Thanks! -From the Cardboard Gentleman |
|
|
| Report Abuse |
|
|
Redioux
|
  |
| Joined: 25 May 2012 |
| Total Posts: 1013 |
|
|
| 06 May 2014 09:12 AM |
It is still not working
Thanks! -From the Cardboard Gentleman |
|
|
| Report Abuse |
|
|
|
| 06 May 2014 09:21 AM |
| I'm pretty sure you can't access 'LocalPlayer' from a 'SurfaceGui', since LocalPlayer can only be accessed from a LocalScript, and LocalScript's only work in things like; StarterGui, StarterPack, or anything with the player, and since a SurfaceGui is inside the Workspace, it won't work. |
|
|
| Report Abuse |
|
|
Redioux
|
  |
| Joined: 25 May 2012 |
| Total Posts: 1013 |
|
|
| 06 May 2014 09:35 AM |
No it is in a part
Thanks! -From the Cardboard Gentleman |
|
|
| Report Abuse |
|
|
|
| 06 May 2014 09:39 AM |
| Parts are in the Workspace?... |
|
|
| Report Abuse |
|
|
Redioux
|
  |
| Joined: 25 May 2012 |
| Total Posts: 1013 |
|
|
| 06 May 2014 10:06 AM |
Oh I thought you meant it was just in the workspace alone
Thanks! -From the Cardboard Gentleman |
|
|
| Report Abuse |
|
|
Redioux
|
  |
| Joined: 25 May 2012 |
| Total Posts: 1013 |
|
|
| 06 May 2014 03:30 PM |
Bump
Thanks! -From the Cardboard Gentleman |
|
|
| Report Abuse |
|
|
Redioux
|
  |
| Joined: 25 May 2012 |
| Total Posts: 1013 |
|
|
| 06 May 2014 03:58 PM |
Bump bump BUMP
Thanks! -From the Cardboard Gentleman |
|
|
| Report Abuse |
|
|
|
| 06 May 2014 04:20 PM |
| You CAN'T access the player through a SurfaceGui! YOu might be able to use a remote function, but why not just use ScreenGui? |
|
|
| Report Abuse |
|
|
Redioux
|
  |
| Joined: 25 May 2012 |
| Total Posts: 1013 |
|
|
| 06 May 2014 05:22 PM |
You know the credit shop in TMM? The one in the center of the lobby? I'm making one where it is on the wall and everyone has access to it. I also need a top ten ROBLOX leaderboard for this
Thanks! -From the Cardboard Gentleman |
|
|
| Report Abuse |
|
|
|
| 06 May 2014 05:24 PM |
| Place the surface gui in the starter gui, and set the adornee to the part in workspace. |
|
|
| Report Abuse |
|
|
Redioux
|
  |
| Joined: 25 May 2012 |
| Total Posts: 1013 |
|
|
| 06 May 2014 05:51 PM |
How do you do the adornee thing?!?!
Thanks! -From the Cardboard Gentleman |
|
|
| Report Abuse |
|
|
|
| 06 May 2014 05:52 PM |
you have to set it through a script (or command bar)
so something like:
(surface gui).Adornee = (part) |
|
|
| Report Abuse |
|
|
Redioux
|
  |
| Joined: 25 May 2012 |
| Total Posts: 1013 |
|
|
| 06 May 2014 06:12 PM |
How do I know know when it works?
Thanks! -From the Cardboard Gentleman |
|
|
| Report Abuse |
|
|