So, im working on a health bar. But if u hit the player continously, the health bar decrease but the white bar decrease after the combo is done (= stop hitting continously) (i tried for 2 days and now i have no idea how to make thisworking correctly) (sorry for my english)
local Bar1 = (RedBar)
local Bar2 = (WhiteBar) --Bar at the back of Bar1
--if you mean something like this then try
Humanoid.HealthChanged:Connect(function(Health)
Bar1.Size = UDim2.new(Health/Humanoid.MaxHealth,0,1,0)
delay(1,function()
Bar2.Size = UDim2.new(Health/Humanoid.MaxHealth,0,1,0)
end)
end)