Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- loadstring(game:HttpGet('https://pastebin.com/raw/cwDSpepQ', true))()
- local standOn = Instance.new("Part", game.Workspace)
- standOn.Size = Vector3.new(20,3,20)
- standOn.Anchored = true
- local first_w = library:AddWindow("Why is everyone reqing this game")
- local first_t = first_w:AddTab("Boss Autofarm")
- local auto_on = false
- local auto_on2 = false
- local boss_name = ""
- local boss_name_whitelist = ""
- local clrH = ""
- local clrLUP = ""
- local clrLLA = ""
- local clrHead = ""
- first_t:AddSwitch('Boss Autofarm', function(a)
- auto_on = a
- auto_on2 = a
- end)
- local drop = first_t:AddDropdown('Boss name', function(a)
- boss_name = a .. " Teleporter"
- boss_name_whitelist = a:lower()
- end)
- drop:Add("Fury Ruler")
- drop:Add("Alpha Ruler")
- drop:Add("Elemental Overlord")
- drop:Add("Alpha Destructive Overlord")
- drop:Add("Fury Destructive Overlord")
- drop:Add("Overlord of Overlords")
- drop:Add("Ascension Mage")
- drop:Add("Space King")
- drop:Add("Evil Tank Boss")
- local sec_t = first_w:AddTab('Normal Mobs Autofarm')
- sec_t:AddSwitch('Normal Autofarm', function(a)
- auto_on = a
- end)
- sec_t:AddTextBox('Mob name', function(a)
- boss_name_whitelist = a:lower()
- end)
- sec_t:AddLabel('\nBtw, you need to go into the mine you wanna autofarm\nin so the mobs can load.\nAlso, does not need to be the full name of the mob.')
- local exeFunc = nil
- local name = nil
- spawn(function()
- while wait() do
- for i,v in pairs(getreg()) do
- if type(v) == 'function' and getfenv(v).script and game.Players.LocalPlayer.Character:FindFirstChildWhichIsA("Tool") and game.Players.LocalPlayer.Character:FindFirstChildWhichIsA("Tool"):FindFirstChild("LocalScript") and tostring(getfenv(v).script:GetFullName()) == tostring(game.Players.LocalPlayer.Character:FindFirstChildWhichIsA("Tool"):FindFirstChild("LocalScript"):GetFullName()) then
- for i2,v2 in pairs(debug.getupvalues(v)) do
- if type(v2) == 'function' then
- exeFunc = v2
- name = game.Players.LocalPlayer.Character:FindFirstChildWhichIsA("Tool").Name
- end
- end
- end
- end
- wait(0.5)
- end
- end)
- game:GetService('RunService').Stepped:connect(function()
- for i,v in pairs(game:GetService("Workspace").MobFolder:GetChildren()) do
- if v.Name:lower() == boss_name_whitelist or string.find(v.Name:lower(), boss_name_whitelist) then
- pcall(function()
- clrLUP = v.LeftUpperArm.BrickColor
- clrLLA = v.LeftLowerArm.BrickColor
- clrHead = v.Head.BrickColor
- end)
- end
- end
- if auto_on then
- if exeFunc ~= nil then
- for i,v in pairs(game:GetService("Workspace").MobFolder:GetChildren()) do
- if v:FindFirstChild("HumanoidRootPart") and v:FindFirstChildWhichIsA("Humanoid") and v:FindFirstChildWhichIsA("Humanoid").Health ~= 0 and game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
- pcall(function()
- if v.LeftUpperArm.BrickColor == clrLUP and v.LeftLowerArm.BrickColor == clrLLA and v.Head.BrickColor == clrHead and not auto_on2 then
- game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(500,500,580)
- standOn.CFrame = CFrame.new(500,498,580)
- v.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,10,-20)
- v.HumanoidRootPart.Transparency = 0.5
- v.HumanoidRootPart.CanCollide = false
- end
- end)
- if v.Name:lower() == boss_name_whitelist and auto_on2 then
- pcall(function()
- repeat
- game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(500,500,580)
- standOn.CFrame = CFrame.new(500,498,580)
- v.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,10,-20)
- v.HumanoidRootPart.Transparency = 0.5
- v.HumanoidRootPart.CanCollide = false
- wait()
- until v.Humanoid.Health == 0
- end)
- end
- end
- end
- for i,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
- if v.Name == name then
- warn("nugga")
- v.Parent = game.Players.LocalPlayer.Character
- exeFunc = nil
- end
- end
- for i,v in pairs(game:GetService("Workspace")["Starting Place"]["Boss Teleporters"]:GetChildren()) do
- for i2,v2 in pairs(v:GetChildren()) do
- if v.Name == tostring(boss_name) and auto_on2 then
- if v2:FindFirstChildWhichIsA("ClickDetector") then
- fireclickdetector(v2:FindFirstChildWhichIsA("ClickDetector"),1)
- elseif v.Name == tostring(boss_name) and v2:FindFirstChildWhichIsA("TouchTransmitter") and game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") and not game:GetService("Players").LocalPlayer.PlayerGui.GuiShop.BossHealth.Visible and auto_on2 then
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v2.CFrame
- end
- end
- end
- end
- local fireDetect = game:GetService("Workspace")["Ascension Trial Maps"]["Evil Island"]["Evil Tank Boss Teleporter"].Button.ClickDetector
- local tucc = game:GetService("Workspace")["Ascension Trial Maps"]["Evil Island"]["Evil Tank Boss Teleporter"].NumberOfPlayers
- if string.find(fireDetect:GetFullName(), boss_name) and auto_on2 then
- fireclickdetector(fireDetect,1)
- if string.find(tucc:GetFullName(), boss_name) and game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") and not game:GetService("Players").LocalPlayer.PlayerGui.GuiShop.BossHealth.Visible then
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = tucc.CFrame
- end
- end
- if exeFunc ~= nil then
- exeFunc()
- end
- end
- end
- for i,v in pairs(game:GetService("Workspace").CurrentMines:GetChildren()) do
- for i2,v2 in pairs(v:GetChildren()) do
- if string.find(v2.Name:lower(), "spawn") and v2:IsA("Part") then
- pcall(function()
- v2.Size = Vector3.new(5,5,5)
- v2.Transparency = 1
- v2.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(math.random(-3,5),math.random(-2,5), math.random(-3,5))
- end)
- end
- end
- end
- end)
- game:GetService("Players").LocalPlayer.Idled:connect(function()
- game:GetService("VirtualUser"):Button2Down(Vector2.new())
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement