This doesn't seem to work. I've changed so many things, and it still doesn't work. I've spent hours on this. Can anyone help me find out what's wrong?
ID = 162597573
GPS = game:GetService("MarketplaceService")
player = script.Parent.Parent.Parent.Parent.Parent
function Buy()
game:GetService("MarketplaceService"):PromptPurchase(player,ID)
GPS.PromptPurchaseFinished:connect(function(player, ID, isPurchased)
if isPurchased then
clone1 = game.ServerStorage["Dual Darkheart"]:clone()
clone1.Parent = player.Backpack
end
end)
end
script.Parent.MouseButton1Click:connect(Buy)

11 comments
":Clone" has to be uppercased?
Yes
I'll give it a shot and see if it works.
:D I only spotted one, there may be more, sadly. Hope for the best
Yeah, that didn't work. I really don't know why this isn't working.
Put in localscript of this new script I am putting
It is a localscript.
Well try the new script anyways?
Okay, I'll try that one.
Didn't work.
I don't get this, so confused.