Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function log(text)
- print("Hijacked Yuno: "..text)
- end
- _G.rpcKey = {"‰","®","þ","÷"}
- local F = game:GetService("ReplicatedStorage"):WaitForChild("Function")
- _G.cKeys = F:InvokeServer("Combat", _G.rpcKey, {"RefillKeys", "00"})
- local t = 0 -- Tries for attacking
- local lHp = 999999999
- local dly = 0.2
- log("Loading.")
- while wait(.125)do
- if _G.cKeys == nil then _G.cKeys = F:InvokeServer("Combat", _G.rpcKey, {"RefillKeys", "00"}) else break end
- end
- log("Found Keys.")
- -- Statistic Data
- local player = game:GetService("Players").LocalPlayer
- local vl = game.ReplicatedStorage.Profiles[player.Name].Stats.Vel.Value
- local kls = 0
- local st
- local bosses = {}
- bosses[0] = "" -- No mobs on floor 0
- bosses[1] = "Thief King"
- bosses[2] = "Borik The BeeKeeper"
- bosses[3] = "Ice King"
- bosses[4] = "the Lion"
- bosses[5] = "Centurian Chieftain"
- bosses[6] = "" -- No mobs on floor 6
- local mobs = {}
- mobs[0] = {} -- no mobs
- mobs[1] = {}
- mobs[2] = {}
- mobs[3] = {}
- mobs[4] = {}
- mobs[5] = {}
- mobs[6] = {} -- no mobs
- local ign = {}
- ign[0] = {} -- no mobs
- ign[1] = {}
- ign[2] = {"Leaf Beetle", "Wasp", "Giant Ruins Hornet"}
- ign[3] = {}
- ign[4] = {}
- ign[5] = {}
- ign[6] = {} -- no mobs
- local f = 3 -- Floor, adjust to floor.
- --function runForLife()
- -- for _,v in pairs(game:GetService("Players"):GetChildren()) do if v:GetRankInGroup(2986019) ~= 0 then return false end end -- If in the Swordburst 2 group then run!
- -- return true
- --end
- player.Idled:connect(function(time)
- print("idle for " .. time .. " seconds")
- if player.Character then player.Character.Humanoid.Jump = true end
- end)
- function refillCKeys()
- local newKey = nil
- if #_G.cKeys <= 0 then newKey = "00" else newKey = _G.cKeys[#_G.cKeys] table.remove(_G.cKeys, #_G.cKeys) end
- local new = game.ReplicatedStorage.Function:InvokeServer("Combat", _G.rpcKey, {"RefillKeys", newKey})
- if new then for i, v in ipairs(new) do table.insert(_G.cKeys, v) end end
- end
- function _G.getCombatKey()
- if #_G.cKeys <= 0 then return -1 end
- local newKey = _G.cKeys[#_G.cKeys]
- table.remove(_G.cKeys, #_G.cKeys)
- if #_G.cKeys < 15 then spawn(refillCKeys) end
- return newKey
- end
- -- check for { "Torso", "HumanoidRootPart", "Entity", "HealthPos" }
- function validate(m, t)
- if (not player.Character) or player.Character.Humanoid.Health <= 0 then return false end
- if t >= 5 then return false end
- for _,v in pairs(ign[f]) do if string.match(m.Name, v) then return false end end
- --for _,v in pairs(mobs[f]) do if not string.match(m.Name, v) then return false end
- if m.HumanoidRootPart and m.Entity and m.HealthPos and m.Entity.Health and m.Entity.Health.Value > 0 then else return false end
- --if runForLife() == true then return false end
- return true
- end
- function rOffset()
- return Vector3.new(0, 4, 0)
- end
- function gBoss(b)
- for _,v in pairs(game.Workspace.Mobs:GetChildren()) do if string.match(v.Name, bosses[f]) then return v end end
- return b
- end
- function deb(m)
- print("Debugging Monster: "..m.Name.." ("..#m:GetChildren().." Parts.)")
- for _,v in pairs(m:GetChildren()) do print("Child -> "..v.Name.." ("..v.ClassName..")") end
- print("------------------------------")
- end
- function atkMob(v)
- while wait(dly) and validate(v, t) do
- if _G.deb1 then deb(v) end
- player.Character:FindFirstChild("HumanoidRootPart").CFrame = CFrame.new(v.HumanoidRootPart.Position + rOffset())
- game.ReplicatedStorage.Event:FireServer("Combat", _G.rpcKey, { "Attack", nil, v, _G.getCombatKey() })
- local vH = v.Entity.Health.Value
- t = (vH ~= v.Entity.Health.MaxValue and vH < lHp) and 0 or t + 1
- lHp = vH
- end
- lHp = 99999999999
- kls = kls + 1
- end
- _G.runBot = true
- function farm()
- st = os.time()
- _G.bSpawn = false
- workspace.Mobs.ChildAdded:connect(function(m)
- if string.match(m.Name, bosses[f]) then _G.bSpawn = true end
- end)
- game:GetService("RunService").RenderStepped:connect(function()
- if player.Character and not player.Character:FindFirstChild("IgnoreTeleport") then local ff = Instance.new("IntValue", player.Character) ff.Name = "IgnoreTeleport" end
- end)
- game:GetService("RunService").RenderStepped:connect(function() -- Kicked for teleporting if this is not included.
- if player.Character and player.Character.Parent and player.Character:FindFirstChild("Humanoid") and player.Character:FindFirstChild("HumanoidRootPart") then
- player.Character.Humanoid.WalkSpeed = 9999999
- end
- end)
- while wait() and _G.runBot do
- for _, v in pairs(game.Workspace.Mobs:GetChildren()) do
- if (validate(v, t))then
- if ((os.time() - st) / 60) % 2 == 0 then log("Kills: "..kls.." Vel:"..(game.ReplicatedStorage.Profiles[player.Name].Stats.Vel.Value - vl).." in "..(os.time() - st).."seconds") end -- Every 2min
- atkMob((_G.bSpawn) and gBoss(v) or v)
- _G.bSpawn = (_G.bSpawn) and false or _G.bSpawn
- t = 0
- end
- end
- end
- end
- log("Starting farm...")
- farm()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement