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

How do I make it so my admin panel appears if me (UnlimitedRBLX) or smoomysman joins my game?

Asked by 5 years ago
Edited 5 years ago
local Player = game.Players.LocalPlayer
local PlayerGui = Player:WaitForChild("PlayerGui")

local adminpanel = PlayerGui.AdminPanel

game.Players.PlayerAdded:Connect(function(plr)
    if plr.Name == "UnlimitedRBLX"
        then
            game.Players.UnlimitedRBLX.PlayerGui.AdminPanel.Enabled = true;
    end
end)

game.Players.PlayerAdded:Connect(function(plr)
    if plr.Name == "smoomysman"
        then
            game.Players.smoomysman.PlayerGui.AdminPanel.Enabled = true;
    end
end)


Here is my script, I'm quite tired since I stayed up all night which makes me slightly more dumber so I'm probably gonna get a lot of things wrong but I am looking for a fix. What should I do to fix this?

0
Is this in a LocalScript? wiktorwiktor12 0 — 5y
0
Yes, it is in a LocalScript. Sorry for the late response, had trouble logging back into my account. UnlimitedRBLX 15 — 5y

Answer this question