Hey! This might be a little bit confusing but I’m trying to do exactly what title says.
I made an overhead nametag system, which also contains icons (image labels) for different features.
Everything works, tho I just realized that if only, for example 1 icon is visible, it will stay at it’s defaultly set position and look odd, since it could be for example on the far right side instead in the middle.
I have tried figuring out a function that could change the icon’s position depending on how many other icons are visible, though I didn’t really come up with anything.
Example of how the function would work: Due to the icon’s features, player would get displayed 1 icon. A function would check how many other icons are visible, which will lead to 0. Due to that, the icon’s position will get changed to be in the middle of the nametag, not right side.
Showcase of the odd result without using any function: