Advertisement
Elvisfofo_rblx

Instant kill script melee

Jun 22nd, 2025
10
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. -- Instant Kill for Melee Weapons (Executor Script)
  2. local Players = game:GetService("Players")
  3. local LocalPlayer = Players.LocalPlayer
  4.  
  5. -- Wait for tool to be equipped
  6. LocalPlayer.CharacterAdded:Connect(function(char)
  7. char.ChildAdded:Connect(function(child)
  8. if child:IsA("Tool") and child:FindFirstChild("Handle") then
  9. local handle = child:FindFirstChild("Handle")
  10.  
  11. handle.Touched:Connect(function(hit)
  12. local targetChar = hit:FindFirstAncestorOfClass("Model")
  13. if targetChar and targetChar:FindFirstChild("Humanoid") and targetChar ~= LocalPlayer.Character then
  14. targetChar:FindFirstChild("Humanoid").Health = 0
  15. end
  16. end)
  17. end
  18. end)
  19. end)
  20.  
  21. -- Also apply to currently held tool
  22. if LocalPlayer.Character then
  23. for _, tool in pairs(LocalPlayer.Character:GetChildren()) do
  24. if tool:IsA("Tool") and tool:FindFirstChild("Handle") then
  25. local handle = tool:FindFirstChild("Handle")
  26.  
  27. handle.Touched:Connect(function(hit)
  28. local targetChar = hit:FindFirstAncestorOfClass("Model")
  29. if targetChar and targetChar:FindFirstChild("Humanoid") and targetChar ~= LocalPlayer.Character then
  30. targetChar:FindFirstChild("Humanoid").Health = 0
  31. end
  32. end)
  33. end
  34. end
  35. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement