local Donatecause = censored
local theplayer = script.Parent.Parent.Parent.Parent.Parent.Parent
function DonateS()
game:GetService("MarketplaceService"):PromptPurchase(theplayer, Donatecause)
end
script.Parent.MouseButton1Down:connect(DonateS)
[stupid inline code isn't working]
The directory of files is as shown:
- game
- Players
- Player
- PlayerGui
- MenuGui
- Frame
- DonateBase
- Small [textbutton]
- the script
Not too sure what's happening. It's not giving an error.

1 comment
The ID I replaced with censored is a gamepass ID.