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
 

Store (surface Gui)

Previous Thread :: Next Thread 
Redioux is not online. 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 is not online. 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 is not online. Redioux
Joined: 25 May 2012
Total Posts: 1013
06 May 2014 08:44 AM
Okay thanks

Thanks! -From the Cardboard Gentleman
Report Abuse
Redioux is not online. 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
DeSpizer27 is not online. DeSpizer27
Joined: 13 Jul 2012
Total Posts: 2679
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 is not online. 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
DeSpizer27 is not online. DeSpizer27
Joined: 13 Jul 2012
Total Posts: 2679
06 May 2014 09:39 AM
Parts are in the Workspace?...
Report Abuse
Redioux is not online. 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 is not online. Redioux
Joined: 25 May 2012
Total Posts: 1013
06 May 2014 03:30 PM
Bump

Thanks! -From the Cardboard Gentleman
Report Abuse
Redioux is not online. Redioux
Joined: 25 May 2012
Total Posts: 1013
06 May 2014 03:58 PM
Bump bump BUMP

Thanks! -From the Cardboard Gentleman
Report Abuse
DeSpizer27 is not online. DeSpizer27
Joined: 13 Jul 2012
Total Posts: 2679
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 is not online. 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
IAmTheRolo is not online. IAmTheRolo
Joined: 12 Nov 2013
Total Posts: 859
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 is not online. 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
IAmTheRolo is not online. IAmTheRolo
Joined: 12 Nov 2013
Total Posts: 859
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 is not online. 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
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