Basically, I have to people you can talk to that will give you tools. The dialog choice's scripting in both of them do not use the same variables, but MarketplaceService is allowing you to select a choice on one, leave the buy option there, and go to the other person with the other choices and pick one of those, and that one will go through and purchase it when you really bought for the other choice.
I don't know how to fix this at all, I don't know if it's my scripting, or MarketplaceService just acting weird, has anyone else had this issue?
Here's the script, I didn't write this, so I don't know what's wrong with it.
local Service = game:GetService("MarketplaceService");
local SellItems = {
["Tool1"] = 31134452;
["Tool2"] = 31134454;
}
for Name,Item in pairs(SellItems) do
local Choice = script.Choice1:Clone();
Choice.Name = Name
Choice.UserDialog = Name
Choice.ResponseDialog = "Let's not talk to anyone about this, eh?";
Choice.Parent = script.Parent;
end
function GetChoice(Name)
for y,ID in pairs(SellItems) do
if y == Name then
return y,ID
end
end
return
end
script.Parent.DialogChoiceSelected:connect(function(Player, Choice)
local s,e = coroutine.resume(coroutine.create(function()
if SellItems[Choice.Name] and Player then
local Choice,ID = GetChoice(Choice.Name)
if Player.Character and Choice and ID then
if not Player.Character:findFirstChild(Choice) then
if Player:findFirstChild("Backpack") then
if not Player.Backpack:findFirstChild(Choice) then
print("Does not own");
Service.ProcessReceipt = (function(receiptInfo)
local Tool = game.Lighting.DealerTools.Tools:WaitForChild(Choice):Clone()
Tool.Parent = Player.Backpack;
return Enum.ProductPurchaseDecision.PurchaseGranted;
end)
Service:PromptProductPurchase(Player,ID);
end
end
end
end
end
end))
if not s then
warn(e)
end
end)

5 comments
Well let's see, we can't help you. We don't script for you, we only help out. You said you didn't know if it was your scripting, well how can we fix this without a script....? Can't exactly help you..
didn't have to down me if you didn't understand.
I added the script.
What's the output, if any?
Quite a few issues I have with your question. 1. You've not mentioned any outputs 2. You've not said what works (If any) 3. It doesn't make sense and finally, it's probably not the best option to ask for help on a script you didn't make. You could just ask the person that made it.