carlosname

Untitled

Apr 30th, 2020
461
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --=========
  2.  
  3. plr = game.Players.LocalPlayer
  4. char = plr.Character
  5. hum = char.Humanoid
  6. tool = Instance.new("HopperBin", plr.Backpack)
  7. tool.Name = "click explode"
  8.  
  9. tool.Selected:connect(function()
  10. mouse.Button1Down:connect(function()
  11. if tool.Active == true and mouse.Target.Parent:FindFirstChild("Humanoid") or mouse.Target.Parent.Parent:FindFirstChild("Humanoid") or mouse.Target.Parent:FindFirstChild("Torso") or mouse.Target.Parent.Parent:FindFirstChild("HumanoidRootPart")then
  12. local torso = mouse.Target.Parent:FindFirstChild("Torso")
  13. local hrp = torso.Parent:FindFirstChild("HumanoidRootPart")
  14. local thum = torso.Parent:FindFirstChild("Humanoid")
  15. if thum ~= hum then
  16.  
  17. local blast = Instance.new("Sound")
  18. blast.SoundId = "rbxassetid://2302540815" --2686077452
  19. blast.Volume = 4
  20. blast.Parent = hrp
  21.  
  22. local blst = Instance.new("Sound")
  23. blst.SoundId = "rbxassetid://2302540815" --2686077452
  24. blst.Volume = 4
  25. blst.Parent = hrp
  26.  
  27. local humrootpart = torso.Parent:FindFirstChild("HumanoidRootPart")
  28. ep = Instance.new("Explosion", workspace)
  29. plrname = plr.Character.Name
  30. ep.Position = torso.Position
  31. blast:Play()
  32. plr.Parent.Parent.Parent.Workspace[plrname]:BreakJoints()
  33. blst:Play()
  34. wait(1.90)
  35. game.Debris:AddItem(ep, 2)
  36. end
  37. end
  38. end)
  39. end)
Advertisement
Add Comment
Please, Sign In to add comment