Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. mouse = game.Players.LocalPlayer:GetMouse()
  2.  
  3. function GetEvent()
  4. for i,v in pairs(game.ReplicatedStorage:GetChildren()) do
  5. if v.ClassName == 'RemoteEvent' then
  6. return v
  7. end
  8. end
  9. end
  10. function GetFunction()
  11. for i,v in pairs(game.ReplicatedStorage:GetChildren()) do
  12. if v.ClassName == 'RemoteFunction' then
  13. return v
  14. end
  15. end
  16. end
  17. function a(Ability)
  18. local tbl_main =
  19. {
  20. "UseAbility",
  21. "Ares",
  22. Ability,--"Hellfire",
  23. mouse.Hit,
  24. mouse.Target
  25. }
  26. GetEvent():FireServer(unpack(tbl_main))
  27. end
  28. uip = game:GetService'UserInputService'
  29. while wait() do
  30. if game:GetService'Workspace':FindFirstChild'EffectFolder' then
  31. workspace:FindFirstChild'EffectFolder':ClearAllChildren()
  32. end
  33. if uip:IsKeyDown(Enum.KeyCode.E) then
  34. print(mouse.Target:GetFullName())
  35. a('Spear Throw')
  36. end
  37. if uip:IsKeyDown(Enum.KeyCode.R) then
  38. a('Axe Flurry')
  39. end
  40. if uip:IsKeyDown(Enum.KeyCode.Q) then
  41. local pos = game.Players.LocalPlayer.Character.Head.Position
  42. wait()
  43. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(-82,55,33))
  44. wait(.5)
  45. game.Players.LocalPlayer.Character:MoveTo(pos)
  46. end
  47. if uip:IsKeyDown(Enum.KeyCode.T) then
  48. a('Sword Jab')
  49. end
  50. if uip:IsKeyDown(Enum.KeyCode.Y) then
  51. a('Meteor Crash')
  52. end
  53. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement