So I am trying to make it that if you have the following rank or lower you will get the desired clothes, and it errors at the module part. Here is the module’s code.
local module = {}
function module:CheckRank(Player, Character, Clothing)
if Player:GetRoleInGroup(4178207) <= 9 then
Character:WaitForChild("Shirt").ShirtTemplate = Clothing[Clothing].Shirt
Character:WaitForChild("Pants").PantsTemplate = Clothing[Clothing].Pants
end
end
return module