UI Changing to colors BEYOND RGB?

So I’m creating a gui and I’m setting the colors in a script.
It’s setting the values to either white, or 20k above RGB Standards. Heres my code, and what I’ve found in the properties upon entering the game.

(modified from my actual script) CODE:

local config = {
['UIColor'] = 'green' -- There are 4 colors! 'Pink', 'Green' (Default), 'Blue', and 'Red'
}

if config.UIColor:lower() == 'green' then
	script.Parent.ErrorMessages.FinalSend.Frame.SendButton.BackgroundColor3 = Color3.new(95, 185, 102)
end

It sets it to this…?

Never experienced this before, nor am I sure if I’m doing something wrong? Thanks!

It even sets it to WHITE instead of the shown BLACK?

1 Like

Colors in Roblox may appear to be 0-255, but Roblox’s Color3 value actually uses colors between 0 and 1 in scripts. It is a bit annoying for new users, but is pretty easy to resolve by dividing the numbers by 255.

Color3.new(95/255,185/255,102/255)

Actually, its better to do

Color3.fromRGB(95, 185, 102)
9 Likes

Let me try this, but it seems to change the color for everything else I’m changing it, just not the well… ONE send button.

Oops, this was all my mistake, haha. I did .new instead of .fromRGB (all of my script was fromRGB and that one line was .new xD) Thank you for your help everyone! :slight_smile:

1 Like