Advertisement
SimTek

Damage

Mar 22nd, 2024
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. local head = script.Parent.Head
  2.  
  3. head.Touched:Connect(function(otherPart)
  4. local hum = otherPart.Parent:FindFirstChild("Humanoid")
  5. if hum then
  6. local fire = Instance.new("Fire", otherPart)
  7. fire.Size = 10
  8. for i=1, 10, 1 do
  9. wait(.5)
  10. fire.Size *= .1
  11. hum:TakeDamage(20)
  12. end
  13. fire:Destroy()
  14. end
  15. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement