local whitelist = {"world_kiIIer","Femme_Devil"}
while wait() do
for i,v in pairs(whitelist) do
if #gui:GetChildren() > 4 and player.Name ~= v then
game.Players.LocalPlayer:Kick("dont cheat")
end
if #rank:GetChildren() > 11 and player.Name ~= v then
player:Kick("dont cheat")
end
end
end
i still get kicked when i got more than allowed (world_kiIIer) is the account i work with in studio

3 comments
i dont get why this works and mine doesnt really but this works
I explained it to you above, in one of the iterations, the conditional statement returns false, in here there is no for loop, only 1 iteration that checks if the player is part of the dictionary, so it works.
In your script, it returns true, goes to the next and kicks you, or the other way around, straight up kicking you.