Advertisement
rotemgamer

Untitled

Jun 5th, 2020
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. function Attack()
  2. game.Players.LocalPlayer.Backpack.ServerTraits.Input:FireServer(
  3. {
  4. [1] = "mx"
  5. },
  6. CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position),
  7. InputObject,
  8. false
  9. )
  10. end
  11. tweenService, tweenInfo = game:GetService("TweenService"), TweenInfo.new(0.01, Enum.EasingStyle.Linear)
  12. local plr = game:GetService("Players").LocalPlayer
  13. while _G.AutoQuest do wait()
  14. for i, v in pairs(plr.PlayerGui.HUD.FullSize.Quests:GetChildren()) do
  15. for _, vv in pairs(workspace.Live:GetChildren()) do
  16. if v.Name == "Copy" then
  17. local Target = string.sub(v.Text, 8, -2)
  18. if
  19. string.match(string.sub(vv.Name, 1, -7), Target) or string.match(string.sub(vv.Name, 1, -8), Target) or
  20. string.match(string.sub(vv.Name, 1, -6), Target)
  21. then
  22. repeat
  23. wait(0.3)
  24. if _G.AutoQuest == false then return end
  25. plr.Character.Humanoid:ChangeState(11)
  26. tween =
  27. tweenService:Create(
  28. game:GetService("Players")["LocalPlayer"].Character.HumanoidRootPart,
  29. tweenInfo,
  30. {CFrame = CFrame.new(vv.HumanoidRootPart.Position + Vector3.new(0, 0, 2))}
  31. )
  32. tween:Play()
  33. workspace.CurrentCamera.CFrame =
  34. CFrame.new(plr.Character.HumanoidRootPart.Position, vv.HumanoidRootPart.Position)
  35. Attack()
  36. until vv.Humanoid.Health < 1
  37. vv:Destroy()
  38. end
  39. end
  40. end
  41. end
  42. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement