Advertisement
OneShi

Saitamania script for arceus auto farm op

Jan 24th, 2022
1,141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.26 KB | None | 0 0
  1. _G.AutoFarm = true
  2. _G.AutoHealth = true
  3. _G.AutoStamina = false
  4. _G.Skill = {
  5. "Q",
  6. "E",
  7. "R",
  8. "F",
  9. }
  10. local Client = game.Players.LocalPlayer
  11. local Stats = setmetatable({},{
  12. __index = function(t,k)
  13. local Chr = Client.Character
  14. local list = {
  15. all = Client.Stats:GetAttributes(),
  16. Char = Chr,
  17. Human = Chr and Chr:FindFirstChild("Humanoid"),
  18. Root = Chr and Chr:FindFirstChild("HumanoidRootPart"),
  19. IsAlive = (Chr and Chr:FindFirstChild("Humanoid") or {Health = 0}).Health > 1,
  20. }
  21. if rawget(list,k) then
  22. return rawget(list,k)
  23. end
  24. return Client.Stats:GetAttribute(k)
  25. end,
  26. })
  27. local Quests = {}
  28. local boss = {}
  29. for i=1,#workspace.QUEST:GetChildren() do v = workspace.QUEST[i]
  30. local Promt = v:FindFirstChild("ProximityPrompt",true)
  31. if Promt then
  32. local RLevel = Promt.ObjectText:split("LEVEL")[2]
  33. local LastCharacter = RLevel:sub(#RLevel,#RLevel)
  34. if RLevel then
  35. local multi = 1
  36. if not tonumber(LastCharacter) then
  37. multi = ({
  38. k = 1e+3,
  39. m = 1e+6,
  40. b = 1e+9,
  41. t = 1e+12,
  42. q = 1e+15,
  43. qn = 1e+18,
  44. sx = 1e+21,
  45. st = 1e+24,
  46. oc = 1e+27,
  47. n = 1e+30,
  48. dc = 1e+33,
  49. })[LastCharacter:lower()]
  50. RLevel = RLevel:sub(0,#RLevel - 1)
  51. end
  52. local Comp = RLevel*multi
  53. Quests[Comp] = i
  54. end
  55. end
  56. end
  57. function CheckIsBoss()
  58. local Qt = Client.PlayerGui.Frames.Quests
  59. if Qt.Visible then
  60. return tonumber(Qt.Objective.Text:split("/")[2]) == 2
  61. end
  62. end
  63. function GetMob()
  64. if workspace.NPCS:FindFirstChild("QuestLocation") then
  65. return workspace.NPCS.QuestLocation.Adornee.Parent
  66. end
  67. end
  68. function AcceptQuest(quest)
  69. local now_level = 0
  70. if not quest then
  71. local nearest = math.huge
  72. for i,v in pairs(Quests) do
  73. if Stats.Level >= i and Stats.Level - i < nearest and not table.find(boss,i) then
  74. nearest = Stats.Level - i
  75. quest = v
  76. now_level = i
  77. end
  78. end
  79. end
  80. Client.PlayerGui.Frames.Quests.Visible = false
  81. repeat
  82. Stats.Root.CFrame = workspace.QUEST[quest].HumanoidRootPart.CFrame + workspace.QUEST[quest].HumanoidRootPart.CFrame.LookVector * 2
  83. wait(.1)
  84. game.ReplicatedStorage.Remotes.QUEST_EVENT:FireServer(tostring(quest))
  85. until Client.PlayerGui.Frames.Quests.Visible
  86. if CheckIsBoss() then
  87. table.insert(boss,now_level)
  88. Client.PlayerGui.Frames.Quests.Visible = false
  89. end
  90. end
  91. function Attack(from,to)
  92. for i,v in pairs(_G.Skill or {}) do
  93. game:GetService("ReplicatedStorage").Remotes.SKILL_EVENT:FireServer(Stats.Class.."Skill"..v,{from,to})
  94. end
  95. game:GetService("ReplicatedStorage").Remotes.SKILL_EVENT:FireServer(Stats.Class.."Punch")
  96. end
  97. local mob = GetMob()
  98. while task.wait() do
  99. pcall(function()
  100. if not Client.PlayerGui.Frames.Quests.Visible then
  101. AcceptQuest()
  102. end
  103. Client.PlayerGui.Main.WarningFrame.Visible = false
  104. if mob.Humanoid.Health < 1 then mob = GetMob() end
  105. if mob and Stats.Root then
  106. Stats.Root.CFrame = CFrame.new(mob.HumanoidRootPart.Position + Vector3.new(0,5,0),mob.HumanoidRootPart.Position)
  107. Attack(Stats.Root.Position,mob.HumanoidRootPart.Position)
  108. end
  109. local mul = 1
  110. if _G.AutoHealth and _G.AutoStamina then
  111. mul = 0.5
  112. end
  113. if _G.AutoHealth then
  114. game:GetService("ReplicatedStorage").Remotes.REMOTE_EVENT:FireServer("HealthUp",{Stats.Pointsmul})
  115. end
  116. if _G.AutoStamina then
  117. game:GetService("ReplicatedStorage").Remotes.REMOTE_EVENT:FireServer("StaminaUp",{Stats.Pointsmul})
  118. end
  119. end)
  120. if not _G.AutoFarm then
  121. Client.PlayerGui.Main.WarningFrame.Visible = true
  122. break
  123. end
  124. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement