Hi everyone! I made a simple script where everytime you click with a certain tool the tool’s hp decrease by one (max hp is 100)
So After 10 clicks will be 90, after 50 will be 50 and so on.
Now i made a “recharge” for this tools and made that
When i click (clickdetector) a cyan cube the tool will have again 100hp and the Cyan tonality
Same with red recharge and more
The issue is: i want to make that the color slowly becomes white according to the tool’s hp
So 100hp of red will be really red, 50 like pink and then 0 white
The problem is that i don’t know how to increase the RGB of the color according to tool’s hp because it will change on every color.
Also i’m using a module script with name, RGB and HP stored for every color used