Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = game.Players.LocalPlayer
- local Character = Player.Character or Player.CharacterAdded:Wait()
- local Humanoid = Character:WaitForChild("Humanoid")
- Humanoid.HealthChanged:Connect(function(CurrentHealth)
- script.Parent.Size = UDim2.new(CurrentHealth / Humanoid.MaxHealth, 0, 1, 0)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement