I tried to make it so the color3 value changes to the part's color, However, I just got a bunch of non-color3 values, what do I do
Script:
1 | local colorVal = script.Parent |
2 | local part = script.Parent.Parent.Parent |
3 | local partColor = part.Color |
4 | colorVal = Color 3. fromRGB(partColor) |
5 |
6 | print (colorVal) |
so i f i understand this correctly, you are trying to change colorVal's color to part's color, simple, you just need to assign the color3 value to it, which you didnt do, so here is your new code:
1 | local colorVal = script.Parent |
2 | local part = script.Parent.Parent.Parent |
3 | local partColor = part.Color |
4 | colorVal.Color = Color 3. fromRGB(partColor) |
5 |
6 | print (colorVal.Color) |
since colorVal is script.Parent, it wont print a color3 value, you have to tell it to print the property, color3, from colorVal.\
hope this helps :3