Here's the script:
1 | Player = game.Players.LocalPlayer |
2 | local Vip = 158447540 |
3 |
4 | script.Parent.MouseButton 1 Click:connect( function () |
5 | game:GetService( "MarketplaceService" ):PromptPurchase(Player, Vip) |
6 | end ) |
So there isn't any errors and it doesn't work. Please HELP!!! Thanks.
Go to playergui and make add the following in order
ScreenGui
Frame
TextButton
1 | Player = script.Parent.Parent.Parent.Parent.Parent.Parent -- Put this script in TextButton |
2 | local Vip = 158447540 |
3 |
4 | script.Parent.MouseButton 1 Click:connect( function () |
5 | game:GetService( "MarketplaceService" ):PromptProductPurchase(Player, Vip) |
6 | end ) |
What does this have to do with game passes? And this must be a localscript.. if it still won't work then get the player by going 1 parent out of the workspace.
Hope Helped
+1