Change image transparency depending on humanoid health

So i’m trying to make a imagelabel transparency change depending on humanoid health, it works but it freezes whenever it reaches 0.86 transparency, meaning the image is very much still visible. I tried doing a health check to force the image to be 1 transparency when above 50 health but that didn’t work. Any ideas?

local __BLDSHOOT = __PLRGUI:WaitForChild("BloodScreen")

__TWEEN:Create( __BLDSHOOT, Tweeninfo.new(5), {ImageTransparency = 0.5 + __HUMANOID.Health / __HUMANOID.MaxHealth})

Can you explain what you are trying to do in more detail? Your code will change transparency over five seconds to what ever percent of humanoid health is at that moment. For instance when this code runs and the player is at max health it will over five seconds change to 1.5, if the player dies within those five seconds it will not change to 0.5.

You know how some games have a blood-shot like screen when you’re either low health or “downed”? Then that said blood-shot screen slowly becomes fully transparent as your health increases (along with other details), i’m trying to mimic that detail exactly, but the image just stops at 0.84 transparency.
And i’m trying to make it transparency = 1 when the player reaches just >= 50% HP

Ok, so is your example code running on Humanoid.HealthChanged or some other damage-based event?

No it runs under a remote event that is fired when player is “undowned”. (OnClientEvent)