Hasli4

RBLX. Destroying

Jan 9th, 2026
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.24 KB | None | 0 0
  1. local pirate = script.Parent.PirateType
  2. local currentHealth = pirate.Health
  3.  
  4. pirate.HealthChanged:Connect(function(health)
  5.     if health<=0 then
  6.         wait(2)
  7.               script.Parent:Destroy()
  8.     end
  9.     currentHealth=health;
  10. end)
Advertisement
Add Comment
Please, Sign In to add comment