My if statement not working

local admins = {
	'1870270151',
	'2750291481',
	'5131398974',
	'2879596566',
	'4110539419',
	'2017684638',
	"5627938864"
}
game.Players.PlayerAdded:Connect(function(plr)
	local Admin = false
	for i = 1, #admins do
		print(admins[i] .. " " .. plr.UserId)
		if admins[i] == plr.UserId then 
			Admin = true
			print('e')
			
		
		end
		end

the second id is mine
its not printing ā€œeā€
the code aint codin

local admins = {
	1870270151,
	2750291481,
	5131398974,
	2879596566,
	4110539419,
	2017684638,
	5627938864
}

game.Players.PlayerAdded:Connect(function(plr)
	local Admin = false

	for _, userId in admins do
		print(userId .. " " .. plr.UserId)
		if userId == plr.UserId then 
			Admin = true
			print('e')
		end
    end
end)
1 Like

thank you it worked (im typing the rest of this cuz roblox is forcing me to have atleast 30 letters in my reply)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.