Advertisement
RoScripter

Group Rank Uniforms

Jul 17th, 2020
8,026
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.92 KB | None | 0 0
  1. local GroupId = 6142799 --Replace 1234567 with your group ID
  2.  
  3. local RanksAndUniforms = {
  4.  
  5. }
  6.  
  7. --[[
  8. Format:
  9. local RanksAndUniforms = {
  10.     {254 <<RANK ID, "http://www.roblox.com/asset/?id=4962666172 <<SHIRT ID", "http://www.roblox.com/asset/?id=3147436364 <<PANTS ID"},
  11.     {255 <<RANK ID, "http://www.roblox.com/asset/?id=5143840274 <<SHIRT ID", "http://www.roblox.com/asset/?id=3176119501 <<PANTS ID"}
  12. }
  13. ]]--
  14.  
  15. game.Players.PlayerAdded:Connect(function(Player)
  16.     Player.CharacterAdded:Connect(function(Character)
  17.         wait()
  18.         for i = 1, #RanksAndUniforms do
  19.             local RankAndUniform = RanksAndUniforms[i]
  20.            
  21.             local RequiredRank = RankAndUniform[1]
  22.             local ShirtTemplate = RankAndUniform[2]
  23.             local PantsTemplate = RankAndUniform[3]
  24.            
  25.             if Player:GetRankInGroup(GroupId) == RequiredRank then
  26.                 Character.Shirt.ShirtTemplate = ShirtTemplate
  27.                 Character.Pants.PantsTemplate = PantsTemplate
  28.             end
  29.         end
  30.     end)
  31. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement