Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Error when player stands on part?

This script doesn't work you can test it out for yourself it shows an error when you stand on the part that the script has, so I would likely wanna see if anyone can do a better script. The Error Is "Your purchase failed because something went wrong. Your account has not been charged. Please try again later.

Code:`local Marketplace = game:GetService('MarketplaceService') local gamepassid = 1208800558

script.Parent.Touched:connect(function(t) if t and t.Parent and t.Parent:FindFirstChild('Humanoid') then local Player = game.Players:FindFirstChild(t.Parent.Name) if Player then Marketplace:PromptGamePassPurchase(Player, gamepassid) end end end)`

3 comments

0

was it a script error because when i tested it no script error appeared and it shows the gamepass

0

Uh, can you please be specific of what error it was?

0

Error Is "Your purchase failed because something went wrong. Your account has not been charged. Please try again later.

1 answer

There is no error, but the gamepass id is invalid. Try looking that up. The error you specified is NOT a code error, and you should take it to Google or YouTube.

This discussion is preserved as it was. New answers, comments, and votes are closed.