#Need help on smth (help.)

1 messages · Page 1 of 1 (latest)

clever quail
#

ok so i just thought of this cool little healthbar system where depending on your health, the heart, next to the healthbar will change and look different, but, the other heart decals arent appearing, ive checked if visible is set to true, ive checked if they are all valid, idk what else there is to check...

Ill leave a vid below but any help would be greatly appreciated!!!
https://medal.tv/games/roblox-studio/clips/lqJF573i8YWhseqTf?invite=cr-MSxJOW0sNDE4MzExNDkx&v=55

Watch Heart healthbar help by Dat1Timmay and millions of other Roblox Studio videos on Medal. Tags: #robloxstudio

▶ Play video
#

if you need any more info from me feel free to ping me!

#

ill respond in abt 4hrs, depending on which day tho, if im at school it will be longer

timid oxide
#

Code ?

#

Pls send code so I or someone else can figure out what the problem is

timid oxide
#

Ohhhh I didn't watched the end

timid oxide
clever quail
timid oxide
#

Check if the IDs you have set up in the table actually work

timid oxide
#

If the IsLoaded property of your ImageLabel is true and not false

clever quail
timid oxide
#

Ok wait

#

Do you want to achieve an effect that looks like this or you want to change the image entirely?

clever quail
#

change the image entirely

timid oxide
#

Ok

clever quail
#

i was thinking of having it like more cracked or smth

inner ridgeBOT
#

studio** You are now Level 1! **studio

timid oxide
#

Try to check back the IDs you have set up

#

If you posted the images yourself, you should see them in Toolbox

clever quail
timid oxide
#

Ohh..

#

Can you send the heartImages table?

clever quail
#

gimmie a sec

#

local heartImages = {
Full = "rbxassetid://7123299346",-- this one appears
ThreeQuarters = "rbxassetid://348270612",-- preivous one didnt work so switched it to this
Half = "rbxassetid://8941506195", -- this one appears
OneQuarter = "rbxassetid://1221422609", -- this one should work
Empty = "rbxassetid://11341589967" -- this one works too
}

timid oxide
#
local heartImages = {
    Full = "rbxassetid://7123299346",-- this one appears
    ThreeQuarters = "rbxassetid://348270611",-- preivous one didnt work so switched it to this
    Half = "rbxassetid://8941506186", -- this one appears
    OneQuarter = "rbxassetid://1221422603", -- this one should work
    Empty = "rbxassetid://11341589954" -- this one works too
}
#

Maybe fixed IDs

clever quail
#

alr ill try it

#

omg how

#

wait

#

most of them work

#

wait wha

timid oxide
#

?

clever quail
#

it works the first time when the player joins, after it respawns tho, it dosent work

timid oxide
#

It is bc your ScreenGui has the ResetOnSpawn property ig

clever quail
#

lemme check that out

timid oxide
#

Or because your script is inside of PlayerScripts and it doesn't get new character when you respawn

clever quail
timid oxide
#

Yh it's abt the ScreenGui

clever quail
# timid oxide 👍

yea it probs from the ResetOnSpawn, the system still is a bit clunky tho, when the health changes nothing appears for like a split second then it appears

#

and also

timid oxide
#

That is because you change the Image, that is not really the best solution but it works

clever quail
#

when it takes a lot of damage at once it stays the same

timid oxide
#

Images takes a bit to load

clever quail
inner ridgeBOT
#

studio** You are now Level 2! **studio

clever quail
timid oxide
#

Idk how to fix loading issue, in my case, I use sprite sheet for things like that

clever quail
timid oxide
#

You make a file with multiple images inside like these:

#

Using any good software you find

#

And you upload it to Roblox

clever quail
timid oxide
#

It should be under 1024x1024

#

And you work with the ImageLabel properties

#

There are 2 really cool properties

#

ImageRectSize and ImageRectOffset

clever quail
#

oh yuh i saw that earlier

timid oxide
#

This is what you use to only show a part of an image

clever quail
timid oxide
#

For example:

clever quail
clever quail
timid oxide
#

Yh?

clever quail
# timid oxide Yh?

whenever it takes a lot of damage like 1/5 health left it would still stay the same, do you know why that could be happening?

timid oxide
#

? I don't really understand

#

^ He dumb

clever quail
#

ok

#

so

#

if it takes a lot of damage at once

#

like it stepped on a killbrick that takes like

#

75 health

#

the heart still stays the same

#

srry

timid oxide
#

Idk, does it register that your health is now 25 HP?

clever quail
#

but in the RobloxCoreGui yes

timid oxide
#

Ok, could you send the code as it is rn?

clever quail
timid oxide
#

You are doing something wrong, I have to fix it

inner ridgeBOT
#

studio** You are now Level 12! **studio

clever quail
#

ill sent it gimmie a sec

#

bruh

#

i cant

#

the message limit

#

uh

timid oxide
#

Send it as file

#

It should prompt you

clever quail
#

i can send u a place file

timid oxide
#

Doesnt it prompts you this?

clever quail
clever quail
clever quail
timid oxide
#

Click on "Upload as File"

clever quail
#

yea ill do tht

timid oxide
#

Uh

clever quail
inner ridgeBOT
#

studio** You are now Level 3! **studio

timid oxide
#

Wait a bit

#

Discord doesnt want be to send code

#

Here

#

I just made it clearer

clever quail
timid oxide
#

idk it that's going to fix anything, but atleast, you're not sending the already existing table back

clever quail
#

yea

clever quail
timid oxide
#

np

robust drum
#

do you also need help on that green hp bar ?

clever quail
timid oxide
#

bar should be easier

clever quail
timid oxide
#

it will be, trust me

clever quail
#

ty ty tytytyytytyty sm for ur help