AAA

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

local checkwaves = 0

_G.A = true

function findenemy()
for i,v in pairs(game.Workspace.NPCs:GetChildren()) do
_G.Enemy_Selected = v.Name
end
end

function totarget(p)
local Distance2 = (p.Position -
game.Players.LocalPlayer.Character.HumanoidRootPart.Position).Magnitude
local tween_s = game:service"TweenService"
local info = TweenInfo.new(Distance2/60, Enum.EasingStyle.Linear)
local tween =
tween_s:Create(game:GetService("Players").LocalPlayer.Character["HumanoidRootPart"]
, info, {CFrame = p})
tween:Play()
end

spawn(function()
while task.wait() do
pcall(function()
if _G.A then
if checkwaves == 0 then
if game.Players.LocalPlayer.Character:FindFirstChild("RightCuff") then
local Distance = (game.Workspace.Effects.Key.Key.CFrame.Position -
game.Players.LocalPlayer.Character.HumanoidRootPart.Position).Magnitude
if Distance >= 5 then
totarget(game.Workspace.Effects.Key.Key.CFrame)
elseif Distance <= 5 then
fireproximityprompt(workspace.Effects.Key.Key.ProximityPrompt,100)
end
elseif not game.Players.LocalPlayer.Character:FindFirstChild("RightCuff") then
checkwaves = 1
print(checkwaves)
end
elseif checkwaves == 1 then
if not game.Players.LocalPlayer.Character:FindFirstChild("RightCuff") then
local Distance = (CFrame.new(2942.56494, 2078.25293, -13998.9336, -1, 0, 0, 0, 1,
0, 0, 0, -1).Position -
game.Players.LocalPlayer.Character.HumanoidRootPart.Position).Magnitude
if game.Workspace.Islands["Impel Base - Floor
1"].Barriers:FindFirstChild("StartBarrier") then
totarget(CFrame.new(2942.56494, 2078.25293, -13998.9336, -1, 0, 0, 0, 1, 0, 0, 0, -
1) * CFrame.new(0,15,0))
elseif not game.Workspace.Islands["Impel Base - Floor
1"].Barriers:FindFirstChild("StartBarrier") and game.Workspace.Islands["Impel Base
- Floor 1"].Barriers:FindFirstChild("FirstBarrier") then
findenemy()
totarget(game.Workspace.NPCs[_G.Enemy_Selected].HumanoidRootPart.CFrame *
CFrame.new(0,15,0))
end
elseif checkwaves == 1 and
game:GetService("Players").LocalPlayer.PlayerGui:FindFirstChild("waveInfo") then
checkwaves = 2
print(checkwaves)
end
elseif checkwaves == 2 then
if game.Workspace.Islands["Impel Base - Floor 1"]:FindFirstChild("End") then
local Distance = (game.Workspace.Islands["Impel Base - Floor
1"].End.CFrame.Position -
game.Players.LocalPlayer.Character.HumanoidRootPart.Position).Magnitude
if Distance >= 5 then
totarget(game.Workspace.Islands["Impel Base - Floor 1"].End.CFrame *
CFrame.new(0,15,0))
elseif Distance <= 5 then
findenemy()
totarget(game.Workspace.NPCs[_G.Enemy_Selected].HumanoidRootPart.CFrame *
CFrame.new(0,15,0))
end
elseif not game.Workspace.Islands["Impel Base - Floor 1"]:FindFirstChild("End")
then
totarget(CFrame.new(2663.17139, 2075.44556, -15380.8428, 0.99997139, -2.87761477e-
08, 0.00756655587, 2.80729289e-08, 1, 9.30441857e-08, -0.00756655587, -9.28291044e-
08, 0.99997139))
end
end
end
end)
end
end)
print(checkwaves)

You might also like