Hi, I have been trying to figure out what's causing why it only scales on the X axis, but not both, there are no errors in the output too.
I am trying to make a healthbar that is shaped as a sphere.
Here is the script.
local healthbarr = script.Parent local Player = game:GetService("Players").LocalPlayer local Char = Player.Character or Player.CharacterAdded:Wait() local huma = Char:WaitForChild("Humanoid") local function health() local Ahealth = math.clamp(huma.Health / huma.MaxHealth, 0, 1) healthbarr.Size = UDim2.fromScale(Ahealth, 1) end health() huma:GetPropertyChangedSignal("Health"):Connect(health) huma:GetPropertyChangedSignal("MaxHealth"):Connect(health)
Look on line 9 - You're only scaling Ahealth
on the X axis, with a constant 1
on the Y axis. You should be able to work the rest out.
Try using this amazing plugin called autoscale
https://web.roblox.com/library/1496745047/AutoScale-Lite