Alright so I’m making a automatic uniforms system that gives uniforms to players when they join the game, but I am getting the “attempting to compare a number <= boolean” error.
I looked at other posts but I couldn’t get how to fix it so here I am.
The script is below as well as the line that is giving the error, although I’m sure I need to adjust all the lines as there are other lines for other groups. You’ll get it once you see.
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
if plr:IsInGroup(15038816) and not plr.Name == "WakeTheDev" and not plr.Name == "MochaTheDev" then
char:WaitForChild("Shirt").ShirtTemplate = "rbxassetid://513567320"
char:WaitForChild("Pants").PantsTemplate = "rbxassetid://513570472"
elseif plr:IsInGroup(15040213) then
if plr:GetRankInGroup(15040213) <= 2 and not plr:GetRankInGroup(15040213) == 0 then
char:WaitForChild("Pants").PantsTemplate = "rbxassetid://513568836"
char:WaitForChild("Shirt").ShirtTemplate = "rbxassetid://513567796"
elseif plr:GetRankInGroup(15040213) > 2 and not plr:GetRankInGroup(15040213) >= 100 then -- This line is the error
char:WaitForChild("Shirt").ShirtTemplate = "rbxassetid://513570677"
char:WaitForChild("Pants").PantsTemplate = "rbxassetid://513567601"
elseif plr:GetRankInGroup(15040213) >= 100 then
char:WaitForChild("Shirt").ShirtTemplate = "rbxassetid://513567320"
char:WaitForChild("Pants").PantsTemplate = "rbxassetid://513570472"
end
elseif plr:IsInGroup(15215864) then
if plr:GetRankInGroup(15215864) <= 47 and not plr:GetRankInGroup(15215864) == 0 then
char:WaitForChild("Shirt").ShirtTemplate = "http://www.roblox.com/asset/?id=10078671923"
char:WaitForChild("Pants").PantsTemplate = "http://www.roblox.com/asset/?id=10059029769"
elseif plr:GetRankInGroup(15215864) > 2 and not plr:GetRankInGroup(15215864) >= 97 then
char:WaitForChild("Shirt").ShirtTemplate = "http://www.roblox.com/asset/?id=10058943372"
char:WaitForChild("Pants").PantsTemplate = "http://www.roblox.com/asset/?id=10059029769"
elseif plr:GetRankInGroup(15215864) >= 97 then
char:WaitForChild("Shirt").ShirtTemplate = "http://www.roblox.com/asset/?id=10078670257"
char:WaitForChild("Pants").PantsTemplate = "http://www.roblox.com/asset/?id=10059029769"
end
elseif plr:IsInGroup(15177154) then
if plr:GetRankInGroup(15177154) <= 12 and not plr:GetRankInGroup(15177154) == 0 then
char:WaitForChild("Pants").PantsTemplate = "rbxassetid://513568836"
char:WaitForChild("Shirt").ShirtTemplate = "rbxassetid://513567796"
elseif plr:GetRankInGroup(15177154) > 12 and not plr:GetRankInGroup(15177154) >= 99 then
char:WaitForChild("Shirt").ShirtTemplate = "rbxassetid://513570677"
char:WaitForChild("Pants").PantsTemplate = "rbxassetid://513567601"
elseif plr:GetRankInGroup(15177154) >= 99 then
char:WaitForChild("Shirt").ShirtTemplate = "rbxassetid://513567320"
char:WaitForChild("Pants").PantsTemplate = "rbxassetid://513570472"
end
elseif plr:IsInGroup(15444520) then
if plr:GetRankInGroup(15444520) <= 3 and not plr:GetRankInGroup(15444520) == 0 then
char:WaitForChild("Pants").PantsTemplate = "rbxassetid://513568836"
char:WaitForChild("Shirt").ShirtTemplate = "rbxassetid://513567796"
elseif plr:GetRankInGroup(15444520) > 3 and not plr:GetRankInGroup(15444520) >= 100 then
char:WaitForChild("Shirt").ShirtTemplate = "rbxassetid://513570677"
char:WaitForChild("Pants").PantsTemplate = "rbxassetid://513567601"
elseif plr:GetRankInGroup(15444520) >= 100 then
char:WaitForChild("Shirt").ShirtTemplate = "rbxassetid://513567320"
char:WaitForChild("Pants").PantsTemplate = "rbxassetid://513570472"
end
end
end)
end)
The line that is erroring:
elseif plr:GetRankInGroup(15040213) > 2 and not plr:GetRankInGroup(15040213) >= 100 then