I was wondering how I could make a button gui when you click it will detect if you have the gamepass to open another frame but all the ways i try it wont work.
local id = 10590821 -- change the id to yours! game.Players.PlayerAdded:connect(function(player) if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId, id) then player.PlayerGui.Gamepass.Button.Visible = true end end)
i have done it