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.
01 | local Admins = script.Admins |
02 | local Crash = script.CrashScript |
03 | local Players = game:GetService( "Players" ) |
04 |
05 | function AdminCheck(checkAdmin) |
06 |
07 | local Check = Admins:GetChildren() |
08 |
09 | for i = 1 , #Check do |
10 |
11 | if Admin [ i ] .Name = = checkAdmin then return true |
12 |
13 | else return false |
14 | end |
15 | 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.