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