local Gui = script.Parent
local Fill = Gui.Health.Frame
local char = script.Parent.Parent.Parent.Character
hum = char.Humanoid
local Player = game.Players.LocalPlayer
repeat wait() until Player.Character
local Character = Player.Character
local Health = hum.Health
local HealthMax = hum.MaxHealth
function updateBarAndText()
	Fill:TweenSize(UDim2.new((Health/HealthMax),0,1,0), Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, .1, true)
end

I was experimenting with tweening to make a health bar but it does not work. I don't see any errors

2 comments

0

Have you tried printing somewhere in the updateBarAndText function, to see if it's firing? There might be a problem later in the script.

0

k