#Recently I have been trying to make a boss HP GUI that changes size based on HP
28 messages · Page 1 of 1 (latest)
Uh not really i was looking forward to seeing a example that will work
I am currently trying to make it work
okay
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
Dont use Humanoid:GetPropertyChangedSignal() ive been personally having issues, instead use Humanoid.Changed:Connect(function(PROPERTY_NAME) end)
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
And, very important, make sure to check if PROPERTY_NAME == "Health"
This script generated error with assigning something
** You are now Level 1! **
I don't remember what exactly
ye alr
Got it working?