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
was it a script error because when i tested it no script error appeared and it shows the gamepass
Uh, can you please be specific of what error it was?
Error Is "Your purchase failed because something went wrong. Your account has not been charged. Please try again later.