Autofarm Script
Key Required Verified

Autofarm Script

[OPEN BETA] Anime Journey32tq32tq 39.6K views 5 executesUpdated May 23, 2022
5.0/ 5(1 votes)
10100% Positive
Lua Script•489 lines (18895 chars)
local HUMRP = game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart")
local TweenService = game:GetService("TweenService")
local noclipE = true
local antifall = true
getgenv().teleportmethod = "Teleport"
local function noclip()
    for i, v in pairs(game.Players.LocalPlayer.Character:GetDescendants()) do
        if v:IsA("BasePart") and v.CanCollide == true then
            v.CanCollide = false
            HUMRP.Velocity = Vector3.new(0, 0, 0)
        end
    end
end
local function moveto(obj, speed,humrp)
if getgenv().teleportmethod == "Tween" then
    local PlayerHum = game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") 
    local info = TweenInfo.new(
        ((PlayerHum.Position - humrp.Position).Magnitude) / speed,
        Enum.EasingStyle.Linear)
    local tween = TweenService:Create(PlayerHum, info, {
        CFrame = obj
    })
    if game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") ~= nil and not game.Players.LocalPlayer.Character.HumanoidRootPart:FindFirstChild("BodyVelocity") then
        antifall = Instance.new("BodyVelocity", PlayerHum)
        antifall.Velocity = Vector3.new(0, 0, 0)
        noclipE = game:GetService("RunService").Stepped:Connect(noclip)
        tween:Play()
    end
    tween.Completed:Connect(function()
        antifall:Destroy()
        noclipE:Disconnect()
    end)
else
   local PlayerHum = game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") 
   PlayerHum.CFrame = obj
end
end
        local Islands = {
         MainIsland = {
             Level = 0,
             Name = "MainIsland"
         },
         JojoIsland = {
             Level = 100,
             Name = "JojoIsland"
         },
         DbzIsland = {
             Level = 350,
             Name = "DbzIsland"
         },
         BCIsland = {
             Level = 650,
             Name = "BCIsland"
         },
         NarutoIsland = {
             Level = 1000,
             Name = "NarutoIsland"
         },
         AlabastIsland = {
             Level = 1350,
             Name = "AlabastIsland"
         },
        }
local enemies = {}
for i,v in pairs(game:GetService("ReplicatedStorage").Npcs:GetChildren()) do
   if not table.find(enemies,v.Name)  and not string.find(v.Name,"1")  and not string.find(v.Name,"2")  and not string.find(v.Name,"3") then
       table.insert(enemies,v.Name)
    end   
end      
local quests =  {}
for i,v in pairs(game:GetService("Workspace").QUEST:GetChildren()) do
   if v:IsA("Model") and not table.find(enemies,v.Name) and v:FindFirstChild("Humanoid") then
       table.insert(quests,v.Name)
       table.sort(quests,function(a,b)
           return tonumber(a) < tonumber(b)
        end)   
    end 
end  
game.Workspace.QUEST.ChildAdded:Connect(function(va)
    if va:IsA("Model") and not table.find(enemies,va.Name) and va:FindFirstChild("Humanoid") then
       table.insert(quests,va.Name)
       table.sort(quests,function(a,b)
           return tonumber(a) < tonumber(b)
        end)   
    end  
end) 
local HUMRP = game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart")
getgenv().ToFarm = ""
getgenv().Quest = "" 
getgenv().Distance = 3
getgenv().tweenspeed = 500
getgenv().method = "Behind"
getgenv().autofarm = false
getgenv().autospin = false
getgenv().spinfor = "Vegeta"
local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
local Window = OrionLib:MakeWindow({Name = "Anime Journey", HidePremium = true, SaveConfig = false, ConfigFolder = "OrionTest"})
local Tab = Window:MakeTab({
	Name = "Autofarm",
	Icon = "rbxassetid://4483345998",
	PremiumOnly = false
})
local Classes = Window:MakeTab({
	Name = "Classes",
	Icon = "rbxassetid://4483345998",
	PremiumOnly = false
})
local Stats = Window:MakeTab({
	Name = "Stats",
	Icon = "rbxassetid://4483345998",
	PremiumOnly = false
})
local Status = Tab:AddLabel("Status: Waiting")
Tab:AddToggle({
	Name = "Autofarm",
	Default = false,
	Flag = "Autofarm",
	Save = true,
	Callback = function(Value)
		getgenv().autofarm = Value
		spawn(function()
		    while wait() do
		       if not getgenv().autofarm then return end 
                if game:GetService("Players").LocalPlayer.PlayerGui.Frames.Quest.Visible == false then
                for i,v in pairs(game:GetService("Workspace").QUEST:GetChildren()) do
                if v.Name == getgenv().Quest then
                if not getgenv().autofarm then return end 
                Status:Set("Status: Getting Quest")
                moveto(v:FindFirstChild("HumanoidRootPart").CFrame * CFrame.Angles(math.rad(90), 0, 0) + Vector3.new(0, -13, 0), 1000,v:FindFirstChild("HumanoidRootPart"))
                wait(0.5)
                local args = {
                    [1] = "QuestAdd",
                    [2] = Quest
                }
                
                game:GetService("ReplicatedStorage").Remotes.QUEST_EVENT:FireServer(unpack(args))
                repeat wait() 
                    if not getgenv().autofarm then return end 
                    moveto(v:FindFirstChild("HumanoidRootPart").CFrame * CFrame.Angles(math.rad(-90), 0, 0) + Vector3.new(0, -13, 0), 1000,v:FindFirstChild("HumanoidRootPart")) 
                    game:GetService("ReplicatedStorage").Remotes.QUEST_EVENT:FireServer(unpack(args)) 
                    until game:GetService("Players").LocalPlayer.PlayerGui.Frames.Quest.Visible == true 
                end
                end
                end
		        for i,v in pairs(game:GetService("Workspace").NPCS:GetChildren()) do
		            if v.Name == getgenv().ToFarm and v ~= nil then
		                if game:GetService("Players").LocalPlayer.PlayerGui.Frames.Quest.Visible == true then
		            Status:Set("Status: Started Farming")
		            local Char = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded
		            local HUMRPs = Char:WaitForChild("HumanoidRootPart")
		            if getgenv().method == "Above" and v:FindFirstChild("HumanoidRootPart") ~= nil then
                    moveto(v:FindFirstChild("HumanoidRootPart").CFrame * CFrame.Angles(math.rad(-90), 0, 0) + Vector3.new(0, Distance, 0),1000,v:FindFirstChild("HumanoidRootPart"))
                    elseif getgenv().method == "Below" and v:FindFirstChild("HumanoidRootPart") ~= nil then
                    moveto(v:FindFirstChild("HumanoidRootPart").CFrame * CFrame.Angles(math.rad(90), 0, 0) + Vector3.new(0, -Distance, 0),1000,v:FindFirstChild("HumanoidRootPart"))
                    elseif getgenv().method == "Behind" and v:FindFirstChild("HumanoidRootPart") ~= nil then
                    moveto(v:FindFirstChild("HumanoidRootPart").CFrame + v:FindFirstChild("HumanoidRootPart").CFrame.LookVector*-Distance,1000,v:FindFirstChild("HumanoidRootPart"))  
                    end
                    local args = {
                        [1] = "None|Punch",
                        [2] = 5000
                    }
                    
                    game:GetService("ReplicatedStorage").Remotes.SKILL_EVENT:FireServer(unpack(args))
		            Status:Set("Status: Killing "..v.Name)
		            repeat 
		            wait() 
		            if not getgenv().autofarm then return end
		            local HUMRPs = Char:WaitForChild("HumanoidRootPart")
		            if getgenv().method == "Above" and v:FindFirstChild("HumanoidRootPart") ~= nil then
                    moveto(v:FindFirstChild("HumanoidRootPart").CFrame * CFrame.Angles(math.rad(-90), 0, 0) + Vector3.new(0, Distance, 0),1000,v:FindFirstChild("HumanoidRootPart"))
                    elseif getgenv().method == "Below" and v:FindFirstChild("HumanoidRootPart") ~= nil then
                    moveto(v:FindFirstChild("HumanoidRootPart").CFrame * CFrame.Angles(math.rad(90), 0, 0) + Vector3.new(0, -Distance, 0),1000,v:FindFirstChild("HumanoidRootPart"))
                    elseif getgenv().method == "Behind" and v:FindFirstChild("HumanoidRootPart") ~= nil then
                    moveto(v:FindFirstChild("HumanoidRootPart").CFrame + v:FindFirstChild("HumanoidRootPart").CFrame.LookVector*-Distance,1000,v:FindFirstChild("HumanoidRootPart"))
                    end
		            game:GetService("ReplicatedStorage").Remotes.SKILL_EVENT:FireServer(unpack(args))
		            game:GetService("ReplicatedStorage").Remotes.SKILL_EVENT:FireServer(unpack(args))
		            until v:FindFirstChild("HumanoidRootPart") == nil or v:FindFirstChild("Humanoid").Health == 0 or game:GetService("Players").LocalPlayer.PlayerGui.Frames.Quest.Visible == false
		                end
		           else
		              Status:Set("Status: Waiting till "..getgenv().ToFarm.." Spawns")
		         end
		       end
		    end    
		end)    
	end    
})
Tab:AddToggle({
    Name = "Auto Skill",
    Default = false,
    Callback = function(Value)
       getgenv().autoskill = Value
       spawn(function()
           while wait() do
               if not getgenv().autoskill then return end
                repeat wait() until getgenv().autofarm == true
                local text = game:GetService("Players").LocalPlayer.PlayerGui.Main.InfoBar.ClassText.Text
                local Class = string.gsub(text," |💪|","")
                local SecondCheck = string.gsub(Class," |🔥|","")
                local ThirdCheck = string.gsub(SecondCheck," |👟|","")
                local args = {
                    [1] = ThirdCheck.."|Skill1"
                }
                game:GetService("ReplicatedStorage").Remotes.SKILL_EVENT:FireServer(unpack(args))
                local args = {
                    [1] = ThirdCheck.."|Skill2"
                }
                game:GetService("ReplicatedStorage").Remotes.SKILL_EVENT:FireServer(unpack(args))
                local args = {
                    [1] = ThirdCheck.."|Skill3"
                }
                game:GetService("ReplicatedStorage").Remotes.SKILL_EVENT:FireServer(unpack(args))

                local args = {
                    [1] = ThirdCheck.."|Skill4"
                }
                game:GetService("ReplicatedStorage").Remotes.SKILL_EVENT:FireServer(unpack(args))
                local args = {
                    [1] = ThirdCheck.."|Skill5"
                }
                game:GetService("ReplicatedStorage").Remotes.SKILL_EVENT:FireServer(unpack(args))
                local args = {
                    [1] = ThirdCheck.."|Skill6"
                }
                game:GetService("ReplicatedStorage").Remotes.SKILL_EVENT:FireServer(unpack(args))

            end   
        end)   
    end    
})
Tab:AddToggle({
    Name = "Farm Highest Quest possible",
    Default = false,
    Callback = function(Value)
        if Value == true and getgenv().autofarm == false then
        OrionLib:MakeNotification({
        	Name = "Info!",
        	Content = "For this to work you need autofarm to be on!",
        	Image = "rbxassetid://4483345998",
        	Time = 5
        })
        end
        if Value == true then
           Status:Set("Status: Farm Highest Quest Possible Choosed") 
        end    
        getgenv().farmhighest = Value
        local args = {
            [1] = "Abandon"
        }
        game:GetService("ReplicatedStorage").Remotes.QUEST_EVENT:FireServer(unpack(args))
        spawn(function()
            while wait() do
                if not getgenv().farmhighest then return end
        local ReachedIslands = {}
        for i in pairs(Islands) do
           if Islands[i].Level < tonumber(game:GetService("Players").LocalPlayer.PlayerGui.Main.InfoBar.LevelText.Text) then
               table.insert(ReachedIslands,Islands[i].Level)
               table.sort(ReachedIslands,function(a,b)
                   return b < a
                end)   
           end   
        end   
        for i in pairs(Islands) do
           if Islands[i].Level == ReachedIslands[1] then
                local args = {
                    [1] = "SetSpawnPoint",
                    [2] = Islands[i].Name
                }
                game:GetService("ReplicatedStorage").Remotes.REMOTE_EVENT:FireServer(unpack(args))
                if game.Workspace.Mapa.Islands:FindFirstChild(Islands[i].Name) == nil then
                local tpmod = require(game:GetService("ReplicatedStorage").SharedModules.TeleportModule)
                tpmod.TeleportToAnotherIsland(Islands[i].Name,Islands[i].Name)
                end
            end   
        end                    
        local quests = {}
        local questmodule = require(game:GetService("ReplicatedStorage").SharedModules.INDEXER.QuestInfo)
        for i = 1,#game.Workspace.QUEST:GetChildren() do
        local info = questmodule.GetQuestInfo(tostring(i))
        if not table.find(quests,i) and info["Level"] < tonumber(game:GetService("Players").LocalPlayer.PlayerGui.Main.InfoBar.LevelText.Text) then
        table.insert(quests,i)
        end
        end	
        table.sort(quests,function(a,b)
            return b < a
        end) 
        local info = questmodule.GetQuestInfo(tostring(quests[1]))
        getgenv().Quest = tostring(quests[1])
        getgenv().ToFarm = info["Npc"]
        wait(10)
            end
        end)
    end    
})
Tab:AddToggle({
    Name = "Reset When Low Energy",
    Default = false,
    Callback = function(Value)
        getgenv().resetwhenlow = Value
        spawn(function()
            while wait() do
               if not getgenv().resetwhenlow then return end
               for i = 1,getgenv().energybelow do
               if string.find(game:GetService("Players").LocalPlayer.PlayerGui.Main.InfoBar.Energy.EnergyText.Text,"ENERGY : "..i.." / ") then
                   game:GetService("Players").LocalPlayer.Character:WaitForChild("Humanoid"):TakeDamage(100000)
                end 
               end
            end    
        end)    
    end    
})
Tab:AddDropdown({
	Name = "To Farm",
	Default = "",
	Options = enemies,
	Callback = function(Value)
	    local args = {
            [1] = "Abandon"
        }
        game:GetService("ReplicatedStorage").Remotes.QUEST_EVENT:FireServer(unpack(args))
		getgenv().ToFarm = Value
		Status:Set("Status: Choosed "..getgenv().ToFarm)
        local questmodule = require(game:GetService("ReplicatedStorage").SharedModules.INDEXER.QuestInfo)
        for i = 1,31 do
        local info = questmodule.GetQuestInfo(tostring(i))
        if info["Npc"] == Value then
        getgenv().Quest = tostring(i)
        end
        end	
	end
})
Tab:AddDropdown({
	Name = "Kill Method",
	Default = "Behind",
	Options = {"Above","Behind","Below"},
	Callback = function(Value)
		getgenv().method = Value
	end    
})
Tab:AddDropdown({
       Name = "Teleport Method",
       Default = "Teleport",
       Options = {"Teleport","Tween"},
       Callback = function(Value)
          getgenv().teleportmethod = Value
       end 
})
Tab:AddSlider({
	Name = "Reset When Energy is below",
	Min = 1,
	Max = 100,
	Default = 5,
	Color = Color3.fromRGB(255,255,255),
	Increment = 1,
	ValueName = "Energy",
	Callback = function(Value)
		getgenv().energybelow = Value
	end    
})
Tab:AddSlider({
	Name = "Distance From mob",
	Min = 0,
	Max = 30,
	Default = 5,
	Color = Color3.fromRGB(255,255,255),
	Increment = 1,
	ValueName = "Distance",
	Callback = function(Value)
		getgenv().Distance = Value
	end    
})
Classes:AddToggle({
    Name = "Autospin",
    Default = false,
    Callback = function(Value)
       getgenv().autospin = Value
       spawn(function()
           while wait() do
               if not getgenv().autospin then return end
                local text = game:GetService("Players").LocalPlayer.PlayerGui.Main.InfoBar.ClassText.Text
                local Class = string.gsub(text," |💪|","")
                local SecondCheck = string.gsub(Class," |🔥|","")
                local ThirdCheck = string.gsub(SecondCheck," |👟|","")
                if string.find(ThirdCheck,getgenv().spinfor) then print("Class is the right one") return end
                game:GetService("ReplicatedStorage").Remotes["SPIN_EVENT"]:FireServer("CLASS")
            end   
        end)   
    end    
})
Classes:AddToggle({
    Name = "Autobuy Spins",
    Default = false,
    Callback = function(Value)
       getgenv().autobuyspins = Value
       spawn(function()
           while wait() do
                if not getgenv().autobuyspins then return end
                local args = {
                    [1] = "BuySpin",
                    [2] = 1
                }
                
                game:GetService("ReplicatedStorage").Remotes.REMOTE_EVENT:FireServer(unpack(args))

            end   
        end)   
    end    
})
local ClassesTable = {}
for i,v in pairs(game:GetService("ReplicatedStorage").SharedModules.Classes:GetChildren()) do
    if v.Name ~= "x" then
        table.insert(ClassesTable,v.Name)
    end    
end    
Classes:AddDropdown({
    Name = "Choose Class",
    Default = "Vegeta",
    Options = ClassesTable,
    Callback = function(Value)
       getgenv().spinfor = Value 
    end    
})
getgenv().ToAdd = 0
Stats:AddSlider({
    Name = "To Add",
    Min = 0,
    Max = 5,
    Default = 1,
    Color = Color3.fromRGB(255,255,255),
    Increment = 1,
    ValueName = "Points",
    Callback = function(Value)
        getgenv().ToAdd = Value
    end
})
Stats:AddToggle({
    Name = "Power",
    Default = false,
    Callback = function(Value)
       getgenv().power = Value
       spawn(function()
           while wait() do
               if not getgenv().power then return end
                local args = {
                    [1] = "AddPower",
                    [2] = getgenv().ToAdd
                }
                
                game:GetService("ReplicatedStorage").Remotes.REMOTE_EVENT:FireServer(unpack(args))
            end   
        end)   
    end    
})
Stats:AddToggle({
    Name = "Stamina",
    Default = false,
    Callback = function(Value)
       getgenv().stamina = Value
       spawn(function()
           while wait() do
               if not getgenv().stamina then return end
                local args = {
                    [1] = "AddStamina",
                    [2] = getgenv().ToAdd
                }
                
                game:GetService("ReplicatedStorage").Remotes.REMOTE_EVENT:FireServer(unpack(args))
            end   
        end)   
    end    
})
Stats:AddToggle({
    Name = "Defence",
    Default = false,
    Callback = function(Value)
       getgenv().defence = Value
       spawn(function()
           while wait() do
               if not getgenv().defence then return end
                local args = {
                    [1] = "AddDefence",
                    [2] = getgenv().ToAdd
                }
                
                game:GetService("ReplicatedStorage").Remotes.REMOTE_EVENT:FireServer(unpack(args))
            end   
        end)   
    end    
})

Features & Information

Autofarm Classes Stats Recent Changes: Farm Highest Quest Possible,Auto Quest,Reset When Energy is below Slider,Class Spin Tab,Teleport Methods,Kill Methods

Community Comments (0)

No comments yet for this script.