How to make it so that the player can chose any RGB color for a tool?

Alright, but so I need to put tonumber()?

You can, or learn how to restrict your text box input to only numbers.

1 Like

Back and yeah, tonumber is probably the easier way to prevent letters from jumbling into your rgb numbers.

1 Like

To account for non-number values, expand from something like this:

Event.OnServerEvent:Connect(function()
	local r = tonumber(frame.RBOX.Text)
	if not r then return end
	local g = tonumber(frame.GBOX.Text)
	if not g then return end
	local b = tonumber(frame.BBOX.Text)
	if not b then return end
	player.Character.Tool.Handle.Color = Color3.fromRGB(r, g, b)
end)
1 Like

Also, why doesn’t it put the color correctly? It only puts G, B values.