Hi!
This is one of the worst glitches I have. I’m trying to make an Admin Panel, but it’s not working.
I have 2 non working scripts:
1: OnChatted not working
(I don’t know how to make a button that only appears for devs.)
local plr = game.Players.LocalPlayer
plr.Chatted:Connect(function(msg)
if msg:lower() == ">>/openPanel" then
plr.PlayerGui.Panel1.LoginFrame.Visible = true
end
end)
Location: StarterPlayScripts, LocalScript
2: Admin panel password broken
Location: ServerScript inside of the TextBox
while wait() do
local input = script.Parent.TextBox.Text
if input == 1 then
script.Parent.InputValid.Visible = true
script.Parent.InputValid.TextColor3 = Color3.fromRGB(98, 255, 71)
wait (3)
script.Parent.Parent.Visible = false
script.Parent.Parent.Parent.AdminMain.Visible = true
end
end
local devs = { } --put some ids in here and separate them with a comma
local player = game.Players.LocalPlayer
if table.find(devs,player.UserId) then
Button.Visible = true -- Do your thing here.
end
local submit = script.Parent.TextButton -- Your button here
local input = script.Parent.TextBox
submit.MouseButton1Click:Connect(function()
if input.Text == '1' then
print('Yes!')
end
end)
local submit = script.Parent.Parent.LOGIN -- Your button here
local input = script.Parent.TextBox
submit.MouseButton1Click:Connect(function()
if input.Text == 'h5y89se5HJUYHSE54cyfgd65' then
script.Parent.Parent.Parent.Parent.AdminMain.Visible = true
end
end)
-- 68368346939529357389639836384683751341391274135781242879912348138949356742698524823457243589
local submit = script.Parent.Parent.LOGIN -- Your button here
local input = script.Parent.Parent.Textbox
submit.MouseButton1Click:Connect(function()
if input.Text == 'h5y89se5HJUYHSE54cyfgd65' then
script.Parent.Parent.Parent.Parent.AdminMain.Visible = true
end
end)
local submit = script.Parent.Parent.LOGIN -- Your button here
local input = script.Parent.Parent.TextBox
submit.MouseButton1Click:Connect(function()
if input.Text == 'h5y89se5HJUYHSE54cyfgd65' then
script.Parent.Parent.Parent.Parent.AdminMain.Visible = true
end
end)
-- 68368346939529357389639836384683751341391274135781242879912348138949356742698524823457243589