Hi,
I’m trying to make an overhead Healthbar UI for my game, but for some odd reason the TextLabel inside of the BillboardGui disappears at about 24 studs away from the camera.
If it helps, this is how I have my UI set out.
This may be a problem with the scaling because in the BillboardGui I have the “Size” property set to:
{0,100},{1,0}
(I have it set to this so that the X size of the UI is at a constant size in pixels even when you’re far away)
Even then, I tested it with a size set with only ‘Scale’ values and the problem still persisted.
Any help is appreciated
Okay, here you go.
Also I don’t think there is a MaxDistance property in the TextLabel like there is with the BillboardGui but it might be caused by an issue with another property.
Looking at your properties, I’ve actually never seen something like this before. I’ve tested it out myself, having a billboardGUI and have a text label inside of it. I then zoomed away but was still able to see it.
Mind showing the properties window of the BillboardGUI?
I know the scaling property may be weird but it’s necessary for the nametag to keep a consistent size in pixels on the Player’s screen. If you want to know, I changed all sizing including in the TextLabel to scale only (etc {1,0},{1,0}) but the TextLabel still disappears first when moving away from the BillboardGui.
Here’s the model file if you want to tinker around with it. Nametag.rbxm (6.5 KB)
From memory, I think I’ve fixed this already but I’ll check. If I have, I’ll mark your posts as solution since you’ve been the only person who tried to help, so thank you!!
As it turns out, it was, in fact, a cause of the size properties in the BillboardGui.
Old Healthbar Size: {0,100},{1,0}
New Healthbar Size (the change that fixed the problem): {0,100},{0,24}
Thanks for the help! The TextLabel was simply clipping out of the Y bounds of the BillboardGui and disappearing, as the Y scale was not consistent with the X and progressively got smaller when moving away, making less room for the TextLabel.