#Health bug
1 messages · Page 1 of 1 (latest)
is totally fine every developer make mistake
Haha right
Man I'm animator I've asked the dev to send it
He's lazy ahh I'm trying to help them
Can you actually teach the dev how can we fix it?
34
The GUI has most likely been incorrectly configured. Health bar scripts calculate the player's health in terms of a percentage to their max health. This is used as a X fill percentage for the bar. Fill percentage (aka. "Scale") works by occupying the parent container's dimensions. If there is no parent container, then the screen dimensions are used
Make sure the dimensions of your health bar are defined by a Frame, and the bar itself is a child of that Frame
Thank you so much i'mma try doing it
** You are now Level 2! **
And will let you know
Hey that worked
Thankyou so much man
Appreciate it
@tender iris if you can help
this is the bug, i made the ui a bit higher so u can see the full issue
Sending a video
67
💀
I thought you had fixed it?
So basically I'm animator and this is the issue faced by dev and when i told the exact thing you told me the dev said say him thanks i think it will fix it etc etc so i said thanks and it worked but it didn't when they actually tried
Their code is non standard then
I'll whip up an example for you
Imma tell them
That would be helpful
@zinc ivy so he's the owner can you explain him
Yeah
@dense nacelle do you think you can help fix the bug manually?
What do you mean?
I can hop in a call with y'all
I cant call at the moment, but I can add you on roblox and discord and we can discuss from there
I cannot do that. Let me know when you can chat in this server
Why cant you do that? Is there a problem?
My Roblox and Discord contacts are personal or business
very well then.
** You are now Level 1! **
I can explain to you the problem, but not on call at the moment
I am free to chat now; you do not need to use a mic yourself
The problem me and my team are facing is that the bars keep bug9ng out of the background as you saw in the video
Seems like a simple configuration and/or scripting problem. All I need to see is a stream
Hm?
What can I clarify?
What are you trying to say
I'm not sure where I could have lost you
The bar keeps bugging out of tmitd background. Is there any solution to that?
Yes. As I said, you most likely have a bad configuration on the GUI and/or a bug in your code
I need you to share your screen with me so I can get a look
Ahh okay
I can get one of my devs to do that
Or do you think I can just record the script and the Ui?
I may need to see things you will have missed on the recording
It's best we do this live. I will instruct the repairs over that call
I dont have the time to call, im busy at the moment. Let me get one of my devs to get on call with you, or they can send a video with the scripts and Ui
Get them to enter this server
Ping them here, and we'll go from there
** You are now Level 2! **
Here
@fleet charm is the Co-Owner
He will get it call w u in abt an hour
Ok
Is there nobody who's free?
This issue should take no more than 5 minutes to fix
He will be free in abt an hour
Yo
Id love to get on call and screenshare but my camera isnt that god
Yo
Camera?
The screenshare thingy
Ay thanks for the help man, I really appreciate it
Ye sure
@dense nacelle when the game release i'd love to give you some exclusive items if thats okay with you
Haha, it's really no effort on my end
Thanks though
No problem man
@fleet charm, an hour from now then?
Let me know
I have a call I need to take soon
Ye I’ll ping
Good to go?
Yes what about you?
How about now?
@zinc ivy?
Yes. You can get my time relative to you through my bio
Are you able to chat now?
Your 1 hour ahead?
Yes I am
Call?
Ohh okay haha
Uhm let me see rq, one moment
One moment
@fleet charm u rdy to show him?
Redo the system since player reach 0 be oof already
@dense nacelle
We did that once, we're not doing it again. We are just simply trying to fix
Ready
Im literally abt to go somewhere
I meant the prompt is incorrect didn't fit like ideas
@dense nacelle u on?
Yes
Yo
** You are now Level 1! **
I’m ready
@zinc ivy, we've solved the problem. Here's what you need to know
-
Your graphics designer did not configure their images correctly. The image should always conform to the dimensions of the container (aka.
ImageLabel). You currently have to upscale a square to get a rectangular image to render in its center. That disturbs the natural ability to create fills that work based on scale. To fix this, you must now useUIGradienttrickery. -
Your code was massively overengineered and poorly written. I simplified its design greatly, taking into account the relevant configuration factors, such as
ResetOnSpawnand character accessibility
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local HealthBar = script.Parent
local HealthGradient = HealthBar:WaitForChild("UIGradient")
local function onHealthChanged(humanoid: Humanoid)
HealthGradient.Offset = Vector2.new(humanoid.Health / humanoid.MaxHealth, 0)
end
local function onCharacterAdded(character: Model)
local humanoid = character:FindFirstChildOfClass("Humanoid") :: Humanoid
humanoid.HealthChanged:Connect(function()
onHealthChanged(humanoid)
end)
end
local character = Player.Character
if character then
onCharacterAdded(character)
else
Player.CharacterAdded:Once(onCharacterAdded)
end
You do not need to develop a separate mobile and PC implementation for your GUIs. Focus on ensuring the GUIs scale naturally with screen resolution
@zinc ivy
Hey thanks man, I really appreciate it
** You are now Level 3! **