Color3.fromRGB not working?

  1. What do you want to achieve?
    I want to convert a RGB value to a Color3 value by using Color3.fromRGB.

  2. What is the issue?
    The color turns black, I’m assuming its because the numbers are too high and it is ignoring the .fromRGB.

  3. What solutions have you tried so far?
    I have looked on the Developer Forum.

Module script that’s storing the color

    RankColor = Color3.fromRGB(255,0,0), -- rank of this color (in RGB)

Script that “converts” it from RGB to Color3

	announcement.userRank.TextColor3 = Color3.fromRGB(rankModule[plrRank].RankColor)
1 Like

The “RankColor” is already a Color3 instead

announcement.userRank.TextColor3 = rankModule[plrRank].RankColor
2 Likes

‘RankColor’ is already a ‘Color3’ value, you don’t need to pass it as an argument to the ‘fromRGB’ ‘Color3’ constructor function.

2 Likes

Damn I’m dumb, I don’t understand how I missed that my bad.