Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make a GUI visible for a specific rank?

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.

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!

1 comment

0

ok thanks for helping me.

This discussion is preserved as it was. New answers, comments, and votes are closed.