Advertisement
Guest User

Fantastic Frontier Lost autofarm (I edited)

a guest
Mar 7th, 2020
1,701
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.70 KB | None | 0 0
  1. getgenv().On = false
  2. Key = "M"
  3. Delay = 15 --Configure depending on walkspeed if you are unsure then leave it (Seconds) (MINIMUM DELAY 8)
  4. LastSlot = "S15"
  5. Slots = {
  6. ["S01"] = true;
  7. ["S02"] = true;
  8. ["S03"] = true;
  9. ["S04"] = true;
  10. ["S05"] = true;
  11. ["S06"] = true;
  12. ["S07"] = true;
  13. ["S08"] = true;
  14. ["S09"] = true;
  15. ["S10"] = true;
  16. ["S11"] = true;
  17. ["S12"] = true;
  18. ["S13"] = true;
  19. ["S14"] = true;
  20. ["S15"] = true;
  21. ["S16"] = false;
  22. ["S17"] = false;
  23. ["S18"] = false;
  24. ["S19"] = false;
  25. ["S20"] = false;
  26. }
  27. ---------------------------------------------------------
  28. local plr = game:GetService'Players'.LocalPlayer
  29. spawn(function()
  30. function KillLost()
  31. for i,v in pairs(workspace.Guttermouth.GuttermouthRoom4.Monsters:GetChildren()) do
  32. if(v.Name=='PhantomKnightNPC' or v.Name == 'Phantom') and v:FindFirstChild'Humanoid' then
  33. v.Humanoid.Health = 0
  34. end
  35. end
  36. end
  37. function Walk() --setclipboard(tostring(plr.Character:WaitForChild'HumanoidRootPart'.Position))
  38. for i = 1,Delay do
  39. wait(1)
  40. plr.Character:WaitForChild'Humanoid':MoveTo(Vector3.new(12531.5635, 251.514069, -2355.00903))
  41. end
  42. end
  43. function OpenChest()
  44. workspace.Guttermouth.GuttermouthRoom4.ClaimRewards:InvokeServer(true)
  45. end
  46. function EnterRoom()
  47. workspace.Guttermouth["Door_GuttermouthPhantom (Hidden Key)"].InteractEvent:FireServer(true)
  48. end
  49. function ExitRoom()
  50. workspace.Guttermouth.GuttermouthRoom4.GutterExit.InteractEvent:FireServer(true)
  51. end
  52. function SellItems()
  53. if plr.Inventory[LastSlot].Value ~= 0 then
  54. for i = 1,25 do
  55. wait(.03)
  56. for i,v in pairs(plr.Inventory:GetChildren()) do
  57. if Slots[v.Name] then
  58. game:GetService'ReplicatedStorage'.Events.SellShop:FireServer(v.Value, workspace.Shops.Sellers, 1)
  59. end
  60. end
  61. end
  62. end
  63. end
  64. function TpSell()
  65. if plr.Inventory[LastSlot].Value ~= 0 then
  66. plr.Character:WaitForChild'HumanoidRootPart'.CFrame = CFrame.new(713.500122, 235.300568, -482.247925)
  67. wait(.15)
  68. plr.Character:WaitForChild'HumanoidRootPart'.CFrame = CFrame.new(12531.5635, 251.514069, -2355.00903)
  69. end
  70. end
  71. function DeleteChest()
  72. if workspace:FindFirstChild('GuttermouthChest') then
  73. workspace.GuttermouthChest:Destroy()
  74. end
  75. end
  76. end)
  77.  
  78. ---------------------------------------------------------
  79. spawn(function()
  80. game:GetService'UserInputService'.InputBegan:connect(function(key, gameProcessedEvent)
  81. if key.KeyCode == Enum.KeyCode[Key] then
  82. if getgenv().On then
  83. getgenv().On = false
  84. elseif not getgenv().On then
  85. getgenv().On = true
  86. end
  87. end
  88. end)
  89. end)
  90. ---------------------------------------------------------
  91. spawn(function()
  92. while wait() do
  93. if getgenv().On then
  94. wait(2)
  95. EnterRoom()
  96. wait(3)
  97. KillLost()
  98. wait(1)
  99. Walk()
  100. wait(1)
  101. OpenChest()
  102. OpenChest()
  103. wait(1)
  104. wait(2)
  105. DeleteChest()
  106. DeleteChest()
  107. ExitRoom()
  108. end
  109. end
  110. end)
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement