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

How to make an administrator gui for specific people?

Asked by 5 years ago

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()
1
Naming your remote something difficult to type isn't good security. You should look at https://forum.scriptinghelpers.org/topic/112 for advice. hiimgoodpack 2009 — 5y
1
Thanks but I just put it in serverstorage and a script in serverscriptservice EnzoTDZ_YT 275 — 5y

1 answer

Log in to vote
1
Answered by
0msh 333 Moderation Voter
5 years ago

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
Don't spoonfeed answers hiimgoodpack 2009 — 5y
Ad

Answer this question