hasoco
(Kenpachi Zaraki)
January 15, 2023, 11:59pm
#1
So, I tried making a Health Bar for my game but it seems that the Frame becomes way too huge.
Here’s the portion of the script I’m having trouble with:
humanoid.HealthChanged:Connect(function()
healthbar.Size = UDim2.new(humanoid.Health/humanoid.MaxHealth,0,1,0)
end)
Any help is appreciated!
1 Like
4667hp
(Account Info)
January 16, 2023, 12:09am
#2
How is your ui set-up?
I just tested the code, and it worked fine. for me
hasoco
(Kenpachi Zaraki)
January 16, 2023, 12:13am
#3
Here’s a screenshot of how the GUI looks:
4667hp
(Account Info)
January 16, 2023, 12:15am
#4
What does it look like then the frame becomes way too huge?
Are you resizing the frame or the text label?
4667hp
(Account Info)
January 16, 2023, 12:18am
#6
I think the ‘HealthBar’ frame needs to be inside a frame to size right.
Here is how I set it up
system
(system)
Closed
January 30, 2023, 12:18am
#7
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.