Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --loadstring(game:HttpGet("https://pastebin.com/raw/EnvPuzX1", true))()
- local Player = game:GetService("Players").LocalPlayer
- loadstring(game:HttpGet('https://pastebin.com/raw/cwDSpepQ', true))()
- local Window = library:AddWindow("Lol")
- local Main_Tab = Window:AddTab("General")
- local Boss_Tab = Window:AddTab("Boss")
- local Killaura_Tab = Window:AddTab("Killaura")
- local Misc_Tab = Window:AddTab("Misc")
- --// GENERAL TAB
- local DoScript = false
- Main_Tab:AddSwitch("Enable Autofarm", function(Value)
- DoScript = Value
- end)
- local GunOrSword = "Gun" --"Gun" = gun, "Sword" = sword
- local DropdownData_GunOrSword = Main_Tab:AddDropdown("Gun or Sword", function(Value)
- GunOrSword = Value
- end)
- DropdownData_GunOrSword:Add("Gun")
- DropdownData_GunOrSword:Add("Sword")
- local ChosenMob = ""
- Main_Tab:AddTextBox("Mob name (All mobs = All)", function(Value)
- ChosenMob = Value:lower()
- end)
- --// BOSS TAB
- local DoBoss = false
- Boss_Tab:AddSwitch("Boss Autofarm", function(Value)
- GunOrSword = "Gun"
- DoBoss = Value
- end)
- local BossTeleporter = ""
- local DropdownData_Boss = Boss_Tab:AddDropdown("Boss name", function(Value)
- ChosenMob = Value:lower()
- BossTeleporter = Value .. " Teleporter"
- end)
- DropdownData_Boss:Add("Fury Ruler")
- DropdownData_Boss:Add("Alpha Ruler")
- DropdownData_Boss:Add("Elemental Overlord")
- DropdownData_Boss:Add("Alpha Destructive Overlord")
- DropdownData_Boss:Add("Fury Destructive Overlord")
- DropdownData_Boss:Add("Overlord of Overlords")
- DropdownData_Boss:Add("Ascension Mage")
- DropdownData_Boss:Add("Space King")
- DropdownData_Boss:Add("Evil Tank Boss")
- DropdownData_Boss:Add("Chocolate Mutant")
- --// KILLAURA TAB
- local DoKillaura = false
- Killaura_Tab:AddSwitch("Killaura", function(Value)
- DoKillaura = Value
- end)
- local KillauraRadius = 0
- Killaura_Tab:AddSlider("Killaura radius", function(Value)
- KillauraRadius = Value
- end, {
- ["min"] = 0,
- ["max"] = 300,
- })
- --// MISC TAB
- local Firerate = 60
- Misc_Tab:AddSlider("Shots per second", function(Value)
- Firerate = Value
- end, {
- ["min"] = 0,
- ["max"] = 60,
- })
- Firerate = 40
- local DistanceZ = 10
- Misc_Tab:AddSlider("Distance from mob (Z)", function(Value)
- DistanceZ = Value
- end, {
- ["min"] = 10,
- ["max"] = 100,
- })
- local StandOnPart = Instance.new("Part")
- StandOnPart.Parent = workspace
- StandOnPart.Size = Vector3.new(30, 5, 30)
- StandOnPart.CFrame = CFrame.new(500, 500, 580)
- StandOnPart.Anchored = true
- local Blacklist = {
- "DEAD DPS DUMMY R15",
- "DEAD DPS DUMMY R6",
- "Green Spirit",
- "Bomb Elf",
- "Elf",
- "Golden Elf"
- }
- local function GetClosest()
- local Closest
- local Last = math.huge
- local KillauraTable = {}
- for Index, Value in next, workspace.MobFolder:GetChildren() do
- if table.find(Blacklist, Value.Name) then --Readbility
- Value:Destroy()
- end
- if ((ChosenMob == "all" or Value.Name:lower() == ChosenMob or Value.Name:lower():find(ChosenMob)) or DoKillaura) and Value:FindFirstChild("HumanoidRootPart") and Value:FindFirstChild("Head") and Value:FindFirstChildWhichIsA("Humanoid") and Value:FindFirstChildWhichIsA("Humanoid").Health > 0 then
- local Dist = (Player.Character.HumanoidRootPart.Position - Value.HumanoidRootPart.Position).Magnitude
- if (DoKillaura and Dist <= KillauraRadius) or not DoKillaura then
- print("yee")
- if Last > Dist then
- Closest = Value
- Last = Dist
- end
- end
- elseif Value:FindFirstChildWhichIsA("Humanoid") and Value:FindFirstChildWhichIsA("Humanoid").Health <= 0 then
- Value:Destroy()
- end
- end
- return Closest
- end
- local function IsSword(Tool)
- return Tool:FindFirstChild("Event")
- end
- local Part1 = 0.4/0.5
- local Key = 15 * Part1 / 1 --Remote key for sword
- local Tool --We need it to be a global for our equip function to work
- local function FireRemote()
- Tool = Player.Character:FindFirstChildWhichIsA("Tool")
- if Tool then
- local Closest = GetClosest()
- if Closest then
- if GunOrSword == "Gun" then
- local Connection = getconnections(Player:GetMouse().Button1Down)
- local FoundNestedFunction = false
- for _, Value in next, Connection do
- if Value.Function then
- for Index, Upvalue in next, getupvalues(Value.Function) do
- if type(Upvalue) == "function" then
- for a, b in next, getupvalues(Upvalue) do
- if type(b) == "function" then
- FoundNestedFunction = true
- b()
- break
- end
- end
- if not FoundNestedFunction then
- Upvalue()
- end
- end
- end
- end
- end
- else
- local Dist = (Closest.HumanoidRootPart.Position - Player.Character.HumanoidRootPart.Position).Magnitude
- warn(Dist)
- if Dist <= 2 and IsSword(Tool) then
- Tool.Event:FireServer("Hit", Closest:FindFirstChildWhichIsA("Humanoid"), Key, nil, false, 0)
- Tool["Sword Swing"].ServerAnimationsSend:FireServer("Animation4", {
- "AnimationLength",
- 2.3,
- Key,
- false,
- nil,
- 0,
- Closest:FindFirstChildWhichIsA("Humanoid")
- })
- Tool.Handle.SwordHit:Play()
- end
- end
- end
- end
- end
- --Add other teleporters
- local AscTrial = workspace:WaitForChild("Ascension Trial Maps"):WaitForChild("Evil Island")
- local AllEvents = workspace:WaitForChild("ALL EVENTS")
- AscTrial:WaitForChild("Evil Tank Boss Teleporter").Parent = workspace.Overworld.SpawnBuilding["Boss Teleporters"]
- AscTrial:WaitForChild("Void Teleporter").Parent = workspace.Overworld.SpawnBuilding["Boss Teleporters"]
- local TempPortal = AllEvents:WaitForChild("CHRISTMAS OVERWORLD"):WaitForChild("Chocolate Mutant Portal")
- TempPortal.Name = "Chocolate Mutant Teleporter"
- TempPortal.Parent = workspace.Overworld.SpawnBuilding["Boss Teleporters"]
- local OldNamecall
- OldNamecall = hookmetamethod(game, "__namecall", function(Self, ...)
- local Args = {...}
- if getnamecallmethod() == "FindPartOnRayWithIgnoreList" and Self == workspace and tostring(getcallingscript()) ~= "ControlModule" then
- local Target = GetClosest()
- if Target then
- return Target.Head, Target.Head.Position
- end
- end
- return OldNamecall(Self, unpack(Args))
- end)
- Player.CharacterAdded:Connect(function(Char)
- Player.Backpack:WaitForChild(Tool.Name).Parent = Char
- end)
- local FPSCount = 0
- game:GetService('RunService').Stepped:connect(function()
- if (DoScript or DoBoss or DoKillaura) and Player.Character and Player.Character:FindFirstChild("HumanoidRootPart") then
- --For our fireremote function, so that we're getting the right script closure
- for Index, Value in next, Player.Character:GetChildren() do
- if Value:IsA("Tool") and Value:FindFirstChild("LocalScript") then
- Value.LocalScript.Disabled = false
- end
- end
- for Index, Value in next, Player.Backpack:GetChildren() do
- if Value:IsA("Tool") and Value:FindFirstChild("LocalScript") then
- Value.LocalScript.Disabled = true
- end
- end
- local Closest = GetClosest()
- if Closest then
- if GunOrSword == "Gun" then
- if DoBoss then
- Player.Character.HumanoidRootPart.CFrame = StandOnPart.CFrame * CFrame.new(0, 2, 0)
- Closest.HumanoidRootPart.CFrame = Player.Character.HumanoidRootPart.CFrame * CFrame.new(0, 15, DistanceZ)
- Closest.HumanoidRootPart.CanCollide = false
- else
- Closest.HumanoidRootPart.CFrame = Player.Character.HumanoidRootPart.CFrame * CFrame.new(0, 15, DistanceZ)
- end
- else
- Player.Character.HumanoidRootPart.CFrame = Closest.HumanoidRootPart.CFrame * CFrame.new(0, 0, 2)
- end
- else
- if DoBoss then
- local TelePad = workspace.Overworld.SpawnBuilding["Boss Teleporters"]:FindFirstChild(BossTeleporter)
- local TempTool = Player.Character:FindFirstChildWhichIsA("Tool")
- if TempTool then
- TempTool.Parent = Player.Backpack
- end
- Player.Character.HumanoidRootPart.CFrame = TelePad.NumberOfPlayers.CFrame
- fireclickdetector(TelePad.Button.ClickDetector)
- if TempTool then
- TempTool.Parent = Player.Character
- end
- end
- end
- FPSCount = FPSCount + 1
- if FPSCount >= 60 then
- FPSCount = 0
- end
- if Firerate >= FPSCount then
- FireRemote()
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement