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
- local exp = game.Workspace.Data.Player.Value.leaderstats.Exp
- exp.Value += 1
- script.Enabled = false
- wait(2)
- script.Enabled = true
- script.Parent:Destroy()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment