Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

how can I make a gui that is only opened by a gamepass?

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.

2 comments

0

Please at least attempt to do this your self.

0

Can you please post the scripts you've tried? We cannot help you if you won't show us your trials :) .

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.