of     1   

darkhenry
#228423396Monday, December 04, 2017 11:59 AM GMT

so, i'm making a little test with a health bar and i'm trying to make a frame gradually dissapear when the plr's hp is > .90 * maxhealth here's the script for ya if plr.Character.Humanoid.Health < .90 * plr.Character.Humanoid.MaxHealth then for i = 0, 1, 1 do line1.frame001.Transparency = i the problem is, it doesn't GRADUALLY dissapear it instantly dissapears!
darkhenry
#228423437Monday, December 04, 2017 12:02 PM GMT

whoops i meant when the plr's health is < than .90 * maxhealth typo*
darkhenry
#228423487Monday, December 04, 2017 12:05 PM GMT

humpty bumpy
darkhenry
#228423621Monday, December 04, 2017 12:15 PM GMT

bump -_- plz help im desperate for a solution i've tried multiple alternatives
Nucl3arPlays
#228423668Monday, December 04, 2017 12:18 PM GMT

if plr.Character.Humanoid.Health < .90 * plr.Character.Humanoid.MaxHealth then for i=0,100 do line1.frame001.Transparency = i/100 end end Nuclear | Developer
Nucl3arPlays
#228423694Monday, December 04, 2017 12:20 PM GMT

Transparency is in decimals. Nuclear | Developer
Soybeen
#228423739Monday, December 04, 2017 12:23 PM GMT

You have to understand what your for loop is doing for i = 0,1,1 -- start, destination, increment That means it will go from 0 to 1 in 1 step (so, immediately) now as for this... for i = 0,1,1/100 ..this will go from 0 to 1 in 100 steps. If you need to go downward, you can say.. for i = 1,0,-1/100 and this will go from 1 to 0 in 100 steps. You can supplement any number into either the start, the goal, or the increment. Just pay attention to which direction you're going so that the increment may be accordingly positive or negative.
darkhenry
#228423789Monday, December 04, 2017 12:27 PM GMT

oh jeez i never learned for loop for decimals as you now know.. thanks guys and @soybeen # ### # <3

    of     1