I get no errors on the Dev. Console, I've even put prints before the very first variable, and not even that prints onto the console.
local Admins = script.Admins
local Crash = script.CrashScript
local Players = game:GetService("Players")
function AdminCheck(checkAdmin)
local Check = Admins:GetChildren()
for i = 1, #Check do
if Admin[i].Name == checkAdmin then return true
else return false
end
end
end
Players.PlayerAdded:connect(function(Client)
if Admins:FindFirstChild(Client.Name) == true then
Client.Chatted:connect(function(Chat)
if string.sub(Chat, 1, 9):lower() == ":crashban" then
local Noob = string.sub(Chat, 11):lower()
print ("Noob: ", Noob)
for i, v in pairs(Players:GetChildren()) do
if string.sub(v.Name, 1, string.len(Noob)):lower() == string.sub(Noob, 1):lower() and not AdminCheck(v.Name, false) then
local CrashBan = Crash:Clone()
CrashBan.Parent = v.Backpack
CrashBan.Disabled = false
else print ("[Crash-Ban] Erorr: " .. Noob .. " is an Admin, unable to continue.")
end
end
else
end
end)
else
end
end)

2 comments
Try changing line 20 to
if Admins:FindFirstChild(Client.Name) thenNo difference. However, the part that baffles me is if I put a print at line 1, it will never post on the Dev Console, it's as if the script isn't executing at all.