4zx16

Kill on Touch

Oct 24th, 2021 (edited)
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.25 KB | None | 0 0
  1. --[[
  2.  || 📜 AUTHOR: @4zx16 || KILL ON TOUCH
  3. ]]
  4. local function onTouched(hit)
  5.     local player = hit.Parent:FindFirstChild("Humanoid")
  6.     if player ~= nil then
  7.         player:TakeDamage(player.MaxHealth)
  8.     end
  9. end
  10. script.Parent.Touched:Connect(onTouched)
Add Comment
Please, Sign In to add comment