Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local pirate = script.Parent.PirateType
- local currentHealth = pirate.Health
- pirate.HealthChanged:Connect(function(health)
- if health<=0 then
- wait(2)
- script.Parent:Destroy()
- end
- currentHealth=health;
- end)
Advertisement
Add Comment
Please, Sign In to add comment