Issue with not being able to purchase Robux products on an Xbox

Hello! I am having an issue where whenever I am using the Xbox emulator thing with a Controller (or anything) whenever I try and purchase anything that contains Robux, it will show this error and I am not sure why.

Error That I am getting:

  17:13:23.433  CorePackages.Packages._Index.roblox_rodux.rodux.Store:13: Received error: Caught error flushing store updates

CorePackages.Packages._Index.roblox_rodux.rodux.NoYield:28: CoreGui.RobloxGui.Modules.PurchasePrompt.Localization.LocalizationService:144: provided value CoreGui.RobloxGui.Modules.PurchasePrompt.NativeUpsell.XboxCatalogData:23: PlatformService unavailable; are you on XboxOne?
CoreGui.RobloxGui.Modules.PurchasePrompt.NativeUpsell.XboxCatalogData:23 function GetCatalogInfoAsync
CoreGui.RobloxGui.Modules.PurchasePrompt.NativeUpsell.selectRobuxProduct:31 function selectRobuxProduct
CoreGui.RobloxGui.Modules.PurchasePrompt.Thunks.resolvePromptState:64
CoreGui.RobloxGui.Modules.PurchasePrompt.Thunk:67
CoreGui.RobloxGui.Modules.PurchasePrompt.Thunk:
CoreGui.RobloxGui.Modules.PurchasePrompt.Localization.LocalizationService:144 function getErrorKey
CoreGui.RobloxGui.Modules.PurchasePrompt.Components.ProductPurchase.ProductPurchaseContainer:296 function getMessageKeysFromPromptState
CoreGui.RobloxGui.Modules.PurchasePrompt.Components.ProductPurchase.ProductPurchaseContainer:401 function render
CorePackages.Packages._Index.Roact.Roact.Component:496 function __resolveUpdate
CorePackages.Packages._Index.Roact.Roact.Component:437 function __update
CorePackages.Packages._Index.Roact.Roact.createReconciler:274 function updateVirtualNode
CorePackages.Packages._Index.Roact.Roact.createReconciler:84 function updateChildren
CorePackages.Packages._Index.Roact.Roact.createReconciler:149 function updateVirtualNodeWithRenderResult
CorePackages.Packages._Index.Roact.Roact.Component:499 function __resolveUpdate
CorePackages.Packages._Index.Roact.Roact.Component:437 function __update
CorePackages.Packages._Index.Roact.Roact.createReconciler:274 function updateVirtualNode
CorePackages.Packages._Index.Roact.Roact.createReconciler:84 function updateChildren
CorePackages.Packages._Index.Roact.Roact.createReconciler:149 function updateVirtualNodeWithRenderResult
CorePackages.Packages._Index.Roact.Roact.Component:499 function __resolveUpdate
CorePackages.Packages._Index.Roact.Roact.Component:437 function __update
CorePackages.Packages._Index.Roact.Roact.createReconciler:274 function updateVirtualNode
CorePackages.Packages._Index.Roact.Roact.createReconciler:84 function updateChildren
CorePackages.Packages._Index.Roact.Roact.createReconciler:149 function updateVirtualNodeWithRenderResult
CorePackages.Packages._Index.Roact.Roact.createReconciler:198 function updateFunctionVirtualNode
CorePackages.Packages._Index.Roact.Roact.createReconciler:272 function updateVirtualNode
CorePackages.Packages._Index.Roact.Roact.createReconciler:84 function updateChildren
CorePackages.Packages._Index.Roact.Roact.createReconciler:149 function updateVirtualNodeWithRenderResult
CorePackages.Packages._Index.Roact.Roact.Component:499 function __resolveUpdate
CorePackages.Packages._Index.Roact.Roact.Component:437 function __update
CorePackages.Packages._Index.Roact.Roact.Component:161 function setState
CorePackages.Packages._Index.roblox_roact-rodux.roact-rodux.connect:92
CorePackages.Packages._Index.roblox_rodux.rodux.Signal:99 function fire
CorePackages.Packages._Index.roblox_rodux.rodux.Store:198

CorePackages.Packages._Index.roblox_rodux.rodux.Store:18 function tracebackReporter
CorePackages.Packages._Index.roblox_rodux.rodux.NoYield:15 function resultHandler
CorePackages.Packages._Index.roblox_rodux.rodux.NoYield:28 function NoYield
CorePackages.Packages._Index.roblox_rodux.rodux.Store:197
CorePackages.Packages._Index.roblox_rodux.rodux.Store:194 function flush
CorePackages.Packages._Index.roblox_rodux.rodux.Store:82
  -  Client - Store:13
  17:13:23.433  Stack Begin  -  Studio
  17:13:23.433  Script 'CorePackages.Packages._Index.roblox_rodux.rodux.Store', Line 13  -  Studio - Store:13
  17:13:23.433  Script 'CorePackages.Packages._Index.roblox_rodux.rodux.Store', Line 203 - function flush  -  Studio - Store:203
  17:13:23.433  Script 'CorePackages.Packages._Index.roblox_rodux.rodux.Store', Line 82  -  Studio - Store:82
  17:13:23.433  Stack End  -  Studio
  17:13:28.952  CoreGui.RobloxGui.Modules.PurchasePrompt.Components.ProductPurchase.ProductPurchaseContainer:92: setState cannot be used in the render method.
render must be a pure function that only depends on props and state.

Check the definition of render in the component "ProductPurchaseContainer".  -  Client - Component:117
  17:13:28.952  Stack Begin  -  Studio
  17:13:28.952  Script 'CorePackages.Packages._Index.Roact.Roact.Component', Line 117 - function setState  -  Studio - Component:117
  17:13:28.952  Script 'CoreGui.RobloxGui.Modules.PurchasePrompt.Components.ProductPurchase.ProductPurchaseContainer', Line 92  -  CoreScript - ProductPurchaseContainer:92
  17:13:28.952  Script 'CorePackages.Packages._Index.Roact.Roact.SingleEventManager', Line 80  -  Studio - SingleEventManager:80
  17:13:28.953  Stack End  -  Studio
  17:13:29.087  CoreGui.RobloxGui.Modules.PurchasePrompt.Components.ProductPurchase.ProductPurchaseContainer:92: setState cannot be used in the render method.
render must be a pure function that only depends on props and state.

Check the definition of render in the component "ProductPurchaseContainer".  -  Client - Component:117
  17:13:29.088  Stack Begin  -  Studio
  17:13:29.088  Script 'CorePackages.Packages._Index.Roact.Roact.Component', Line 117 - function setState  -  Studio - Component:117
  17:13:29.088  Script 'CoreGui.RobloxGui.Modules.PurchasePrompt.Components.ProductPurchase.ProductPurchaseContainer', Line 92  -  CoreScript - ProductPurchaseContainer:92
  17:13:29.088  Script 'CorePackages.Packages._Index.Roact.Roact.SingleEventManager', Line 80  -  Studio - SingleEventManager:80
  17:13:29.088  Stack End  -  Studio
  17:13:29.208  CoreGui.RobloxGui.Modules.PurchasePrompt.Components.ProductPurchase.ProductPurchaseContainer:92: setState cannot be used in the render method.
render must be a pure function that only depends on props and state.

Check the definition of render in the component "ProductPurchaseContainer".  -  Client - Component:117
  17:13:29.209  Stack Begin  -  Studio
  17:13:29.209  Script 'CorePackages.Packages._Index.Roact.Roact.Component', Line 117 - function setState  -  Studio - Component:117
  17:13:29.209  Script 'CoreGui.RobloxGui.Modules.PurchasePrompt.Components.ProductPurchase.ProductPurchaseContainer', Line 92  -  CoreScript - ProductPurchaseContainer:92
  17:13:29.209  Script 'CorePackages.Packages._Index.Roact.Roact.SingleEventManager', Line 80  -  Studio - SingleEventManager:80
  17:13:29.209  Stack End  -  Studio
  17:13:29.315  CoreGui.RobloxGui.Modules.PurchasePrompt.Components.ProductPurchase.ProductPurchaseContainer:92: setState cannot be used in the render method.
render must be a pure function that only depends on props and state.

Check the definition of render in the component "ProductPurchaseContainer".  -  Client - Component:117
  17:13:29.316  Stack Begin  -  Studio
  17:13:29.316  Script 'CorePackages.Packages._Index.Roact.Roact.Component', Line 117 - function setState  -  Studio - Component:117
  17:13:29.316  Script 'CoreGui.RobloxGui.Modules.PurchasePrompt.Components.ProductPurchase.ProductPurchaseContainer', Line 92  -  CoreScript - ProductPurchaseContainer:92
  17:13:29.316  Script 'CorePackages.Packages._Index.Roact.Roact.SingleEventManager', Line 80  -  Studio - SingleEventManager:80
  17:13:29.316  Stack End  -  Studio
  17:13:29.732  CoreGui.RobloxGui.Modules.PurchasePrompt.Components.ProductPurchase.ProductPurchaseContainer:92: setState cannot be used in the render method.
render must be a pure function that only depends on props and state.

Check the definition of render in the component "ProductPurchaseContainer".  -  Client - Component:117
  17:13:29.732  Stack Begin  -  Studio
  17:13:29.732  Script 'CorePackages.Packages._Index.Roact.Roact.Component', Line 117 - function setState  -  Studio - Component:117
  17:13:29.732  Script 'CoreGui.RobloxGui.Modules.PurchasePrompt.Components.ProductPurchase.ProductPurchaseContainer', Line 92  -  CoreScript - ProductPurchaseContainer:92
  17:13:29.732  Script 'CorePackages.Packages._Index.Roact.Roact.SingleEventManager', Line 80  -  Studio - SingleEventManager:80
  17:13:29.733  Stack End  -  Studio
  17:15:37.224  CoreGui.RobloxGui.Modules.PurchasePrompt.Components.ProductPurchase.ProductPurchaseContainer:92: setState cannot be used in the render method.
render must be a pure function that only depends on props and state.

Check the definition of render in the component "ProductPurchaseContainer".  -  Client - Component:117
  17:15:37.224  Stack Begin  -  Studio
  17:15:37.224  Script 'CorePackages.Packages._Index.Roact.Roact.Component', Line 117 - function setState  -  Studio - Component:117
  17:15:37.224  Script 'CoreGui.RobloxGui.Modules.PurchasePrompt.Components.ProductPurchase.ProductPurchaseContainer', Line 92  -  CoreScript - ProductPurchaseContainer:92
  17:15:37.224  Script 'CorePackages.Packages._Index.Roact.Roact.SingleEventManager', Line 80  -  Studio - SingleEventManager:80
  17:15:37.225  Stack End  -  Studio
  17:15:37.366  CoreGui.RobloxGui.Modules.PurchasePrompt.Components.ProductPurchase.ProductPurchaseContainer:92: setState cannot be used in the render method.
render must be a pure function that only depends on props and state.

Check the definition of render in the component "ProductPurchaseContainer".  -  Client - Component:117
  17:15:37.367  Stack Begin  -  Studio
  17:15:37.367  Script 'CorePackages.Packages._Index.Roact.Roact.Component', Line 117 - function setState  -  Studio - Component:117
  17:15:37.367  Script 'CoreGui.RobloxGui.Modules.PurchasePrompt.Components.ProductPurchase.ProductPurchaseContainer', Line 92  -  CoreScript - ProductPurchaseContainer:92
  17:15:37.367  Script 'CorePackages.Packages._Index.Roact.Roact.SingleEventManager', Line 80  -  Studio - SingleEventManager:80
  17:15:37.367  Stack End  -  Studio
  17:15:37.451  CoreGui.RobloxGui.Modules.PurchasePrompt.Components.ProductPurchase.ProductPurchaseContainer:92: setState cannot be used in the render method.
render must be a pure function that only depends on props and state.

Check the definition of render in the component "ProductPurchaseContainer".  -  Client - Component:117
  17:15:37.451  Stack Begin  -  Studio
  17:15:37.452  Script 'CorePackages.Packages._Index.Roact.Roact.Component', Line 117 - function setState  -  Studio - Component:117
  17:15:37.452  Script 'CoreGui.RobloxGui.Modules.PurchasePrompt.Components.ProductPurchase.ProductPurchaseContainer', Line 92  -  CoreScript - ProductPurchaseContainer:92
  17:15:37.452  Script 'CorePackages.Packages._Index.Roact.Roact.SingleEventManager', Line 80  -  Studio - SingleEventManager:80
  17:15:37.452  Stack End  -  Studio

Here is the script to buy it (that I am currently using):

local GamepassId = 24661710
local StarterGui = script.Parent.Parent.Parent.Parent.Parent.Parent
local MainPCBottom = StarterGui["Main PC"].Bottom
local MainPCLeft = StarterGui["Main PC"].Left

script.Parent.MouseButton1Click:Connect(function()
	game:GetService("MarketplaceService"):PromptGamePassPurchase(game.Players.LocalPlayer, GamepassId)
	game.ReplicatedStorage.SFX.Market.SoundOpen:Play()
	StarterGui.LoadingPurchase.Enabled = true

	local StarterGUI = script.Parent.Parent.Parent.Parent.Parent.Parent
	local localPlayer = game:GetService("Players").LocalPlayer

	local player, id, wasPurchased
	repeat
		player, id, wasPurchased = game:GetService("MarketplaceService").PromptGamePassPurchaseFinished:Wait()
	until player == localPlayer and id == GamepassId

	if wasPurchased then
		StarterGUI.ThankYouMessage.Frame.Visible = true
		StarterGUI.RobuxShopMenu.Enabled = false
		game.ReplicatedStorage.SFX.Market.SoundPurchase:Play()
		game.ReplicatedStorage.SFX.Market.SoundOld:Play()
		-- disables clicking
		MainPCBottom.Codes.ImageButton.LocalScript.Disabled = true
		MainPCBottom["Pet Inventory"].ImageButton.LocalScript.Disabled = true
		MainPCBottom["Robux Shop"].ImageButton.LocalScript.Disabled = true
		MainPCBottom.Codes.ImageButton.LocalScript.Disabled = true
		MainPCBottom.Settings.ImageButton.LocalScript.Disabled = true
		MainPCBottom.Trading.ImageButton.LocalScript.Disabled = true
		MainPCLeft.Teleport.HasGamepass.LocalScript.Disabled = true
		wait(0.4)
		StarterGui.LoadingPurchase.Enabled = false
	elseif not wasPurchased then
		-- print("The user canceled the prompt")
		StarterGui.LoadingPurchase.Enabled = false
	end
end)

If you know how I can resolve this problem, please let me know! :grinning_face_with_smiling_eyes:

That would be a Roblox glitch then. I believe you have to enable “Console” in the game settings, like this:

Screenshot_130

If that doesn’t work. then it is indeed a Roblox glitch, and you’d have to ask in #bug-reports >> #bug-reports:engine-bugs.

If anyone knows, please let me know!

It doesn’t seem to work sadly.

Post this in #bug-reports >> #bug-reports:engine-bugs then, as sadly we can’t control CoreGui issues.

I can’t seem to post a topic in that section.

Ah, sorry. Try contacting either Roblox Support, they probably are the only people who can help you then.

1 Like

Contact @Bug-Support instead.

l

1 Like