Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. --Credits OOGABOOGA#1023 dm if you need help or want to add spells and have confusion on how to
  2. --Hotkey M makes it so there is no precast spell and you can type manually
  3. bomb = "Bombarda" --Hotkey is f
  4. stone = "Duro" --Hotkey is g
  5. heal = "Vulnera Sanentur" --Hotkey is h
  6. no = "Expelliarmus" --Hotkey is j
  7. teleport = "Appa" --Hotkey is k
  8. die = "Infernum" --Hotkey is P
  9.  
  10. plr = game.Players.LocalPlayer
  11. mouse = plr:GetMouse()
  12.  
  13. mouse.KeyDown:connect(function(key)
  14. if key == "f" then
  15. cast = 1
  16. while wait() do
  17. game.Players:chat(bomb)
  18. if cast ~= 1 then return end
  19. end
  20. elseif key == "m" then
  21. cast = 0
  22. end
  23. end)
  24.  
  25. mouse.KeyDown:connect(function(key1)
  26. if key1 == "g" then
  27. cast = 2
  28. while wait() do
  29. game.Players:chat(stone)
  30. if cast ~= 2 then return end
  31. end
  32. elseif key == "m" then
  33. cast = 0
  34. end
  35. end)
  36.  
  37. mouse.KeyDown:connect(function(key2)
  38. if key2 == "h" then
  39. cast = 3
  40. while wait() do
  41. game.Players:chat(heal)
  42. if cast ~= 3 then return end
  43. end
  44. elseif key == "m" then
  45. cast = 0
  46. end
  47. end)
  48.  
  49. mouse.KeyDown:connect(function(key3)
  50. if key3 == "j" then
  51. cast = 4
  52. while wait() do
  53. game.Players:chat(no)
  54. if cast ~= 4 then return end
  55. end
  56. elseif key == "m" then
  57. cast = 0
  58. end
  59. end)
  60.  
  61. mouse.KeyDown:connect(function(key4)
  62. if key4 == "k" then
  63. cast = 5
  64. while wait() do
  65. game.Players:chat(teleport)
  66. if cast ~= 5 then return end
  67. end
  68. elseif key == "m" then
  69. cast = 0
  70. end
  71. end)
  72.  
  73. mouse.KeyDown:connect(function(key5)
  74. if key5 == "p" then
  75. cast = 6
  76. while wait() do
  77. game.Players:chat(die)
  78. if cast ~= 6 then return end
  79. end
  80. elseif key == "m" then
  81. cast = 0
  82. end
  83. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement