wait(.5) game:GetService("StarterGui"):SetCoreGuiEnabled("Health", false) plr = game.Players.LocalPlayer chr = plr.Character hum = chr.Humanoid sp = script.Parent bar = sp.Bar hbar = bar.Health while wait(.001) do hbar.Size = UDim2.new(hum.Health + 650 - 0, 0, 0, 35) if hum.Health<=20 then hbar.BackgroundColor3=Color3.new(255/255, 0, 0) else hbar.BackgroundColor3=Color3.new(0, 255/255, 0) end end hubar = bar.Hunger
This is my current healthbar script, its really buggy and I have no idea how to fix it, so is there any other way to make a health bar other than the method I used, and if not could you fix this for me?