This is more of a question as to how the developer product system works, if someone can link me to a help page such as wiki with all the info about where the money goes and how long it takes, that would be enough help for now.
Everything works fine in game when I purchase it. It's also a group place. Where does the Robux go? I'd assume it's group funds since it's a group place but 10 minutes after the purchase, it still says R$0!
Here's the script anyways..NOT a Local Script!
-- Sodaghost13
local MarketplaceService = game:GetService("MarketplaceService")
local player = game.Players.LocalPlayer
local frame = script.Parent
local thankYou = script.Parent.Parent:WaitForChild("ThankYou")
local donation1 = frame:WaitForChild("Donation1")
-- Donation1 (10 Robux)
donation1.MouseButton1Down:connect(function()
local productId = 45544657
MarketplaceService:PromptProductPurchase(player, productId)
MarketplaceService.ProcessReceipt = function(receiptInfo)
MarketplaceService:GetProductInfo(productId, Enum.InfoType.Product)
end
end)

4 comments
There's nothing wrong with the scripting, Roblox just has a filter on dev products and gamepasses because of scamming, so R$ gets delayed as a safe barrier, it takes about 1-2 days, I believe.
it takes 3 days to receive your robux, they go into "pending" and can be found in your robux summary https://www.roblox.com/My/Money.aspx#/#Summary_tab
Oh it does say that in my group summary, I read it thinking it was sales done already. Thanks!
Found it on wiki; Pending Sales — Money from sources such as game passes or developer products. Before being awarded with these Robux, they are held for a short period of time. This is an anti-scam measure meant to help mitigate damage from fraudulent products.