Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- // Variables: // --
- local LevelList = {}
- local UnlockedStages = 0
- local Root = game.Players.LocalPlayer.Character.HumanoidRootPart
- local Farm = Instance.new("Folder",game.Workspace)
- Farm.Name = "Autofarm"
- -- // Grab the levels you can autofarm. // --
- for i,v in pairs(game.Workspace.Areas:GetChildren()) do
- if v:IsA("Folder") then
- local Area = game.Workspace.BaseAreas[v.Name]
- local Stat = game.Players.LocalPlayer.leaderstats.Level
- local LevelNeeded = Area.Level
- if Stat.Value >= LevelNeeded.Value then
- table.insert(LevelList, i, v.Name)
- end
- end
- end
- -- // Checks unlocked stages: // --
- for i,v in pairs(LevelList) do
- UnlockedStages = UnlockedStages + 1
- end
- -- // Equips your launcher: // --
- if game.Players.LocalPlayer.Backpack:FindFirstChild("Launcher") then
- game.Players.LocalPlayer.Backpack.Launcher.Parent = game.Players.LocalPlayer.Character
- end
- -- // Makes your weapon not have a cooldown. // --
- local Stats = require(game.Players.LocalPlayer.Character.Launcher.Stats)
- Stats.Cooldown = 0
- -- // Autofarm: // --
- local Start = function(level)
- warn(level)
- local Level = game.Workspace.Areas[level]
- local success, errormessage = pcall(function()
- for i,v in pairs(Level:GetDescendants()) do
- if v:IsA("BasePart") then
- if game.Workspace:FindFirstChild("Autofarm") then
- wait(0.01)
- Root.CFrame = CFrame.new(v.Position)
- Root.Orientation = Vector3.new(v.Orientation)
- mouse1click()
- else
- warn("disabled.")
- end
- end
- end
- end)
- end
- for i,v in pairs(LevelList) do
- Start(v)
- wait(15)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement