Advertisement
HowToRoblox

DamageScript

Oct 28th, 2019
2,869
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.25 KB | None | 0 0
  1. script.Parent.Blade.Touched:Connect(function(Player)
  2.  
  3.     if script.Parent.CanDamage.Value == true then
  4.  
  5.         script.Parent.CanDamage.Value = false
  6.  
  7.         Player.Parent.Humanoid:TakeDamage(20)
  8.        
  9.         wait(1)
  10.        
  11.         script.Parent.CanDamage.Value = true
  12.     end
  13. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement