if plr:IsInGroup(roka) then
if plr:GetRankInGroup(roka) == 5 then
plr.Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id="
elseif plr:GetRankInGroup(roka) == 6 then
plr.Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id="
elseif plr:GetRankInGroup(roka) == 7 then
plr.Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id="
elseif plr:GetRankInGroup(roka) == 8 then
plr.Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id="
elseif plr:GetRankInGroup(roka) == 9 then
plr.Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id="
elseif plr:GetRankInGroup(roka) == 10 then
plr.Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id="
elseif plr:GetRankInGroup(roka) == 11 then
plr.Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id="
elseif plr:GetRankInGroup(roka) == 12 then
plr.Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id="
elseif plr:GetRankInGroup(roka) == 13 then
plr.Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id="
elseif plr:GetRankInGroup(roka) == 14 then
plr.Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id="
elseif plr:GetRankInGroup(roka) == 16 then
plr.Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id="
elseif plr:GetRankInGroup(roka) == 17 then
plr.Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id="
elseif plr:GetRankInGroup(roka) == 19 then
plr.Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id="
elseif plr:GetRankInGroup(roka) >= 20 then
plr.Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id="
else
plr.Character.Humanoid.Health = 0
end
end
You forgot to close the if statement. Also, to make your code more cleaner, please use tables to store the rank and clothes data then you could just use 1 if statement.
Try using tables instead to remove the plethora of blocks.
local templates = {
[5] = "http://www.roblox.com/asset/?id=etc."
[6] = "http://www.roblox.com/asset/?id=etc."
}
-- the rank as an index should correspond with the desired assetid
if plr:IsInGroup(roka) then
local rank = plr:GetRankInGroup(roka)
plr.Character.Shirt.ShirtTemplate = templates[rank]
end