Script won't enable UI if user is a group rank

Hello! I recently made a system for certain group ranks to have a perk in my game, and I tried making a UI that enables whenever someone joins the game and is a certain group rank, however, it won’t enable it when they join. I’m not very good with scripting so I came here for help!

Script (_do is the script that won’t work):

game.Players.LocalPlayer:Connect(function(plr)
	if plr:GetRankInGroup(7452696) == 10 or 11 or 12 or 255 then
		script.Parent.Parent.NotificationUI.Enabled = true
	end
end)

Screenshot:
0b409dee1a0bed87b22e5ed77d412e82 (1)

As much as I wish you could do

10 or 11 or 12 or 255

You can’t. You have to do

local plrRank = plr:GetRankInGroup(7452696)
if plrRank == 10 or plrRank == 11 or plrRank == 12 or plrRank == 255 then
    script.Parent.Parent.NotificationUI.Enabled = true
end

Why are you calling :Connect() on the player??

local LocalPlayer = game:GetService("Players").LocalPlayer

local plrRank = plr:GetRankInGroup(7452696)

if plrRank == 10 or plrRank == 11 or plrRank == 12 or plrRank == 255 then
	script.Parent.Parent.NotificationUI.Enabled = true
end

Just to improve on this solution:

local players = game:GetService("Players")
players.PlayerAdded:wait()
local player = players.LocalPlayer
local playerRank = players:GetRankInGroup(7452696)

if (playerRank >= 10 and playerRank <= 12) or playerRank == 255 then
	script.Parent.Parent.NotificationUI.Enabled = true
end