This is what happen : https://gyazo.com/7f180e8bbf4292fe45c5b0e224004713
This is what i want : https://gyazo.com/05b00d442fc7d700e81b2d4e27c9e5b2
I need to change size only frame but when i change it it change health size too how to do that?
This is what happen : https://gyazo.com/7f180e8bbf4292fe45c5b0e224004713
This is what i want : https://gyazo.com/05b00d442fc7d700e81b2d4e27c9e5b2
I need to change size only frame but when i change it it change health size too how to do that?
I’m sorry I don’t understand your question/problem. Would you be able to provide more information?
To calculate the size of the health bar you can just do:
Bar.Size = UDim2.new(Health/100, 0, 1, 0)
in the video you will see in my video when I change the size it shrinks in green too. But what I want is to gradually cut off the green like in the second video.
yes, i know that but that is not my question
Ok. You probably could use ClipsDescendants or something like that.
yes i used that but when i change the frame size(parent of healthbar) it change the healthbar size too idk how to make the healthbar size did not change according to the frame.
Or you could maybe mess around the gradient as well, to change/fade out using a localScript. I’ve got to be honest I’m not one hundred percent sure what you mean/talking about.
https://gyazo.com/f01468748ab45006a6dd0174fb2a95dd
this maybe help you understand when i decrease frame size it decrease healthbar size too
this is what i want
https://gyazo.com/c925364b624fe8a64223a4550fc7a325
(but this i use offset not scale so it will not equal in other resolution)
I now understand what you mean. To stop the healthbar from decreasing size, you can remove the healthbar from it’s parent, which would stop it from decreasing.
so if remove it from parent how to reduce the size with the image does not reduce accordingly or it cant in roblox?