DFrame Admin+ Allowed only

So I created a Dframe now, and i only want admin and over (owner, superadmin) to be allowed to use it. Is there any code for Admin+ only to be allowed to open the menu

Also you gotta learn how to Google

I have found nothing

You’ll wanna do the rank check via SV side.
Thats all I’m telling you, also to check rank via SV you’ll need to look at the
Networking libary

theres a simpler way.



local tbl = {}
tbl['superadmin'] = true
tbl['yourgroup'] = true

if tbl[ply:GetUserGroup()] then
    ...
end


calling the table directly is faster than using the table.hasvalue function. (Actually faster, not faster writing-wise.)

Oh, my bad. Thanks for that.