Advertisement
deathsignature2

LDS1

Jan 22nd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 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 then
  4. script.Disabled = true
  5. door = script.Parent
  6. Part.Parent.Torso.Velocity = door.CFrame.lookVector * 50
  7. for i = 1,10 do
  8. Part.Parent.Humanoid.Health = Part.Parent.Humanoid.Health - 2
  9. script.Parent.Mesh.Scale = script.Parent.Mesh.Scale + Vector3.new(.5,.5,.5)
  10. Part.Parent.Humanoid.Sit = true
  11.  
  12. wait(0.05)
  13. end
  14.  
  15. end
  16. wait(0.025)
  17.  
  18. script.Parent:remove()
  19. end
  20.  
  21.  
  22.  
  23.  
  24.  
  25. script.Parent.Touched:connect(onDamage)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement