I made a health bar for a base (it hovers above the center of it) that scales when you zoom out. Everything works fine except when you zoom in enough, the health bar gets very large and covers up the sky. I couldn't find the property for a max size limit so I tried changing it through a script. Here's my code:
function config()
local healthbar = script.Parent
healthbar.DistanceLowerLimit = 500
end
config()
I attempted to use DistanceLowerLimit to set a max size when you zoom in close enough, but I probably used it wrong as it isn't working.
Here's the documentation for it: https://developer.roblox.com/en-us/api-reference/property/BillboardGui/DistanceLowerLimit
Please tell me how to use it properly (or if I should use a different approach). I would really appreciate any help since I just started learning Lua and Roblox Studio :)

3 comments
Also can someone please help me with this? https://scriptinghelpers.org/questions/115188/bullets-are-not-going-through-objects-without-collisions
I believe you just need to use DistanceUpperLimit instead of DistanceLowerLimit.
It's not working ... still no effect.