Advertisement
Guest User

Vampire Script

a guest
Mar 23rd, 2019
5,186
-1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.06 KB | None | 0 1
  1. local function makevampire(human,dmg)
  2. if(human.Health <= dmg)then
  3. human.Parent.Head:FindFirstChildOfClass("Decal").Texture = "http://www.roblox.com/asset/?id=171384974"
  4. if(human.Parent:FindFirstChildOfClass("BodyColors"))then
  5. human.Parent:FindFirstChildOfClass("BodyColors"):remove()
  6. end
  7. local s = Instance.new("Sound")
  8. s.Parent = human.Parent.Head
  9. s.Name = "Mario"
  10. s.SoundId = "http://www.roblox.com/asset/?id=1973317014"
  11. s:Play()
  12. --human.WalkSpeed = 25
  13. human.Parent:FindFirstChildOfClass("BodyColors")
  14. local r = Instance.new("Accoutrement")
  15. r.Parent = human.Parent
  16. r.Name = "IsVampire"
  17. local s = human.Parent:GetChildren()
  18. for i = 1,#s do
  19. if(s[i].ClassName == "Part")then
  20. s[i].Color = Color3.new(0,0,0)
  21. s[i].Anchored = true
  22. wait(0.7)
  23. s[i].Anchored = false
  24. s[i].Touched:connect(function(hit)
  25. if(hit.Parent:FindFirstChild("Humanoid")) and not (hit.Parent:FindFirstChild("IsVampire"))then
  26. makevampire(hit.Parent.Humanoid,dmg)
  27. end
  28. end)
  29. end
  30. end
  31. human.Parent.Head:FindFirstChildOfClass("Decal").Texture = "http://www.roblox.com/asset/?id=127959433"
  32. if(game.Players:GetPlayerFromCharacter(human.Parent))then
  33. game.Players:GetPlayerFromCharacter(human.Parent).TeamColor = BrickColor.new("Dark stone grey")
  34. end
  35. else
  36. local r = Instance.new("Accoutrement")
  37. r.Parent = human.Parent
  38. r.Name = "IsVampire"
  39. human.Parent.Torso.Anchored = true
  40. human:TakeDamage(dmg)
  41. if(human.Parent.Head:FindFirstChild("MarioOof"))then
  42. human.Parent.Head.MarioOof:Play()
  43. else
  44. local s = Instance.new("Sound")
  45. s.Parent = human.Parent.Head
  46. s.Name = "MarioOof"
  47. s.SoundId = "http://www.roblox.com/asset/?id=2815207981"
  48. s:Play()
  49. end
  50. wait(0.5)
  51. human.Parent.Torso.Anchored = false
  52. wait(1)
  53. r:remove()
  54. end
  55. end
  56.  
  57.  
  58. local r = Instance.new("Accoutrement")
  59. r.Parent = game.Workspace.magic277
  60. r.Name = "IsVampire"
  61. local s = game.Workspace.magic277:GetChildren()
  62. for i = 1, #s do
  63. if(s[i].ClassName == "Part")then
  64. s[i].Touched:connect(function(hit)
  65. if(hit.Parent:FindFirstChild("Humanoid")) and not (hit.Parent:FindFirstChild("IsVampire"))then
  66. makevampire(hit.Parent.Humanoid,40)
  67. end
  68. end)
  69. end
  70. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement