Advertisement
Guest User

Untitled

a guest
Jan 19th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. Tele=Instance.new('Folder',game.Workspace)
  2.  
  3. function GetAxe()
  4. if game.Players.LocalPlayer.Character:FindFirstChild("Tool") then
  5. return game.Players.LocalPlayer.Character:FindFirstChild("Tool")
  6. end
  7. end
  8.  
  9. local HitPoints={
  10. ['GoldAxe']= 50;
  11. ['BasicHatchet']= 0.2;
  12. ['Axe1']= 0.55;
  13. ['Axe2']= 0.93;
  14. ['AxeAlphaTesters']= 1.5;
  15. ['Rukiryaxe']= 1.68;
  16. ['Axe3']= 1.45;
  17. ['AxeBetaTesters']= 1.45;
  18. ['FireAxe']= 0.6;
  19. ['SilverAxe']= 1.6;
  20. ['EndTimesAxe']= 10000000;
  21. ['AxeChicken']= 0.1;
  22. ['CandyCaneAxe']= 0;
  23. }
  24. function cutTrees(key)
  25. if key=='e' then
  26. for i,a in pairs(game.Workspace:GetChildren()) do
  27. if a.Name == "TreeRegion" then
  28. for j,b in pairs(a:GetChildren()) do
  29. while true do
  30. if b:FindFirstChild('CutEvent') then
  31. game.ReplicatedStorage.Interaction.RemoteProxy:FireServer(b.CutEvent,{
  32. ["tool"] = game.Players.LocalPlayer.Character.Tool,
  33. ["faceVector"] = Vector3.new(-1,0,0),
  34. ["height"] = 1,
  35. ["sectionId"] = 1,
  36. ["hitPoints"] = 0.2,
  37. ["cooldown"] = 0,
  38. ["cuttingClass"] = "Axe"})
  39. wait()
  40.  
  41. if b:FindFirstChild('Cut') then
  42. else break end
  43. else break end
  44. end
  45. end
  46. end
  47.  
  48. for k,v in pairs(game.Workspace.LogModels:GetChildren()) do
  49. if v:FindFirstChild("Owner") then
  50. if tostring(v.Owner.OwnerString.Value)==game.Players.LocalPlayer.Name then
  51. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(v)
  52. if v.Name ~= 'PlaceholderPart' then
  53. v:MoveTo(game.Players.LocalPlayer.Character.Torso.Position)
  54. v.Parent=Tele
  55. end
  56. end
  57. end
  58. end
  59. end
  60. end
  61. end
  62.  
  63. game.Players.LocalPlayer:GetMouse().KeyDown:connect(cutTrees)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement