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

How to make a game pass-only hopperbin GUI?

Asked by
xp3000 0
10 years ago

I'm working on a dlc for my game and I don't understand all these services. How would they ever stop someone from clicking a GUI?

1 answer

Log in to vote
0
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
10 years ago

They don't stop people from clicking on GUIs, they stop the GUI from appearing in the first place.

Using a Script, call the PlayerHasPass method of the GamePassService, using your Game Pass's ID, and if it returns true for the given Player, set the GUI element's Visible property to true, otherwise, set it to false.

Ad

Answer this question