My script is an admin script and nothing appears in the output, and i cant seem to find a error. Script:

 Admin = {"cakeblaster1337", "sf200", "xsolutions"}
Prefix = "/"
game.Players.PlayerAdded:connect(function(speaker)
	local AdminValue = Instance.new("BoolValue")
AdminValue.Name = "IsAdmin"
AdminValue.Value = false
AdminValue.Parent = speaker
speaker.Chatted:connect(function(chat)
for i,v in pairs(Admin) do
if speaker.Name == v then
	speaker.IsAdmin.Value = true
local NewGui = Instance.new("ScreenGui")
NewGui.Name = "AdminsDoe"
NewGui.Parent = speaker
local NewFrame = Instance.new("Frame")
NewFrame.Name = "AdminFrame"
NewFrame.Visible = false
NewFrame.Parent = NewGui
NewFrame.BackgroundTransparency = 1
NewFrame.Size =UDim2.new(1, 0, 1, 0)
local scrubcount = 0
for i,z in pairs(game.Players:GetChildren()) do
scrubcount = scrubcount - 1
	if z.IsAdmin.Value == true then
local TextButton = 	Instance.new("TextLabel")
TextButton.Parent = NewFrame
TextButton.Name  = z.Name
TextButton.Text = z.Name .. "Is An Admin!"
TextButton.Size = UDim2.new(0, 250, 0, 30)
TextButton.BackgroundTransparency = 0.5
TextButton.BackgroundColor3 = Color3.new(0, 0, 0)
TextButton.Position = UDim2.new(0.5, -125, 0.5, -100 * scrubcount)
	else
local TextButton = 	Instance.new("TextLabel")
TextButton.Parent = NewFrame
TextButton.Name  = z.Name
TextButton.Text = z.Name .. "Is Not An Admin!"
TextButton.Size = UDim2.new(0, 250, 0, 30)
TextButton.BackgroundTransparency = 0.5
TextButton.BackgroundColor3 = Color3.new(0, 0, 0)
TextButton.Position = UDim2.new(0.5, -125, 0.5, -100 * scrubcount)
	end
	end
if chat:lower() == "GetAdmins" .. Prefix then
	print("Wow, You done it nao scrub")
	speaker.PlayerGui.AdminsDoe.AdminFrame.Visible = true
end
end
end end)end)

2 comments

0

What part of it doesn't work?

0

The entire thing doesnt work