I’m not sure if I’m doing something wrong - but I have a billboardGUI in startergui and the adornee is a part in workspace. I made a button on the billboardgui and have a script inside it to prompt a gamepasspurchase. For some reason, it doesn’t prompt and It turns out I just get tons of ‘Rodux’ and ‘Roact’ errors in my output when trying to click the button to prompt.
Some of the output being:
'CorePackages.Packages._Index.roact.roact.Component', Line 161 - method setState
18:26:00.032 - Script 'CorePackages.Packages._Index.RoactRodux.RoactRodux.connect2', Line 162 - field callback
18:26:00.032 - Script 'CorePackages.Packages._Index.Rodux.Rodux.Signal', Line 70 - method fire
18:26:00.033 - Script 'CorePackages.Packages._Index.Rodux.Rodux.Store', Line 125
18:26:00.033 - Stack End
And my code inside the button looking like:
script.Parent.MouseButton1Click:Connect(function()
local mps = game:GetService("MarketplaceService");
local player = game.Players.LocalPlayer;
local productID = script.Parent.productID.Value;
mps:PromptGamePassPurchase(player, productID)
end)
I’m not sure if this is a Roblox bug or just my issue.
Any help appreciated, thanks!