Advertisement
deathsignature2

LDS

Jan 22nd, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. function onDamage(Part)
  2. f = script.Parent.Owner
  3. if Part.Parent:FindFirstChild("Humanoid") ~= nil and Part.Parent.Name ~= f.Value and Part.Parent:findFirstChild("DS") == nil then
  4. script.Disabled = true
  5. x = script.Parent
  6. x.Anchored = true
  7. x.CanCollide = false
  8. z = x["Mesh"]
  9. z.MeshType = "Sphere"
  10. for i = 1,10 do
  11. z.Scale = z.Scale + Vector3.new(1,1,1)
  12. x.Transparency = x.Transparency - .05
  13. Part.Parent.Humanoid.Health = Part.Parent.Humanoid.Health -.005
  14. wait(0.05)
  15. end
  16.  
  17. end
  18.  
  19.  
  20. if Part.Parent:findFirstChild("DS") ~= nil and Part.Parent.Name ~= f.Value and Part.Parent:FindFirstChild("Humanoid") ~= nil then
  21.  
  22. Part.Parent.Humanoid.Health = Part.Parent.Humanoid.Health + 15
  23. x = math.random(1,5)
  24. if x == 1 then
  25. game:GetService("Chat"):Chat(Part.Parent.Head, "Now i got some ".. script.Parent.Name .." In My Belly" )
  26. end
  27. script.Disabled = true
  28. end
  29.  
  30. end
  31.  
  32.  
  33.  
  34. script.Parent.Touched:connect(onDamage)
  35.  
  36. door = script.Parent
  37.  
  38.  
  39.  
  40. function onDamage(Part)
  41. f = script.Parent.Owner
  42. if Part.Parent:FindFirstChild("Humanoid") ~= nil and Part.Parent.Name ~= f.Value then
  43. script.Disabled = true
  44. door = script.Parent
  45. Part.Parent.Torso.Velocity = door.CFrame.lookVector * 50
  46. for i = 1,10 do
  47. Part.Parent.Humanoid.Health = Part.Parent.Humanoid.Health - 2
  48. script.Parent.Mesh.Scale = script.Parent.Mesh.Scale + Vector3.new(.5,.5,.5)
  49. Part.Parent.Humanoid.Sit = true
  50.  
  51. wait(0.05)
  52. end
  53.  
  54. end
  55. wait(0.025)
  56.  
  57. script.Parent:remove()
  58. end
  59.  
  60.  
  61.  
  62.  
  63.  
  64. script.Parent.Touched:connect(onDamage)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement