I made a donation game. for my group and sadly it does not work I have set it up correctly and everything but when I click something to buy it prompts a purchase but it is a totally different thing to what I set it too.
Here is the script.
-- Enomphia
local a = 4753874
local b = 4753876
local c = 4753878
local d = 4753880
local e = 4753882
local LocalPlayer = game.Players.LocalPlayer
script.Parent['1'].MouseButton1Click:Connect(function()
game:GetService("MarketplaceService"):PromptPurchase(LocalPlayer, a)
end)
script.Parent['2'].MouseButton1Click:Connect(function()
game:GetService("MarketplaceService"):PromptPurchase(LocalPlayer, b)
end)
script.Parent['3'].MouseButton1Click:Connect(function()
game:GetService("MarketplaceService"):PromptPurchase(LocalPlayer, c)
end)
script.Parent['4'].MouseButton1Click:Connect(function()
game:GetService("MarketplaceService"):PromptPurchase(LocalPlayer, d)
end)
script.Parent['5'].MouseButton1Click:Connect(function()
game:GetService("MarketplaceService"):PromptPurchase(LocalPlayer, e)
end)
Check it out here: https://www.roblox.com/games/2037472475/DonationCenter
Thanks, Enomphia

1 comment
Ok Thanks! :D