My prompt purchase pops up with this picture, but only for the tshirt ones, the gamepasses get prompted perfectly fine, any ideas why?
Server:
promptEvent:FireClient(loserPlayer)
Local script in starter player:
local RS = game:GetService("ReplicatedStorage")
local event = RS.PromptPurchase
local PlayerService = game:GetService("Players")
local Player = PlayerService.LocalPlayer
event.OnClientEvent:Connect(function()
for i,v in pairs(Player.PlayerGui.Donation.Frame.itemsScroller:GetChildren()) do
local debounce = false
if not (v:IsA("TextButton") or v:IsA("ImageButton")) then continue end
v.MouseButton1Click:Connect(function()
if debounce == false then
local itemId = v.Id.Value
local itemPrice = v.Price.Value
local assetType = v.AssetType.Value
if assetType == "Tshirt" then
game:GetService("MarketplaceService"):PromptPurchase(Player, itemId)
elseif assetType == "Gamepass" then
game:GetService("MarketplaceService"):PromptGamePassPurchase(Player, itemId)
end
debounce = true
task.wait(1)
debounce = false
end
end)
end
end)
Just a few points.
-Yes the id is correct ( I have checked using print statements)
-When its a gamepass it prompts perfectly fine
-It can’t be to do with the player variable or the remote event since the gamepass works perfectly.
Thanks for any help