KashTheKingYT

Blood Overlay Script

Oct 8th, 2020 (edited)
4,366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.63 KB | None | 0 0
  1. --[[Hi everyone this is Kash talking,
  2. I have updated the script to a more reliable version.
  3. Please note that the video you have watched is old and outdated.
  4.  
  5. If you need help with any of my scripts please join my discord server:
  6. https://discord.gg/6HYgCk22eD
  7. You can delete this entire comment
  8. --]]
  9.  
  10. --Script
  11. local plr = game.Players.LocalPlayer
  12. local character = plr.Character or plr.CharacterAdded:Wait()
  13. local humanoid = character:WaitForChild("Humanoid")
  14. local bloodOverlay = script.Parent
  15.  
  16. function update(newHealth)
  17.     bloodOverlay.ImageTransparency = newHealth / 100
  18. end)
  19.  
  20. update()
  21.  
  22. humanoid.HealthChanged:Connect(update)
Add Comment
Please, Sign In to add comment