#Recently I have been trying to make a boss HP GUI that changes size based on HP

28 messages · Page 1 of 1 (latest)

toxic solar
#

is there a problem or??

stone leaf
#

I am currently trying to make it work

toxic solar
#

okay

stone leaf
#

Soo uhh ill tell u when im done

#

And i will just test it..

#

Yup uhh doesnt work

#

local player = game.Workspace.BOSS
local Character = player.BOSS1
local Humanoid = Character:WaitForChild("Humanoid")

Humanoid:GetPropertyChangedSignal("Health"):Connect(function()
script.Parent:TweenSize(UDim2.new(Humanoid.Health / 100, 0, 1 ,0), Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, 0,15, true)
end)
i tried doing this

toxic solar
#

Also you cant use 0,15 to get a decimal, use 0.15

#

And generally instead of doing /100, just do /Humanoid.MaxHealth in the tween

#

Makes it more flexible

toxic solar
stone leaf
turbid kernelBOT
#

studio** You are now Level 1! **studio

stone leaf
#

I don't remember what exactly

stone leaf
#

ye alr

toxic solar
#

Gl, any issues hit me up

#

Gtg

stone leaf
#

Alr

#

Cya

toxic solar
stone leaf
#

Uhh almost

#

Wait nvm

#

the time i wrote

#

my fix made it not expand anymore

#

okay so it worked