Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I make a GUI do something if a player has a GamePass On Click?

Asked by 4 years ago
Edited by Ziffixture 4 years ago

I think something like this was asked here but it isn't what I wanted. I want the GUI to do something when clicked and player has that gamepass. Any awnsers for this?

1 answer

Log in to vote
0
Answered by
Ziffixture 6913 Moderation Voter Community Moderator
4 years ago
Edited 4 years ago

You can use MarketplaceServiceā€™s UserOwnsGamePassAsync function to verify whether the given user has a Gamepass. This function returns a Boolean Value, meaning we can directly call it within a Conditional.

0
Lmao Ziffixture 6913 — 4y
0
Thanks mikabrico 0 — 4y
Ad

Answer this question