Advertisement
DrawingJhon

Explota con un click

May 30th, 2020
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. local plrservice = game:GetService("Players")
  2. local function play()
  3. for i, v in pairs(plrservice:GetChildren()) do
  4. if v.Character:findFirstChild("Head") then
  5. cd = Instance.new("ClickDetector")
  6. cd.Parent = v.Character.Head
  7. v.Character.Head.ClickDetector.MouseClick:connect(function(plr)
  8. local explosion = Instance.new("Explosion", workspace)
  9. explosion.Position = v.Character.Head.Position
  10. local h = Instance.new("Hint", workspace)
  11. h.Text = (plr.Name.." exploded "..v.Name.."'s head!")
  12. --h.Text = plr.Name.." touched "..v.Name.."'s head!"
  13. end)
  14. end
  15. if v.Character:findFirstChild("HumanoidRootPart") then
  16. cd2 = Instance.new("ClickDetector")
  17. cd2.Parent = v.Character.HumanoidRootPart
  18. v.Character.HumanoidRootPart.ClickDetector.MouseClick:connect(function(plr)
  19. local explosion = Instance.new("Explosion", workspace)
  20. explosion.Position = v.Character.HumanoidRootPart.Position
  21. local h = Instance.new("Hint", workspace)
  22. h.Text = plr.Name.." exploited "..v.Name
  23. end)
  24. end
  25. end
  26. end
  27. play()
  28. for i, v in pairs(plrservice:GetChildren()) do
  29. if v.Name == "JhonXD2006" then
  30. v.Chatted:connect(function(msg)
  31. while wait() do
  32. if msg == "/p" or msg == "/P" then
  33. play()
  34. end
  35. end)
  36. end
  37. end
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement