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

Error when player stands on part?

Asked by 2 years ago
Edited 2 years ago

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)`

0
was it a script error because when i tested it no script error appeared and it shows the gamepass person13042 9 — 2y
0
Uh, can you please be specific of what error it was? AProgrammR 398 — 2y
0
Error Is "Your purchase failed because something went wrong. Your account has not been charged. Please try again later. Pro_beatz 36 — 2y

1 answer

Log in to vote
0
Answered by 1 year ago

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.

Ad

Answer this question