I have a problem. When I donate something with the button it doesn't give the Robux, I have a working button but when I actually donate it won't give the Robux to the creator, can someone tell me what is the problem.
STORY: I donated ROBUX to my sister because she wanted me to make a donation button and then I tested it and it did not work.
script in ServerScriptService:
local debounce = false game.Workspace.Touch.Touched:Connect(function(hit) if debounce == false then debounce = true if game.Players:GetPlayerFromCharacter(hit.Parent) then game.ReplicatedStorage.ShowGUI:FireClient(game.Players:GetPlayerFromCharacter(hit.Parent)) end end end)
script button in GUI:
local donate = 1058463785 script.Parent.MouseButton1Click:Connect(function() game:GetService("MarketplaceService"):PromptProductPurchase(game.Players.LocalPlayer,donate) end)
I also have a remote event in replacastorage ;-; help