Yes but I don’t think you need to do that. This script should get the number of the rank that you want which can be used to tell if the player has permission to use a specific command
Make sure the function is bellow the table
Oh wait I believe I did it wrong again hold up one second I’m so sorry
No no no it is fine It is a normal human reaction
Is the error at the first for loop or the second?
I chnaged it to this:
Is that fine?
ok I just wasnt thinking right lol. replace the [p] with [i]
yeah that is fine it should still work the same (if i can code it right lol)
delete that if statement and replace it with this:
for n, _ in pairs(allowedRanks) do
if allowedRanks[n] == rankName then
if i <= n then
return true
end
end
end
Also would this work
and I change all the code to this?
like this:
I think that should work if you change that
How Would I change it?
Yes just like that I hope it works now
Im confused on what you mean by this
It is comparing a string with a number…
How Would I change this?
To make it work
This is the error i get ( •̀ ω •́ )✧( •̀ ω •́ )✧