Advertisement
BINO2002

Untitled

Feb 18th, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. function MakeBlood()
  2.  
  3. local blood = Instance.new("Part")
  4. blood.formFactor = "Plate"
  5. blood.Size = Vector3.new(1,0.4,1)
  6. blood.Name = "Blood"
  7. blood.Reflectance = 0.2
  8. blood.Transparency = 0.1
  9. blood.BrickColor = BrickColor.new("Really red")
  10. blood.Locked = true
  11. blood.BackSurface = "Smooth"
  12. blood.TopSurface = "Smooth"
  13.  
  14. local CC = math.random(1,2)
  15.  
  16. if CC == 1 then
  17.  
  18. blood.CanCollide = true
  19.  
  20. elseif CC == 2 then
  21.  
  22. blood.CanCollide = false
  23.  
  24. end
  25.  
  26. blood.Position = script.Parent.Torso.Position
  27. blood.Parent = script.Parent
  28.  
  29. end
  30.  
  31. humanoid = script.Parent.Humanoid
  32. lhh = humanoid.Health
  33.  
  34. while true do
  35.  
  36. if humanoid.Health < lhh then
  37.  
  38. howmuch = math.random(7,20)
  39. lhh = humanoid.Health
  40.  
  41. for i = 1 , howmuch do
  42.  
  43. MakeBlood()
  44.  
  45. end
  46.  
  47. end
  48.  
  49. wait(0.1)
  50. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement