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)

7 comments
What do I have to change? Sorry, I'm very confnused.
The 1 on line 9
I tried changing it, it only made the height of the healthbar higher.
Okay wait, is it supposed to be 'Ahealth,0,1' If so it made my healthbar completely invisible
Please review the documentation for fromScale https://developer.roblox.com/en-us/api-reference/datatype/UDim2
I still don't get it.. sorry
Then you have derived this script by modifying scripts you don't understand and I can't help you.