Scaling issue with billboardGUI

Hey! So I’m scaling up a character that has 3 billboardGUI’s in it. I’m trying to keep the order and scale compared to the character of the GUI’s while scaling it, but it just won’t work.

This is the hierachy:

The order is meant to be shield (smallest), Size (biggest), name (2nd smallest).

I tried to use this, but somehow the name comes up and passes the size gui:

while wait() do
	for _,v in pairs(script.Parent.HumanoidRootPart.GUI:GetChildren()) do
		if v.Name ~= "WeldConstraint" then
			local hrpSize = script.Parent.HumanoidRootPart.Size
			if v.Name == "size" then
				v.Size = UDim2.fromScale(hrpSize.X, hrpSize.Y-1)
				elseif v.Name == "name" then
					v.Size = UDim2.fromScale(hrpSize.X-1, script.Parent.HumanoidRootPart.GUI.size.Size.Y.Scale-1)
			elseif v.Name == "shield" then
				v.Size = UDim2.fromScale(hrpSize.X-2, script.Parent.HumanoidRootPart.GUI.size.Size.Y.Scale+0.75)
			end
		end
		end
			end

I’m not sure how to fix this, so I’d appreciate any help!

1 Like

do not use humanoidrootpart for overhead guis, use the player’s head.