Advertisement
Guest User

Untitled

a guest
Dec 17th, 2014
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.52 KB | None | 0 0
  1. local auto_uniform = false
  2. local group_id = 53272
  3. local rank = 193
  4.  
  5. -- Mk4 Armored Combat Uniform
  6. local shirt_id1 = "http://www.roblox.com/asset/?id=98096777"
  7. local pants_id1 = "http://www.roblox.com/asset/?id=98096789"
  8.  
  9. -- Officer Service Dress
  10. local shirt_id2 = "http://www.roblox.com/asset/?id=98096816"
  11. local pants_id2 = "http://www.roblox.com/asset/?id=98096836"
  12.  
  13. -- Mk3 Shock Trooper Armor
  14. local shirt_id3 = "http://www.roblox.com/asset/?id=98096900"
  15. local pants_id3 = "http://www.roblox.com/asset/?id=98096927"
  16.  
  17. function change()
  18.     for i, v in pairs(game.Players:GetPlayers()) do
  19.         if auto_uniform then
  20.             v:LoadCharacter()
  21.             if v:IsInGroup(275587) then
  22.                 v.Character.Shirt.ShirtTemplate = shirt_id3
  23.                 v.Character.Pants.PantsTemplate = pants_id3
  24.             elseif v:GetRankInGroup(53272) >= 194 then
  25.                 v.Character.Shirt.ShirtTemplate = shirt_id2
  26.                 v.Character.Pants.PantsTemplate = pants_id2
  27.             elseif v:GetRankInGroup(53272) < 194 then
  28.                 v.Character.Shirt.ShirtTemplate = shirt_id1
  29.                 v.Character.Pants.PantsTemplate = pants_id1
  30.             end
  31.         else
  32.             v:LoadCharacter()
  33.         end
  34.     end
  35. end
  36.  
  37. function turn_true(player)
  38.     player.Chatted:connect(function(msg)
  39.         if player:GetRankInGroup(53272) >= 193 then
  40.             if msg:sub(1,4):lower() == "true" and not auto_uniform then
  41.                 auto_uniform = true
  42.                 change()
  43.             elseif msg:sub(1,5):lower() == "false" and auto_uniform then
  44.                 auto_uniform = false
  45.                 change()
  46.             end
  47.         end
  48.     end)
  49. end
  50.  
  51. game.Players.PlayerAdded:connect(function(player)
  52.     turn_true(player)
  53. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement