I am working in a game. Now I need a help in making the GUI only for the owner and the developers of the game. So please help me how can do this.
✓ ANSWER ACCEPTED
How do I make a GUI visible for a specific rank?
1 answer
✓ Accepted answer
You should not really ask for scripts at this page, but I am in good mood today. Here is an example local script (parented to the GUI, that is set invisible by default).
--here is your table, add as many lines as you like
local ADMINS = {[00000000] = true, --replace with your user id
[12345678] = true, --replace with dev id
[-1] = true} -- for testing (Id of Player1 in server tests)
local player = game:GetService("Players").LocalPlayer
if ADMINS[player.UserId] then
script.Parent.Visible = true
end
Remember that for every remote event, check UserId on server too, or you may have just opened the door for exploiters. Good luck!
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
ok thanks for helping me.