How can I turn a string into a Color3 value? The string is "255,50,52" and if I have that as variable c then Color3.fromRGB(c) says Color3 expected, got string. If I do tonumber(c) it gets nil.
local c = "255,50,52"
local color = Color3.fromRGB(c)
-- Output = "Color3 expected, got string"
,
local c = "255,50,52"
local color = Color3.fromRGB(tonumber(c))
-- Output = "Color3 expected, got nil"

2 comments
%d+, %d+, %d+
not sure why you want to do that when you can just seperate your 3 values into 3 different arguments like Color3.fromRGB(255, 50, 52)