Help with set Color3.new(22440, 65025, 48705)? from script

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

I want to make TextLabel.TextColor3 = Color3.new(color, color, color)

  1. What is the issue? Include screenshots / videos if possible!

the text is random thing color like [a] text color is 22440, 65025, 48705?
and [b] is 5865, 34425, 5865?

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

Main Server script

							local color = btnColor[Category.Name]
							print(color)
							a.text.BillboardGui.TextLabel.TextColor3 = color
							print(a.text.BillboardGui.TextLabel.TextColor3)

88, 255, 191  -  Server - allBtn:55
88, 255, 191  -  Server - allBtn:57
117, 0, 0  -  Server - allBtn:55
117, 0, 0  -  Server - allBtn:57
188, 60, 28  -  Server - allBtn:55
188, 60, 28  -  Server - allBtn:57
 0, 59, 220  -  Server - allBtn:55
 0, 59, 220  -  Server - allBtn:57
153, 153, 153  -  Server - allBtn:55
153, 153, 153  -  Server - allBtn:57
 255, 87, 252  -  Server - allBtn:55
 255, 87, 252  -  Server - allBtn:57
 23, 135, 23  -  Server - allBtn:55
 23, 135, 23  -  Server - allBtn:57
147, 96, 133  -  Server - allBtn:55
147, 96, 133  -  Server - allBtn:57

Module
local module = {
[“a”] = Color3.new(88, 255, 191),
[“b”] = Color3.new(23, 135, 23),
[“c”] = Color3.new(117, 0, 0),
[“d”] = Color3.new(188, 60, 28),
[“e”] = Color3.new(0, 59, 220),
[“f”] = Color3.new(153, 153, 153),
[“g”] = Color3.new(255, 87, 252),
[“h”] = Color3.new(147, 96, 133),
}

return module

Color3.new’s ranges are 0-1 for RGB, Color3.fromRGB’s ranges are 0-255, you seem to be wanting color3.fromRGB (I have no idea what’s going on in the title though, those numbers are nowhere near acceptable color ranges)

1 Like

Ha thx. this is my first time use color from script but:
[“a”] = Color3.fromRGB(88, 255, 191)
fromRGB fix the problem :slight_smile:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.