Most of the players use items or code ranks manually, which is very annoying. But if we code ranks in game using variables, It will be much easier. Also, if you want to give players permissions like flying, building, etc. Then Let's see how to do it.
Player Event(Kill Player)->
Set Variables...