local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local ae = workspace:FindFirstChild("BattleRoomModel1")
local ae2 = workspace:FindFirstChild("BattleRoomModel2")
getgenv().Farm = true
while Farm == true do wait(0.1)
if ae then
if ae:FindFirstChild("Script").Player1.Value.Name == LocalPlayer.Name and ae:FindFirstChild("Napstablook") then
LocalPlayer.Character.HumanoidRootPart.CFrame = ae:FindFirstChild("Napstablook").HumanoidRootPart.CFrame
local args = {
[1] = {
[1] = "Attack"
}
}
game:GetService("ReplicatedStorage").Items.Weapons:FindFirstChild("Soul Sword").AttacksRemote:FireServer(unpack(args))
elseif not ae:FindFirstChild("Napstablook") and ae:FindFirstChild("Script").Player1.Value.Name == LocalPlayer.Name then
print("Not found")
getgenv().Farm = false
elseif ae2 then
if ae2:FindFirstChild("Script").Player1.Value.Name == LocalPlayer.Name then
LocalPlayer.Character.HumanoidRootPart.CFrame = ae2:FindFirstChild("Napstablook").HumanoidRootPart.CFrame
local args = {
[1] = {
[1] = "Attack"
}
}
game:GetService("ReplicatedStorage").Items.Weapons:FindFirstChild("Soul Sword").AttacksRemote:FireServer(unpack(args))
elseif not ae2:FindFirstChild("Napstablook") and ae2:FindFirstChild("Script").Player1.Value.Name == LocalPlayer.Name then
print("Not found")
getgenv().Farm = false
end
end
end
end