Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I save the properties of a Color3 properly?

Asked by
1GlF 42
5 years ago
Edited 5 years ago

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
0
Look it up hiimgoodpack 2009 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

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.

Ad

Answer this question