Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Tele=Instance.new('Folder',game.Workspace)
- 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;
- }
- function cutTrees(key)
- if key=='e' then
- for i,a in pairs(game.Workspace:GetChildren()) do
- if a.Name == "TreeRegion" then
- for j,b in pairs(a:GetChildren()) do
- while true do
- if b:FindFirstChild('CutEvent') then
- game.ReplicatedStorage.Interaction.RemoteProxy:FireServer(b.CutEvent,{
- ["tool"] = game.Players.LocalPlayer.Character.Tool,
- ["faceVector"] = Vector3.new(-1,0,0),
- ["height"] = 1,
- ["sectionId"] = 1,
- ["hitPoints"] = 0.2,
- ["cooldown"] = 0,
- ["cuttingClass"] = "Axe"})
- wait()
- if b:FindFirstChild('Cut') then
- else break end
- else break end
- end
- end
- end
- for k,v in pairs(game.Workspace.LogModels:GetChildren()) do
- if v:FindFirstChild("Owner") then
- if tostring(v.Owner.OwnerString.Value)==game.Players.LocalPlayer.Name then
- game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(v)
- if v.Name ~= 'PlaceholderPart' then
- v:MoveTo(game.Players.LocalPlayer.Character.Torso.Position)
- v.Parent=Tele
- end
- end
- end
- end
- end
- end
- end
- game.Players.LocalPlayer:GetMouse().KeyDown:connect(cutTrees)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement