[ad_1]
Created by Krackenz
Features:
- *Changing mobRarity to 56 on either script will kill all bosses that are high enough rarity to give boss coins*
game["Loaded"]:Wait()
local Players = game:GetService("Players")
local LP = Players["LocalPlayer"]
while not LP do
Players["ChildAdded"]:Wait()
LP = Players["LocalPlayer"]
end
local Char = LP["Character"]
while not Char do
LP["CharacterAdded"]:Wait()
Char = LP["Character"]
end
local player = game.Players.LocalPlayer
local char = player.Character
local human = char:WaitForChild("HumanoidRootPart")
local base
local SwordID = 1547999718707770400 -- Use dark dex to find the SwordID of the sword you want to use
local mobRarity = 68 -- Minimum rarity to snipe. 68 is Unique or above. Setting mobRarity to 56 will kill all bosses which give boss coins.
for i,v in pairs(game:GetDescendants()) do
if v.ClassName == "TextLabel" and v.Name == "User" then
v:Destroy()
end
end
for i,v in pairs(game:GetService("Workspace"):GetDescendants()) do
if v.Name == player.Name.. "'s" .. " Base" then
base = v
end
end
for i = 1,6 do task.wait(0.13)
human.CFrame = CFrame.new(-25000, 150, -15000)
end
for i = 1,6 do task.wait(0.13)
human.CFrame = base.Spawn.CFrame + Vector3.new(0, 6, 0)
end
for _, yes in pairs(game:GetService("Players").LocalPlayer.Backpack:GetChildren()) do
if yes.Config.ITEMID.Value == SwordID then
yes.Parent = game.Players.LocalPlayer.Character
end
end
_G.killMob = true
while _G.killMob == true do
task.wait()
for i,v in pairs(game:GetService("ReplicatedStorage").Mobs:GetChildren()) do
for o,p in pairs(v:GetChildren()) do if p.Name == "HumanoidRootPart" then
if p.Parent.Config then if v.Config.Rarity.Value >= mobRarity and v.AliveTime.Value >= 10 then
repeat task.wait()
if p and v.Humanoid.Health > 1 and p.Parent ~= nil and v and v.HumanoidRootPart and _G.killMob == true then
firetouchinterest(char.Sword.Handle, p, 0)
firetouchinterest(char.Sword.Handle, p, 1)
human.CFrame = p.CFrame + Vector3.new(0, 4, 0)
firetouchinterest(char.Sword.Handle, p, 0)
firetouchinterest(char.Sword.Handle, p, 1)
end
until v.Humanoid.Health < 1 or p.Parent == nil or v == nil
else
task.wait()
end
end
end
end
end
end
- Non autoexec version (Not required to use Dark Dex to find Sword ID, but must manually execute and equip sword you want to use.) Much slower, I recommend you use the autoexec version.
local player = game.Players.LocalPlayer
local char = player.Character
local human = char:WaitForChild("HumanoidRootPart")
local base
local SwordID = 1547999718707770400 -- Use dark dex to find the SwordID of the sword you want to use. Not required, but if not used you must equip sword before executing.
local mobRarity = 68 -- Minimum rarity to snipe. 68 is Unique or above. Setting mobRarity to 56 will kill all bosses which give boss coins.
for i,v in pairs(game:GetDescendants()) do
if v.ClassName == "TextLabel" and v.Name == "User" then
v:Destroy()
end
end
for i,v in pairs(game:GetService("Workspace"):GetDescendants()) do
if v.Name == player.Name.. "'s" .. " Base" then
base = v
end
end
for i = 1,6 do task.wait(0.13)
human.CFrame = CFrame.new(-25000, 150, -15000)
end
for i = 1,6 do task.wait(0.13)
human.CFrame = base.Spawn.CFrame + Vector3.new(0, 6, 0)
end
for _, yes in pairs(game:GetService("Players").LocalPlayer.Backpack:GetChildren()) do
if yes.Config.ITEMID.Value == SwordID then
yes.Parent = game.Players.LocalPlayer.Character
end
end
_G.killMob = true
while _G.killMob == true do
task.wait()
for i,v in pairs(game:GetService("ReplicatedStorage").Mobs:GetChildren()) do
for o,p in pairs(v:GetChildren()) do if p.Name == "HumanoidRootPart" then
if p.Parent.Config then if v.Config.Rarity.Value >= mobRarity and v.AliveTime.Value >= 10 then
repeat task.wait()
if p and v.Humanoid.Health > 1 and p.Parent ~= nil and v and v.HumanoidRootPart and _G.killMob == true then
firetouchinterest(char.Sword.Handle, p, 0)
firetouchinterest(char.Sword.Handle, p, 1)
human.CFrame = p.CFrame + Vector3.new(0, 4, 0)
firetouchinterest(char.Sword.Handle, p, 0)
firetouchinterest(char.Sword.Handle, p, 1)
end
until v.Humanoid.Health < 1 or p.Parent == nil or v == nil
else
task.wait()
end
end
end
end
end
end
- Adding this to your autoexec as well will make it more consistent at automatically picking up the sword. (Make sure you match mobRarities or this wont help)
game["Loaded"]:Wait()
local Players = game:GetService("Players")
local LP = Players["LocalPlayer"]
while not LP do
Players["ChildAdded"]:Wait()
LP = Players["LocalPlayer"]
end
local Char = LP["Character"]
while not Char do
LP["CharacterAdded"]:Wait()
Char = LP["Character"]
end
local player = game.Players.LocalPlayer
local char = player.Character
local human = char:WaitForChild("HumanoidRootPart")
local mobRarity = 68
while task.wait() do
for h,g in pairs(game:GetService("Workspace").Items:GetDescendants()) do
if g:IsA("TouchTransmitter") and g.Parent.Parent.Config.SellingTime.Value <= 10000 and g.Parent.Parent.Config.Rarity.Value >= mobRarity then
firetouchinterest(g.Parent, human, 0)
firetouchinterest(g.Parent, human, 1)
end
end
end
ENJOY!
Warning: DO NOT DOWNLOAD anything from this page, you’re only here to copy the script!
[ad_2]