I want to make a minecraft type UI, I get the images from toolbox. However, I am not able to make the image become invisible with the change of health. There are no errors shown in the output but the script is just not working.
Just do humanoid, dont get the actual health value since it just saves it as the variable and does change it.
,so instead of Health = game.Players.LocalPlayer.Character.Humanoid.Health do game.Players.LocalPlayer.Character.Humanoid
Also dont use while true do that sucks, Use Humanoid.HealthChanged event
you should actually look at your code before running because the health value is no longer the health itself and is the humanoid
uhm if you havent realized the script will define Health as a old variable (it’ll stay at 100 by default)
TO fix this, you would maybe try doing if Humanoid.Health <= 100 then – statement etc
that statement would actually get the current health
also just realized while im typing, this post is from 2023
I mean this post was from an entire year ago and I doubt he’s gonna reply