*sigh*. Maybe your player.pers["admins"] sets 0 on connect. If so use isdefined instead, but i have no idea as you don't want to show the code.