Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Nothing wrong with this script..?

Asked by
shayner32 478 Trusted Moderation Voter
9 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

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.

0
The ID I replaced with censored is a gamepass ID. shayner32 478 — 9y

Answer this question