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

How to make an administrator gui for specific people?

i already made some code but non of it works i would like someone to help me i dont care if its completely different aslong as it works.

The code i made:

local AdminGUI = game.StarterGui.ADMINGUIDontTryMeHackersIGotALongNameSoYouAreTooLazyToTypeHAHA
local script = game.ReplicatedStorage.CheckForAdmin

if player.Name == "EnzoTDZ_YT" or player.Name == "smifflar102" then
	print("An Administrator Is In Your Game.")
	wait(1)
end
else
	AdminGUI:Destroy()
	script:Destroy()

2 comments

1

Naming your remote something difficult to type isn't good security. You should look at https://forum.scriptinghelpers.org/topic/112 for advice.

1

Thanks but I just put it in serverstorage and a script in serverscriptservice

1 answer

✓ Accepted answer

put this in ServerScriptService

game:GetService("ServerStorage")
local AdminGUI = game.ServerStorage.ADMINGUIDontTryMeHackersIGotALongNameSoYouAreTooLazyToTypeHAHA
game.Players.PlayerAdded:Connect(function(player)
if player.Name == "EnzoTDZ_YT" or player.Name == "smifflar102" then
  local admin = AdminGUI:Clone()
admin.Parent = player.PlayerGui
end
end)

1 comment

1

Don't spoonfeed answers

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