TheRealHeh

Goldaxe (Hoofer)

Jul 23rd, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. local mouse1 = game:GetService("Players").LocalPlayer:GetMouse()
  2. mouse1.Button1Down:connect(function(key)
  3. Pressing=false
  4. end)
  5.  
  6. function GetAxe()
  7. if game.Players.LocalPlayer.Character:FindFirstChild("Tool") then
  8. return game.Players.LocalPlayer.Character:FindFirstChild("Tool")
  9. end
  10. end
  11.  
  12. local HitPoints={
  13. ['GoldAxe']= 50;
  14. ['BasicHatchet']= 0.2;
  15. ['Axe1']= 0.55;
  16. ['Axe2']= 0.93;
  17. ['AxeAlphaTesters']= 1.5;
  18. ['Rukiryaxe']= 1.68;
  19. ['Axe3']= 1.45;
  20. ['AxeBetaTesters']= 1.45;
  21. ['FireAxe']= 0.6;
  22. ['SilverAxe']= 1.6;
  23. ['EndTimesAxe']= 10000000;
  24. ['AxeChicken']= 0.1;
  25. ['CandyCaneAxe']= 0;
  26. }
  27.  
  28. local Pressing = false
  29.  
  30. local mouse1 = game:GetService("Players").LocalPlayer:GetMouse()
  31. mouse1.Button1Down:connect(function(key)
  32. Pressing=true
  33. poop(GetAxe())
  34. end)
  35.  
  36. local mouse1 = game:GetService("Players").LocalPlayer:GetMouse()
  37. mouse1.Button1Down:connect(function(key)
  38. Pressing=false
  39. end)
  40.  
  41. function cut(Height,Tool)
  42. local Tree=game.Players.LocalPlayer:GetMouse().Target
  43. game.ReplicatedStorage.Interaction.RemoteProxy:FireServer(Tree.Parent.CutEvent,{
  44. ["cuttingClass"] = "Axe",
  45. ["cooldown"] = 0,
  46. ["hitPoints"] = HitPoints[Tool.ToolName.Value],
  47. ["sectionId"] = 1,
  48. ["tool"] = Tool,
  49. ["faceVector"] = Vector3.new(-1,0,0),
  50. ["height"] = Height})
  51. end
  52.  
  53. function poop(Tool)
  54. while Pressing do
  55. for i=1,100 do
  56. wait()
  57. cut(_G.SIZE,Tool)
  58. cut(1,Tool)
  59. end
  60. end
  61. end
Add Comment
Please, Sign In to add comment