Run it
Copy the script and paste it into your executor.
Players = :()
player = Players.LocalPlayer
animations = {
climb = ,
fall = ,
idle1 = ,
idle2 = ,
jump = ,
run = ,
walk = ,
swim = ,
swimIdle =
}
(animate)
animate.climb.ClimbAnim.AnimationId = animations.climb
animate.fall.FallAnim.AnimationId = animations.fall
animate.idle.Animation1.AnimationId = animations.idle1
animate.idle.Animation2.AnimationId = animations.idle2
animate.jump.JumpAnim.AnimationId = animations.jump
animate.run.RunAnim.AnimationId = animations.run
animate.walk.WalkAnim.AnimationId = animations.walk
animate.swim.Swim.AnimationId = animations.swim
animate.swimidle.SwimIdle.AnimationId = animations.swimIdle
(character)
humanoid = character:()
humanoid.RigType == .HumanoidRigType.R6
animate = character:()
.()
i = ,
(animate)
.()
player.Character
.(()
(player.Character)
)
player.CharacterAdded:((character)
.(()
(character)
)
)
Debris = :()
damageGui = .()
damageGui.Name =
damageGui.ResetOnSpawn =
damageGui.IgnoreGuiInset =
damageGui.Parent = player:()
damageOverlay = .()
damageOverlay.Size = .(,,,)
damageOverlay.Position = .(,,,)
damageOverlay.BackgroundColor3 = .(,,)
damageOverlay.BackgroundTransparency =
damageOverlay.BorderSizePixel =
damageOverlay.Parent = damageGui
(character)
humanoid = character:()
damageOverlay.BackgroundTransparency =
humanoid.Died:(()
sound = .()
sound.SoundId =
sound.Volume =
sound.Parent = .CurrentCamera
sound:()
Debris:(sound, )
damageOverlay.BackgroundTransparency =
)
player.Character
(player.Character)
player.CharacterAdded:(setup)
StarterGui = :()
TweenService = :()
.(()
success =
success
ok = (()
StarterGui:(.CoreGuiType.Health, )
)
ok success = .()
)
YELLOW_COLOR = .(, , )
CRITICAL_RED = .(, , )
GLOW_FLASH_COLOR = .(, , )
BG_DEFAULT_COLOR = .(, , )
BG_FLASH_COLOR = .(, , )
BG_CRITICAL_COLOR = .(, , )
player = Players.LocalPlayer
pGui = player:()
screenGui = pGui:() .()
screenGui.Name =
screenGui.ResetOnSpawn =
screenGui.Parent = pGui
bgFrame = screenGui:() .()
bgFrame.Name =
bgFrame.Size = .(, , , )
bgFrame.Position = .(, , , -)
bgFrame.BackgroundColor3 = BG_DEFAULT_COLOR
bgFrame.BackgroundTransparency =
bgFrame.BorderSizePixel =
bgFrame.Parent = screenGui
oldCorner = bgFrame:()
oldCorner
oldCorner:()
healthLabel = bgFrame:() .()
healthLabel.Name =
healthLabel.Size = .(, , , )
healthLabel.Position = .(, , , )
healthLabel.BackgroundTransparency =
healthLabel.Text =
healthLabel.TextColor3 = YELLOW_COLOR
healthLabel.Font = .Font.SourceSansBold
healthLabel.TextSize =
healthLabel.TextXAlignment = .TextXAlignment.Left
healthLabel.Parent = bgFrame
numberLabel = bgFrame:() .()
numberLabel.Name =
numberLabel.Size = .(, , , )
numberLabel.Position = .(, -, , -)
numberLabel.BackgroundTransparency =
numberLabel.Text =
numberLabel.TextColor3 = YELLOW_COLOR
numberLabel.Font = .Font.SourceSans
numberLabel.TextSize =
numberLabel.TextXAlignment = .TextXAlignment.Right
numberLabel.TextStrokeColor3 = GLOW_FLASH_COLOR
numberLabel.TextStrokeTransparency =
numberLabel.Parent = bgFrame
previousHealth =
activeTextTween =
activeBgTween =
activeGlowTween =
stateChangeTweens = {}
currentHUDState =
healthConnections = {}
()
_, connection (healthConnections)
connection connection:()
.(healthConnections)
()
_, tween (stateChangeTweens)
tween tween:()
.(stateChangeTweens)
(isCritical)
activeTextTween activeTextTween:()
activeBgTween activeBgTween:()
activeGlowTween activeGlowTween:()
numberLabel.TextTransparency =
numberLabel.TextStrokeColor3 = isCritical CRITICAL_RED GLOW_FLASH_COLOR
numberLabel.TextStrokeTransparency =
bgFrame.BackgroundColor3 = BG_FLASH_COLOR
bgFrame.BackgroundTransparency =
tweenInfo = TweenInfo.(, .EasingStyle.Quad, .EasingDirection.Out)
targetBgColor = isCritical BG_CRITICAL_COLOR BG_DEFAULT_COLOR
activeTextTween = TweenService:(numberLabel, tweenInfo, {TextTransparency = })
activeGlowTween = TweenService:(numberLabel, tweenInfo, {TextStrokeTransparency = })
activeBgTween = TweenService:(bgFrame, tweenInfo, {
BackgroundColor3 = targetBgColor,
BackgroundTransparency =
})
activeTextTween:()
activeGlowTween:()
activeBgTween:()
(targetState)
currentHUDState == targetState
currentHUDState = targetState
()
blendInfo = TweenInfo.(, .EasingStyle.Sine, .EasingDirection.Out)
targetState ==
stateChangeTweens.Text = TweenService:(numberLabel, blendInfo, {TextColor3 = CRITICAL_RED})
stateChangeTweens.Label = TweenService:(healthLabel, blendInfo, {TextColor3 = CRITICAL_RED})
stateChangeTweens.Bg = TweenService:(bgFrame, blendInfo, {
BackgroundColor3 = BG_CRITICAL_COLOR,
BackgroundTransparency =
})
stateChangeTweens.Text = TweenService:(numberLabel, blendInfo, {TextColor3 = YELLOW_COLOR})
stateChangeTweens.Label = TweenService:(healthLabel, blendInfo, {TextColor3 = YELLOW_COLOR})
stateChangeTweens.Bg = TweenService:(bgFrame, blendInfo, {
BackgroundColor3 = BG_DEFAULT_COLOR,
BackgroundTransparency =
})
_, tween (stateChangeTweens)
tween:()
(character)
()
humanoid = character:(, )
humanoid
()
activeTextTween activeTextTween:()
activeBgTween activeBgTween:()
activeGlowTween activeGlowTween:()
previousHealth = humanoid.Health
currentHUDState =
()
hp = .(, .(humanoid.Health))
numberLabel.Text = (hp)
isLowHp = (hp <= )
hp < previousHealth
(isLowHp)
isLowHp
()
()
previousHealth = hp
()
.(healthConnections, humanoid.HealthChanged:(updateDisplay))
.(healthConnections, humanoid.Died:(()
()
numberLabel.Text =
()
()
))
player.Character
.(watchPlayerHealth, player.Character)
player.CharacterAdded:(watchPlayerHealth)Gmod kinda thing -Comment me if you wanna add something if i ddint know EVERYTHING ABOUT GMOD