brushSettings.ColorBox.FocusLost:Connect(function(U)if U then local U=brushSettings.ColorBox.Text U=string.gsub(U," ","")U=string.split(U,"\044")if tonumber(U[1])and(tonumber(U[2])and tonumber(U[3]))then currentColor=Color3.fromRGB(U[1],U[2],U[3])end brushSettings.ColorBox.Text=math.floor(currentColor.R*255+.5)..("\044 "..(math.floor(currentColor.G*255+.5)..("\044 "..math.floor(currentColor.B*255+.5))))brushSettings.PaintImage.ImageColor3=currentColor end end)

brushSettings.ColorBox.FocusLost:Connect(function(entered)
	
	if entered then
		
		local color = brushSettings.ColorBox.Text
		color = string.gsub(color, " ", "")
		color = string.split(color, ",")
		
		if tonumber(color[1]) and tonumber(color[2]) and tonumber(color[3]) then
			
			currentColor = Color3.fromRGB(color[1], color[2], color[3])
		end
		
		brushSettings.ColorBox.Text = math.floor(currentColor.R * 255 + 0.5) .. ", " .. math.floor(currentColor.G * 255 + 0.5) .. ", " .. math.floor(currentColor.B * 255 + 0.5)

		brushSettings.PaintImage.ImageColor3 = currentColor
	end
end)

