This is the code I have currently:
print(script.Color.Value.R) -- SHOULD print 170
Pretty simple, right? The thing is that its printing:
0.6666666865348816
Why is it not printing 170, is there something I am missing?
This is the code I have currently:
print(script.Color.Value.R) -- SHOULD print 170
Pretty simple, right? The thing is that its printing:
0.6666666865348816
Why is it not printing 170, is there something I am missing?
Just multiply by 255 since what you have is a value from 0 to 1(also round the multiplied result if you want an integer)
What you get is the %, by multiplying it by 255 you get:
0.6666666865348816 * 255 = 170
That was a lot easier than what I though, thank you!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.