Its a localScript in a frame, in another frame, and there is a text label that says the percentage, it worked very good before, but now it isn't working, i dont know why because i can't see any errors, what was broken this time? -.-
local P = game:GetService("Players").LocalPlayer
local C = P.CharacterAdded:wait(1)
local H = C:WaitForChild("Humanoid")
H.HealthChanged:connect(function()
script.Parent:TweenSize(UDim2.new(1/(H.MaxHealth/math.floor(H.Health + .5)),0,1,0), Enum.EasingDirection.Out, Enum.EasingStyle.Bounce,1)
script.Parent.Parent.percentage.Text = tostring(math.floor(100/(H.MaxHealth/H.Health)).."%")
end)
thanks for help this new scripter -.-

6 comments
Could you explain what changes you made that caused it to stop working or at least say what it's doing instead of working?
I'm no pro. But if you tried to print out some of the variables, you might be able to see the issue.
BlueGrovyle, i did nothing, it just doesn't work anymore, i think that a roblox update has broken it.. and Tweak, variables isn't the solution for everything
Put a print statment every couple lines to see where it stops printing then you know where the problem is.
smart idea
i finded the error.. it was because the script wasn't finding the humanoid, because i used FindFirstChild instead of WaitForChild