Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local auto_uniform = false
- local group_id = 53272
- local rank = 193
- -- Mk4 Armored Combat Uniform
- local shirt_id1 = "http://www.roblox.com/asset/?id=98096777"
- local pants_id1 = "http://www.roblox.com/asset/?id=98096789"
- -- Officer Service Dress
- local shirt_id2 = "http://www.roblox.com/asset/?id=98096816"
- local pants_id2 = "http://www.roblox.com/asset/?id=98096836"
- -- Mk3 Shock Trooper Armor
- local shirt_id3 = "http://www.roblox.com/asset/?id=98096900"
- local pants_id3 = "http://www.roblox.com/asset/?id=98096927"
- function change()
- for i, v in pairs(game.Players:GetPlayers()) do
- if auto_uniform then
- v:LoadCharacter()
- if v:IsInGroup(275587) then
- v.Character.Shirt.ShirtTemplate = shirt_id3
- v.Character.Pants.PantsTemplate = pants_id3
- elseif v:GetRankInGroup(53272) >= 194 then
- v.Character.Shirt.ShirtTemplate = shirt_id2
- v.Character.Pants.PantsTemplate = pants_id2
- elseif v:GetRankInGroup(53272) < 194 then
- v.Character.Shirt.ShirtTemplate = shirt_id1
- v.Character.Pants.PantsTemplate = pants_id1
- end
- else
- v:LoadCharacter()
- end
- end
- end
- function turn_true(player)
- player.Chatted:connect(function(msg)
- if player:GetRankInGroup(53272) >= 193 then
- if msg:sub(1,4):lower() == "true" and not auto_uniform then
- auto_uniform = true
- change()
- elseif msg:sub(1,5):lower() == "false" and auto_uniform then
- auto_uniform = false
- change()
- end
- end
- end)
- end
- game.Players.PlayerAdded:connect(function(player)
- turn_true(player)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement