I made a rank script and used rgb for the coloring but none of the ranks are colored. I think i did everything right and have made previous scripts before but i don't know why it isn't working.
game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) local rank = plr:GetRoleInGroup(1148703) local color = Color3.new(255/255, 255/255, 255/255) if rank == "Guest" then color = Color3.new(255/255, 255/255, 255/255) elseif rank == "Member" then color = Color3.new(255/255, 255/255, 255/255) elseif rank == "Abuse Reporter" then color = Color3.new(117/255, 69/255, 71/255) elseif rank == "Trial-Moderator" then color = Color3.new(0/255, 0/255, 0/255) elseif rank == "Moderator" then color = Color3.new(52/255, 117/255, 0/255) elseif rank == "Head-Moderator" then color = Color3.new(255/255, 149/255, 0/255) elseif rank == "Supervisor" then color = Color3.new(17/255, 0/255, 255/255) elseif rank == "Manager" then color = Color3.new(117/255, 107/255, 255/255) elseif rank == "Administrator" then color = Color3.new(54/255, 14/255, 255/255) elseif rank == "Head-Administrator" then color = Color3.new(19/255, 255/255, 7/255) elseif rank == "Chief Staff Officer" then color = Color3.new(139/255, 1/255, 132/255) elseif rank == "Chief Operational Officer" then color = Color3.new(254/255, 255/255, 180/255) elseif rank == "Chief Executive Officer" then color = Color3.new(1/255, 74/255, 74/255) elseif rank == "Developer" then color = Color3.new(138/255, 138/255, 138/255) elseif rank == "Co-Owner" then color = Color3.new(8/255, 255/255, 239/255) elseif rank == "Group Owner" then color = Color3.new(255/255, 8/255, 235/255) elseif rank == "Mod King -Owner-" then color = Color3.new(255/255, 0/255, 0/255) end print(plr.Name.." just joined with rank '"..rank.."'") if rank ~= "Guest" then local rankd = game.ServerStorage.Rank:Clone() rankd.Parent = char.Head rankd.TextLabel.Text = rank rankd.TextLabel.TextColor3 = color end end) end)