Hey guys, I've been working on transitioning 1 color to another smoothly when it's going through all of it's phases and I have run across an issue where I need the string that I stored in the dictionary to convert back into a userdata value. It's easy to convert a userdata value to a string however, I am not sure how to do the opposite of that.
Color module script that contains the whole dictionary and returns a BrickColor in it's color3 value as a string can be found here.
Transitioning module script can be found here.
Local script that calls both modules can be found here.
The local script will print 'nil' if I ask it to print color1.Color.r
because it's not a userdata value, it's a String. I was wondering how I can covert color1
and color2
to userdata values so I can perform arithmetic on them and, I've tried to do tonumber()
on it but, it forms an entirely different number that will not help me with my transition.
~~ KingLoneCat