Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mouse1 = game:GetService("Players").LocalPlayer:GetMouse()
- mouse1.Button1Down:connect(function(key)
- Pressing=false
- end)
- function GetAxe()
- if game.Players.LocalPlayer.Character:FindFirstChild("Tool") then
- return game.Players.LocalPlayer.Character:FindFirstChild("Tool")
- end
- end
- local HitPoints={
- ['GoldAxe']= 50;
- ['BasicHatchet']= 0.2;
- ['Axe1']= 0.55;
- ['Axe2']= 0.93;
- ['AxeAlphaTesters']= 1.5;
- ['Rukiryaxe']= 1.68;
- ['Axe3']= 1.45;
- ['AxeBetaTesters']= 1.45;
- ['FireAxe']= 0.6;
- ['SilverAxe']= 1.6;
- ['EndTimesAxe']= 10000000;
- ['AxeChicken']= 0.1;
- ['CandyCaneAxe']= 0;
- }
- local Pressing = false
- local mouse1 = game:GetService("Players").LocalPlayer:GetMouse()
- mouse1.Button1Down:connect(function(key)
- Pressing=true
- poop(GetAxe())
- end)
- local mouse1 = game:GetService("Players").LocalPlayer:GetMouse()
- mouse1.Button1Down:connect(function(key)
- Pressing=false
- end)
- function cut(Height,Tool)
- local Tree=game.Players.LocalPlayer:GetMouse().Target
- game.ReplicatedStorage.Interaction.RemoteProxy:FireServer(Tree.Parent.CutEvent,{
- ["cuttingClass"] = "Axe",
- ["cooldown"] = 0,
- ["hitPoints"] = HitPoints[Tool.ToolName.Value],
- ["sectionId"] = 1,
- ["tool"] = Tool,
- ["faceVector"] = Vector3.new(-1,0,0),
- ["height"] = Height})
- end
- function poop(Tool)
- while Pressing do
- for i=1,100 do
- wait()
- cut(_G.SIZE,Tool)
- cut(1,Tool)
- end
- end
- end
Add Comment
Please, Sign In to add comment