I am trying to create players health using the sliders im testing out now on trigger enter to minus sliders value to 1 what happens is that it seds my value to 0 any idea why it happens ? I think it has something to do with this line but i can’t work it out.
playerHealthSlider.value = Mathf.MoveTowards(playerHealthSlider.value, 100f, 0.15f);
Solved.