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: When a gamepass is bought on my game, the user cannot click

Previous Thread :: Next Thread 
Unforcefield is not online. Unforcefield
Joined: 13 Aug 2014
Total Posts: 7887
31 Jan 2016 03:35 PM
dev products.

it's a really weird glitch that I'm trying to figure out



help pls?


Report Abuse
Unforcefield is not online. Unforcefield
Joined: 13 Aug 2014
Total Posts: 7887
31 Jan 2016 03:36 PM
This is where the glitch occurs (I also tried it in another game and the same problem occured) : http://www.roblox.com/games/355213303/Epic-Gear-War-Tycoon-GAME-PASSES-IN-STORE



Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
31 Jan 2016 03:36 PM
its probably something you might've edited in your (probably) old berezaa code for that

sry
Report Abuse
Unforcefield is not online. Unforcefield
Joined: 13 Aug 2014
Total Posts: 7887
31 Jan 2016 03:38 PM
@Recurring

nope, tried it in a game with an empty baseplate.

you can try it yourself



Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
31 Jan 2016 03:38 PM
ok well post some code
Report Abuse
Unforcefield is not online. Unforcefield
Joined: 13 Aug 2014
Total Posts: 7887
31 Jan 2016 03:39 PM
Gamepass:


local bloxyColaId = 355230121 -- Put the "ID" of your gamepass that you will like to sell.
local player = game.Players.LocalPlayer

function onClick()
game:GetService("MarketplaceService"):PromptPurchase(player, bloxyColaId)
end

script.Parent.MouseButton1Click:connect(onClick)



Report Abuse
Unforcefield is not online. Unforcefield
Joined: 13 Aug 2014
Total Posts: 7887
31 Jan 2016 03:39 PM
Dev product


for i,v in pairs(script.Parent.Buttons:GetChildren()) do
if v:isA("TextButton") then
v.MouseButton1Click:connect(function()
pcall(function()
if v:FindFirstChild("Pass") then
game.MarketplaceService:PromptPurchase(game.Players.LocalPlayer,tonumber(v.Name))

else
game.MarketplaceService:PromptProductPurchase(game.Players.LocalPlayer,tonumber(v.Name))
end
end)
end)
end
end


Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
31 Jan 2016 03:39 PM
is that in each of the textbuttons for gamepasses
Report Abuse
Unforcefield is not online. Unforcefield
Joined: 13 Aug 2014
Total Posts: 7887
31 Jan 2016 03:40 PM
yes
each texbutton is in a frame


Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
31 Jan 2016 03:42 PM
ok so i was right

remove the script in each of the textbuttons. all you need is that old berezaa code you posted above. if a textbutton is for a gamepass, put a boolvalue or something called Pass in it and make sure that script is a sibling of a frame called "Buttons"
Report Abuse
Unforcefield is not online. Unforcefield
Joined: 13 Aug 2014
Total Posts: 7887
31 Jan 2016 03:42 PM
why would it make a difference o3o



Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
31 Jan 2016 03:44 PM
because with that script running to prompt a purchase when u click, and each of the textbuttons having a script to prompt a purchase when you click, that creates a problem because u dont need to prompt 2 purchases on one thing when u click
Report Abuse
Unforcefield is not online. Unforcefield
Joined: 13 Aug 2014
Total Posts: 7887
31 Jan 2016 03:46 PM
well, just done this inside the gamepass gui

doesnt work -_-


for i,v in pairs(script.Parent:GetChildren()) do
if v:isA("Frame") then
v.TextButton.MouseButton1Click:connect(function()
pcall(function()
game.MarketplaceService:PromptPurchase(game.Players.LocalPlayer,tonumber(v.Name))
end)
end)
end
end


and yes there are no errors soooo



Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
31 Jan 2016 03:49 PM
are some of the textbuttons in there for gamepasses only or are some for dev products to
Report Abuse
Unforcefield is not online. Unforcefield
Joined: 13 Aug 2014
Total Posts: 7887
31 Jan 2016 03:58 PM
im trying to fix it rn ughhhh


Report Abuse
Unforcefield is not online. Unforcefield
Joined: 13 Aug 2014
Total Posts: 7887
31 Jan 2016 03:59 PM
it just doesnt show it

omgg



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