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

Team detection and showing a GUI for the player on the team. But it doesn’t work for me?

Asked by 4 years ago

I am trying to make a !help command for staff, I found out how to use commands I think, but the problem is I need a script that detects who is on the team and shows a GUI for the people only on that team, so staff. So I hope someone could help me whit this. Thanks!

1 answer

Log in to vote
0
Answered by 4 years ago

You have a couple options. You can either hardcode the UserId's of your staff members or if applicable check if they are in your group at a certain rank.

The latter one is more reliable and won't require you to change your code when a new staff member is added but it will require you to have a group where everyone is ranked as a staff member.

0
Its also possible to use a datastore with a in-game command Leamir 3138 — 4y
0
True, there's many more options. You can also get them from like Trello with HTTPService. But that's not the point. I like the group one most because it requires no extra work. User#834 0 — 4y
Ad

Answer this question