local plr = game.Players.LocalPlayer
local pmana = plr.Mana
local Humanoid = plr.Character:WaitForChild("Humanoid")
local health = script.Parent.Health
local healthShade = health.Shade
local mana = script.Parent.Mana
local manaShade = mana.Shade
local maxHealth = Humanoid.MaxHealth
local phealth = Humanoid.Health
wait(2)
function HealthChange()
health.Size = UDim2.new(0,phealth/maxHealth,0,30)
healthShade.Size = UDim2.new(0,phealth/maxHealth,0,2)
end
function ManaChange()
mana.Size = UDim2.new(pmana/100,0,0,30)
manaShade.Size = UDim2.new(pmana/100,0,0,2)
repeat
wait(0.5)
mana.Value = mana.Value + math.random(1,3)
until mana.Value == 100
end
Humanoid.Changed:connect(HealthChange)
pmana.Value.Changed:connect(ManaChange)
When the health changes the bar moves it just doesnt move the right way. Mana does not work at all.

1 comment
http://wiki.roblox.com/index.php?title=API:Class/Humanoid/HealthChanged