|
| 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 |
|
|
|
| 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 |
|
|
|
| 31 Jan 2016 03:36 PM |
its probably something you might've edited in your (probably) old berezaa code for that
sry |
|
|
| Report Abuse |
|
|
|
| 31 Jan 2016 03:38 PM |
@Recurring
nope, tried it in a game with an empty baseplate.
you can try it yourself
|
|
|
| Report Abuse |
|
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 31 Jan 2016 03:39 PM |
| is that in each of the textbuttons for gamepasses |
|
|
| Report Abuse |
|
|
|
| 31 Jan 2016 03:40 PM |
yes each texbutton is in a frame
|
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 31 Jan 2016 03:42 PM |
why would it make a difference o3o
|
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 31 Jan 2016 03:58 PM |
im trying to fix it rn ughhhh
|
|
|
| Report Abuse |
|
|
|
| 31 Jan 2016 03:59 PM |
it just doesnt show it
omgg
|
|
|
| Report Abuse |
|
|