I was trying to make a VIP room in my game, I've made it but there's a problem. How to make a game pass pop up icon if the player who didn't buy the game pass could buy it in-game? Thanks so much!
Put a localscript in StarterGui with this code
local mps = game:GetService("MarketplaceService") local gamepassId = 14837734 local door = game.Workspace.PremDoor door.Touched:Connect(function(part) if part.Parent:FindFirstChildWhichIsA("Humanoid") then local plr = game:GetService("Players"):GetPlayerFromCharacter(part.Parent) local userId = plr.UserId if mps:UserOwnsGamePassAsync(userId, gamepassId) then --Run code if player owns the gamepass else mps:PromptGamePassPurchase(plr, gamepassId) end end end)