While making a script that changes a GUI's text to a part's Color3 values using Color.R (3 separate text boxes), I noticed that it divided the number by 255 before displaying the value. I'm not sure why it does this but I also don't know how to fix it. I tried multiplying the value by 255 to get a more accurate value, but the value did not change at all. I'm not quite sure what I'm doing wrong. Here's a snippet of code that is supposed to fix the issue, that doesn't change it at all. The text isn't edited anywhere else inside the script, so I'm not quite sure what to do about it.
GrassRValue.Text = game.Workspace.Grass.Color.R * 255
GrassGValue.Text = game.Workspace.Grass.Color.G * 255
GrassBValue.Text = game.Workspace.Grass.Color.B * 255

3 comments
Are this your full script? Send the entire script to us so we can fix. Make an edit on below your question. Thanks.
Color.R is not a value that can be assigned to in that way
He's not assigning to Color.R