Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Options = {
- ["Start Area Back"] = true, -- Starting Area (true if you wanna farm it)
- ["Autumn"] = true, -- Autumn Area (true if you wanna farm it)
- ["Frostland"] = true, -- Frostland Area (true if you wanna farm it)
- ["Inferno"] = true, -- Inferno Zone (true if you wanna farm it)
- ["Voidland"] = true,
- }
- local Weapon;
- _G.StopFarming = false
- function GetWeapon()
- local Found = false
- for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if v:IsA("Tool") then
- if v:FindFirstChild("Katana") then
- Weapon = v
- Found = true
- end
- end
- end
- if Found == false then
- for a,b in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
- if b:IsA("Tool") then
- if b:FindFirstChild("Katana") then
- b.Parent = game.Players.LocalPlayer.Character
- Weapon = b
- Found = true
- end
- end
- end
- end
- end
- GetWeapon()
- function CheckWeapon()
- for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if v:IsA("Tool") then
- if v:FindFirstChild("Katana") then
- Weapon = v
- return true
- else
- return false
- end
- end
- end
- end
- local NotDoneYet = false
- repeat
- wait()
- for i,v in pairs(game.Workspace.NPCs.Spawns:GetChildren()) do
- if v.Name == "Start Area Back" and Options["Start Area Back"] == true or v.Name == "Autumn" and Options["Autumn"] == true or v.Name == "Frostland" and Options["Frostland"] == true or v.Name == "Inferno" and Options["Inferno"] == true or v.Name == "Voidland" and Options["Voidland"] == true then
- local a = v:GetChildren()
- for i=1,#a do
- if a[i].Name:match("Ninja") then
- if a[i]:FindFirstChild("Humanoid") and a[i].Humanoid.Health > 0 and a[i]:FindFirstChild("HumanoidRootPart") then
- local ItsNil = false
- repeat
- wait()
- if game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") and a[i]:FindFirstChild("HumanoidRootPart") then
- if CheckWeapon() then
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = a[i].HumanoidRootPart.CFrame + a[i].HumanoidRootPart.CFrame.lookVector * -3
- wait()
- Weapon:Activate()
- wait()
- Weapon:Deactivate()
- else
- GetWeapon()
- end
- else
- ItsNil = true
- end
- until ItsNil == true or a[i].Humanoid.Health <= 0 or _G.StopFarming == true
- if _G.StopFarming == false then
- wait(0.9)
- else
- wait()
- end
- if _G.StopFarming == true and NotDoneYet == false then
- NotDoneYet = true
- wait(1)
- end
- end
- end
- end
- end
- end
- until _G.StopFarming == true
Add Comment
Please, Sign In to add comment