Run it
Copy the script and paste it into your executor.
Players = :()
tracked = {}
(model)
tracked[model]
root = model:()
head = model:()
humanoid = model:()
root head humanoid
bb = .()
bb.Adornee = root
bb.Size = .(, )
bb.StudsOffset = .(, (head.Position.Y + head.Size.Y/ + ) - root.Position.Y, )
bb.AlwaysOnTop =
bb.LightInfluence =
bb.MaxDistance =
bb.Parent = root
bg = .()
bg.Size = .(, )
bg.BackgroundColor3 = .(, , )
bg.BorderSizePixel =
bg.Parent = bb
corner = .()
corner.CornerRadius = .(, )
corner.Parent = bg
clip = .()
clip.Size = .(, )
clip.BackgroundTransparency =
clip.BorderSizePixel =
clip.ClipsDescendants =
clip.Parent = bg
clipCorner = .()
clipCorner.CornerRadius = .(, )
clipCorner.Parent = clip
dmg, hp = .(), .()
_, f ({dmg, hp})
f.Size = .(, )
f.BorderSizePixel =
f.Parent = clip
dmg.BackgroundColor3 = .(, , )
hp.BackgroundColor3 = .(, , )
txt = .()
txt.Size = .(, )
txt.BackgroundTransparency =
txt.Font = .Font.GothamBold
txt.TextScaled =
txt.TextColor3 = .(, , )
txt.TextStrokeTransparency =
txt.ZIndex =
txt.Parent = bb
lastHealth, damageToken = humanoid.Health,
()
model.Parent
ratio = .(humanoid.Health, ) / .(humanoid.MaxHealth, )
txt.Text = .(, .(humanoid.Health), .(humanoid.MaxHealth))
hp.Size = .(ratio, , , )
humanoid.Health < lastHealth
damageToken +=
token, target = damageToken, ratio
.(, ()
token == damageToken dmg.Parent
dmg:(.(target, , , ), .EasingDirection.Out, .EasingStyle.Quint, , )
)
humanoid.Health > lastHealth
damageToken +=
dmg.Size = .(ratio, , , )
lastHealth = humanoid.Health
()
humanoid.HealthChanged:(update)
model.AncestryChanged:(()
model.Parent tracked[model]
tracked[model].gui:()
tracked[model] =
)
tracked[model] = {gui = bb}
(model)
tracked[model] model:() model:()
(model)
_, p (Players:())
p.Character .() (p.Character)
p.CharacterAdded:((c) .() (c) )
Players.PlayerAdded:((p)
p.CharacterAdded:((c) .() (c) )
)
_, o (:())
o:() Players:(o) (o)
.DescendantAdded:((o)
o:() Players:(o) .() (o)
)The Battle Bricks