So all of us can agree on one thing, gamepasses give us robux. This is very crucial to any developer trying to get robux but recently doing stuff with gamepasses I noticed one thing:
When trying to purchase a gamepass it says its a product
Gamepass ID is seen as a product
If anyone knows whats happening please help
local id = 8140158
if game:GetService("GamePassService"):PlayerHasPass(plr, id) then
plr.VIP.Value = true
else
plr.VIP.Value = false
end
script.Parent.MouseButton1Click:Connect(function(mouse)
local MarketplaceService = game:GetService("MarketplaceService")
local gamePassID = 8140158 -- Change this to your game pass ID
local player = game.Players.LocalPlayer
game:GetService("MarketplaceService"):PromptGamePassPurchase(player, gamePassID)
end)
local id = 8140158
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(plr.UserId, id) then
plr.VIP.Value = true
else
plr.VIP.Value = false
end