Hi, I was trying to make the health bar but somehow it seems that it is not working. Here is the code. I made a GUI and inside the GUI i inserted ImageLabel . Thank you for reading/helping.
H = script.Parent
P = script.Parent.Parent.Parent.Character.Humanoid
while true do
wait()
if P.Health <=100 then
--Code removed due to problem has been fixed.
end
Pss. Others are like if P.Health <=95,90,85, Etc... Psss. The script does not make the image invisible nor visible. It just show the last animation.

3 comments
whats the problem?
and whats the output?
Whenever i click Play SOLo in studio it says Error loading core script StarterScript