Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is there any way to fix the delay in this simple health bar?

Asked by 8 years ago

Can someone tell me if there is anyway I can fix the delay in this simple health bar? I know I could use Size instead of TweenSize but I like the Animation from TweenSize.

wait(0.5)
local player = game:GetService("Players").LocalPlayer
local char = player.Character
local color = script.Parent.Bar.ColorF

while wait(1/500) do
    color:TweenSize(UDim2.new(0,3*char.Humanoid.Health,1,0),"Out","Quad",0.35)
end
0
What delay are you talking about? The tween delay (0.35) ? TheDeadlyPanther 2460 — 8y
0
If their health is changed a-lot, like remove 1 health every 0.1 seconds for 30 times, the bar is delayed. ISellCows 2 — 8y

Answer this question