Hasli4

RBLX. PointCount

May 12th, 2025
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. local demonoid = script.Parent.DemonType
  2. local currentHealth = demonoid.Health
  3. demonoid.HealthChanged:Connect(function(health)
  4.     if health <= 0 then
  5.         local exp = game.Workspace.Data.Player.Value.leaderstats.Exp
  6.         exp.Value += 1
  7.         script.Parent:Destroy()
  8.     end
  9. end)
  10.  
Advertisement
Add Comment
Please, Sign In to add comment