Hair being forced to white

Kind of hard to explain, but basically the game that im currently working on saves the color of your hair and other traits about your character’s appearance, but i’ve recently ran into a problem that literally makes no sense in the slightest, while playtesting in studio hair appears normal, black, brown, yellow, you name it, BUT when i join ingame, it will always be white, no matter what i do

Code
local Splitted1 = string.split(SaveFile.CharacterRelated.HairColor.Value, ",")

local Splitted2 = string.split(SaveFile.CharacterRelated.SkinColor.Value, ",")

local Hair = CharacterStuff.Hair[SaveFile.CharacterRelated.Hair.Value]:Clone()

Hair.Name = "Hair"

Hair.Parent = Char

Hair.Handle.Color = Color3.new(Splitted1[1], Splitted1[2], Splitted1[3])

i dont think i need to provide screenshots since its a pretty self explanatory problem, if someone knows what is happening and can provide a fix, let me know.

Are you making sure the Splitted 1-3 values are Color3 values and not RGB values? If not you can change Color3.new to Color3.fromRGB to use RGB Values. I’m assuming you know the difference, if not read the Constructors section in this! Color3 | Roblox Creator Documentation

i already tried using color3.fromrgb, didnt work, same result

Have you tried running tests and printing the Splitted Values and making sure it’s grabbing the correct values

of course i have, it shows the splitted values as normal, i even tried setting it to a brickcolor instead of a color value and it always turns the hair white

Can you send a screenshot of what print(Splitted1[1], Splitted1[2], Splitted1[3]) would look like

image
and as i’ve said before, they work fine on studio, they dont work fine ingame

Very confusing. Did you check the game console for errors? Something else in your code might be throwing an error only outside of studio, breaking you code there.

it never throws errors, even when i simply dont set a color at all, and manually make the hat’s color something else, it will default itself to white

Perhaps try

Color3.new(tonumber(Splitted1[1]), tonumber(Splitted1[2]), tonumber(Splitted1[3]))

as i’ve said like 3 times already, it does not work ingame, it only works in studio, and even when i try to change the color of said hat it will default itself to white

Yeah I know I can see that was just seeing if any other way would work

this seems to be happening to every single hat, i dont know why (the hat that “basechar” has is supposed to be red)
image

UPDATE: This seems to be a problem with accesories themselves, it started happening on other games too.