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?
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
.