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
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
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.
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