I was doing a commission for making a shirt seller thing and for some reason I keep getting the same message when I buy a shirt using “PromptPurchase”?
It prints the correct shirt Id but nothing is still working and it’s a little hard to explain so I’ll just provide photos.
local MarketplaceService = game:GetService("MarketplaceService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ClothingToClient = ReplicatedStorage:WaitForChild("ClothingToClient")
script.Parent.ClickDetector.MouseClick:Connect(function(player)
local Id = script.Parent.Name
local IsShirt = script.Parent.IsShirt.Value
ClothingToClient:FireClient(player, Id, IsShirt)
end)
ClothingToClient.OnServerEvent:Connect(function(Player, Id)
print(Id)
MarketplaceService:PromptPurchase(Player, Id)
end)