Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local CanAttack = true
- local Sound = script.Parent:WaitForChild("SwordSwing")
- local trail = script.Parent.Handle.SlashTrail
- script.Parent.Activated:Connect(function()
- local AttackAnim = script.Parent.Parent.Humanoid:LoadAnimation(script.Attack)
- if CanAttack == true then
- AttackAnim:Play()
- trail.Enabled = true
- CanAttack = false
- Sound:Play()
- wait(1)
- AttackAnim:Stop()
- trail.Enabled = false
- CanAttack = true
- script.Parent.CanDamage.Value = true
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement