Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local larm = script.Parent:FindFirstChild("LeftHand")
- local sword = script.Parent:FindFirstChild("ClassicSword")
- local Attack_Speed = script.Parent.AttackSpeed
- function dmg_hand(hit)
- if hit.Parent ~= nil then
- local hum = hit.Parent:findFirstChild("Humanoid")
- if hum ~= nil then
- hum.Health = hum.Health - 20
- end
- script.Enabled=false
- wait(Attack_Speed.Value)
- script.Enabled=true
- end
- end
- function dmg_sword(hit)
- if hit.Parent ~= nil then
- local hum = hit.Parent:findFirstChild("Humanoid")
- if hum ~= nil then
- hum.Health = hum.Health - 20
- end
- script.Enabled=false
- wait(Attack_Speed.Value)
- script.Enabled=true
- end
- end
- larm.Touched:connect(dmg_hand)
- sword.Touched:connect(dmg_sword)
Advertisement
Add Comment
Please, Sign In to add comment