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)
It might be possible that your script is disabled. What type of script is this? And where is it located?
Also your admincheck function returns false after the first iteration, so if the player you check is not the first object's name in script.Admins, then it will be false no matter what. Put the return false after the loop as well as fixing line 20.