Nevermind I found the error. Thank you guys.
COMMUNITY QUESTION
[CLOSED] Why is this not working? [PROMPPRODUCTPURCHACE]
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
I don't think you can use MarketplaceService in LocalScripts.
I had it in a regular script earlier, but it still didn't work.
It may be that your hierarchy is wrong and it isn't actually going to the player?
Nope. The script is in a TextButton, which is in a ScreenGui, which is in the player's PlayerGui, which is in the player. 4 Parents.