--BROUGHT TO YOU BY RobloxScripter.com!--
local plr = game.Players.LocalPlayer
local lastPos = plr.Character.PrimaryPart.CFrame
plr.Character:SetPrimaryPartCFrame(game.ReplicatedStorage.ViewportNPCs.Titan.PrimaryPart.CFrame) -- simply teleports you to the Titan NPC on the last island... you can also remote this cuz why not
while task.wait() do
pcall(function()
--// Hides your identity because who doesn't love no text above your head?
for i, v in pairs(char:GetDescendants()) do
if v:IsA("BillboardGui") then
v:Destroy()
end
end
for i, v in pairs(workspace.ReplicatedChunks:GetDescendants()) do
if v.Name == "Commando" or v.Name == "Captain Smoke" then -- The enemies that you are going to farm, you can remove or add more
local enemy = v
lastPos = enemy.PrimaryPart.CFrame
repeat task.wait()
local char = plr.Character
char:SetPrimaryPartCFrame(enemy.PrimaryPart.CFrame * CFrame.new(0,-10,0))
local args = {
[1] = game:GetService("Players").LocalPlayer.Character.Katana, -- the tool you are attacking with
[2] = enemy
}
game:GetService("ReplicatedStorage"):WaitForChild("Remotes"):WaitForChild("Melee"):FireServer(unpack(args))
until enemy.Humanoid.Health <=0 or not enemy
end
end
plr.Character:SetPrimaryPartCFrame(lastPos * CFrame.new(0,10,0))
end)
end