Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1) Insert: Part > ClickDetector & Sound > Script
- 2) Insert the following in the script:
- local h = script.Parent
- local m = h.Parent.Sound
- local w = workspace.Humanoid
- h.MouseClick:Connect(function(pl)
- m:Play()
- pl.Character:FindFirstChild("Humanoid"):TakeDamage(pl.Character:FindFirstChild("Humanoid").MaxHealth)
- end)
- --By beavebeaver
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement