I’m currently developing a Hospital and I’ve put emergency alarms/buzzers in every room, however, I don’t want any random person to be able to activate one, especially trollers etc. Therefore, I wanted to make it so only a certain group rank would be able to push the button. How would I do this?
Any help would be greatly appreciated!
On a Player object, you can use a function called :GetRankInGroup(groupid), which will return the value of their rank in the group.
https://developer.roblox.com/en-us/api-reference/function/Player/GetRankInGroup
If you need more details, let me know.