How do I add to my script it be able only for super admins?

How do I add to my script it be able only for super admins?

Can I do like this

script.GetPlayerRank = function(ply)
return string.lower((exsto and ply.GetRank and ply:GetRank()) or --Exsto
(ply.EV_GetRank and ply:EV_GetRank()) or --Evolve
(ply.GetUserGroup and ply:GetUserGroup()) or --ULX
“” --Failed
)
end

local function AdminOnly(ply) return IsValid(ply) and ply:IsAdmin() end

Ply:IsSuperAdmin() as simple as that…

So in the beggining I will add a function Ply:IsSuperAdmin()

It is a function already. Most admin mods return true if the desired player is superadmin.

if ply:IsSuperAdmin() then
–progress, player is a superadmin
end