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.
COMMUNITY QUESTION
how can I make a gui that is only opened by a gamepass?
1 answer
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
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Please at least attempt to do this your self.
Can you please post the scripts you've tried? We cannot help you if you won't show us your trials :) .