When you click the button, it's supposed to give you the gamepass with the Id of 4894476 but instead gives you the model with the id of 4894476. How do you make it so you buy the gamepass instead? if you get what I mean.
local productId = 4894476
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function()
game:GetService("MarketplaceService"):PromptProductPurchase(player, productId)
end)

13 comments
omg sorry i took forever to answer i did not know u answered
its ok
ok i gave better answer tho
ur welcome
oops I deleted it
accept and upvote if it helped
what
mine helped more
you need to explain no "you need to use ...", what promptproductpurchase works? what promptgamepasspurchase works?
i did
Also :connect is Deprecated use :Connect
oh ok
i explained what promptproductpurchase does, hastee, and why he shouldnt use it