Cant get color3 working correctly with textboxs

For some reason every time I use the function and covert it to color3 it turns the numbers into 255

function updatecolors()
	local green = colorfolder.Color.Folder.Green
	local red = colorfolder.Color.Folder.Red
	local blue = colorfolder.Color.Folder.Blue
	local colorvalue = colorfolder.TextColor
	red = tonumber(red.Text)
	green = tonumber(green.Text)
	blue = tonumber(blue.Text)
	colorvalue.Value =,green,blue)
	colorfolder.Color.TextLabel.TextColor3 = colorvalue.Value

Don’t use instead use Color3.fromRGB():

colorvalue.Value = Color3.fromRGB(red,green,blue)
1 Like

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