Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I save the properties of a Color3 properly?

I am trying to save properties of a Color3, but the values always end up being incorrect to the actual color I am getting the properties from. Code for setting the values;

game.ReplicatedStorage:WaitForChild(player.Name).RCR.Value = v.Color.r
game.ReplicatedStorage:WaitForChild(player.Name).RCG.Value = v.Color.g
game.ReplicatedStorage:WaitForChild(player.Name).RCB.Value = v.Color.b

1 comment

0

Look it up

1 answer

Not an expert but method WaitForChild takes a string, even though the name of the player is a string I think it gets confused. Try tostring(player.Name)

I’m on phone so it’s difficult to type but you can still ask me questions anytime.

This discussion is preserved as it was. New answers, comments, and votes are closed.