avivavivb

t

Jan 26th, 2018
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. me = script.Parent.Parent
  2.  
  3. Owner = script.Parent.ththth00
  4.  
  5. function CreateTag(Attacker, VictimHumanoid)
  6. for i, v in pairs(VictimHumanoid:GetChildren()) do
  7. if v.Name == "creator" then
  8. v:Remove()
  9. end
  10. end
  11. Tag = Instance.new("ObjectValue")
  12. Tag.Parent = VictimHumanoid
  13. Tag.Name = "creator"
  14. Tag.Value = Attacker
  15. end
  16.  
  17. function bleh(hit)
  18. humanoid = hit.Parent:findFirstChild("Humanoid")
  19. if humanoid ~= nil then
  20. if humanoid.Parent ~= me then
  21. Ex = Instance.new("Explosion")
  22. Ex.Parent = Workspace
  23. Ex.BlastRadius = 8
  24. Ex.Position = hit.Parent.Torso.Position
  25. Ex.BlastPressure = 0
  26. hit.Parent.Torso.CFrame = hit.Parent.Torso.CFrame * CFrame.new(math.random(-5, 5), 0, math.random(-5, 5)) * CFrame.Angles(0, math.random(-3, 3), 0)
  27. humanoid.Sit = true
  28. humanoid.Health = humanoid.Health - 30
  29. CreateTag(Owner.Value, humanoid)
  30. end
  31. end
  32. end
  33. script.Parent.Touched:connect(bleh)
Add Comment
Please, Sign In to add comment