Advertisement
Team_Alex

Untitled

Mar 20th, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. --[[ By: Brutez. ]]--
  2. local EvilBoxScript=script;
  3. repeat Wait(0);until script and script.Parent and script.Parent.ClassName=="Part";
  4. local EvilBox=EvilBoxScript.Parent;
  5. local TouchDebounce=false;
  6. if EvilBoxScript and EvilBox and EvilBox:FindFirstChild("Thumbnail")then
  7. EvilBox:FindFirstChild("Thumbnail"):Destroy();
  8. end;
  9. if EvilBoxScript and EvilBox and EvilBox:FindFirstChild("EvilBoxCollide")then
  10. EvilBox.Touched:connect(function(TargetPart)
  11. if EvilBoxScript and EvilBox and EvilBox:FindFirstChild("EvilBoxCollide")and not TouchDebounce and TargetPart and TargetPart.ClassName=="Part"and TargetPart.Parent and TargetPart.Parent.ClassName=="Model"and TargetPart.Parent:FindFirstChild("Head")and TargetPart.Parent:FindFirstChild("Torso")then
  12. local Foundhumanoid;
  13. if TargetPart and TargetPart.ClassName=="Part"and TargetPart.Parent and TargetPart.Parent.ClassName=="Model"and TargetPart.Parent:FindFirstChild("Head")and TargetPart.Parent:FindFirstChild("Torso")then
  14. for _,Child in pairs(TargetPart.Parent:GetChildren())do
  15. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  16. Foundhumanoid=Child;
  17. end
  18. end
  19. end
  20. if TargetPart and TargetPart.ClassName=="Part"and TargetPart.Parent and TargetPart.Parent.ClassName=="Model"and TargetPart.Parent:FindFirstChild("Head")and TargetPart.Parent:FindFirstChild("Torso")and Foundhumanoid and Foundhumanoid.Health~=0 then
  21. TouchDebounce=true;
  22. EvilBox.Velocity=Vector3.new(math.random(-20,20),30,math.random(-20,20));
  23. EvilBox:FindFirstChild("EvilBoxCollide").Pitch=0.8+math.random()*0.5;
  24. EvilBox:FindFirstChild("EvilBoxCollide"):Play();
  25. Wait(0.2);
  26. TouchDebounce=false;
  27. end;
  28. end;
  29. end);
  30. end;
  31. while Wait(0)do
  32. if EvilBoxScript and EvilBox and EvilBox:FindFirstChild("EvilBoxMain")and not EvilBox:FindFirstChild("EvilBoxMain").IsPlaying then
  33. EvilBox:FindFirstChild("EvilBoxMain"):Play();
  34. end;
  35. end;
  36. --[[ By: Brutez. ]]--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement