ScriptBuilderSHEHAB

swordburst online sword skills script (R to preform)

Sep 3rd, 2016
512
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. lr = game.Players.LocalPlayer
  2. ms = plr:GetMouse()
  3.  
  4. ms.KeyDown:connect(function(k)
  5. chr = plr.Character
  6. if (k:lower() == 'r') and chr and (not deb) then
  7. deb = true
  8. hum = chr:FindFirstChild('Humanoid')
  9. if hum then
  10. game.ReplicatedStorage.EffectHandler:InvokeServer("SwordSkill", 3)
  11. wait(3)
  12. end
  13. deb = false
  14. end
  15. end)
  16. plr = game.Players.LocalPlayer
  17. ms = plr:GetMouse()
  18. deb = false
  19.  
  20. ms.KeyDown:connect(function(k)
  21. chr = plr.Character
  22. if (k:lower() == 'f') and chr and (not deb) then
  23. deb = true
  24. hum = chr:FindFirstChild('Humanoid')
  25. if hum then
  26. anim = hum:LoadAnimation(game.ReplicatedStorage.Database.Animations.SwordSkill1)
  27. game.ReplicatedStorage.EffectHandler:InvokeServer("SwordSkill", 3)
  28. anim:Play()
  29. wait(3)
  30. end
  31. deb = false
  32. end
Add Comment
Please, Sign In to add comment