Tutorial:Tools for group ranks

In this tutorial, we will make a script that will give players a tool based on what rank they are in a group. ROBLOX contains a built in function called 'GetRankInGroup' that we will be using.

The Group
Whenever a role is created in a group, it is assigned to a number, called the Rank. This number is 0-255, and is vital for this tutorial. GetRankInGroup returns the rank that the player it is called on is in a group. The 0 rank is if the player is NOT in the group, and the 255 rank is the owner of the group. For this tutorial, we will use The LOL group, made by. This group has 5 roles.

The Scripting
Lets say we have a called "God Sword", located in. We want this tool to be given to a player if they're the "God of LOL". We want this tool to be given immediately when a player joins. Create a and put it in. This code will make a tool if the player is rank 255 in the LOL group. What if we have a tool called "Guide" and we only want "Cheezburgers" to have this tool? We do the same thing, by appending an elseif statement onto the same code.