Advertisement
Guest User

epic code by beavebeaver

a guest
Oct 20th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. 1) Insert: Part > ClickDetector & Sound > Script
  2.  
  3. 2) Insert the following in the script:
  4.  
  5. local h = script.Parent
  6. local m = h.Parent.Sound
  7. local w = workspace.Humanoid
  8.  
  9. h.MouseClick:Connect(function(pl)
  10. m:Play()
  11. pl.Character:FindFirstChild("Humanoid"):TakeDamage(pl.Character:FindFirstChild("Humanoid").MaxHealth)
  12. end)
  13.  
  14. --By beavebeaver
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement