Advertisement
NukeVsCity

Autofarm for yba

Jun 9th, 2021
43,687
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.66 KB | None | 0 0
  1. _G.farming = {
  2. ["Rokakaka"] = true, -- SET TO FALSE IF YOU DONT WANT THE ITEM ALSO SCRIPT MUST BE IN AUTOEXEC FOLDER
  3. ["Gold Coin"] = true,
  4. ["Mysterious Arrow"] = true,
  5. ["Diamond"] = true ,
  6. ["Lucky Arrow"] = true ,
  7. ["Zepellin's Headband"] = true ,
  8. ["Quinton's Glove"] = true,
  9. ["Ancient Scroll"] = true ,
  10. ["DEO's Diary"] = true ,
  11. ["Steel Ball"] = true,
  12. ["Rib Cage of The Saint's Corpse"] = true ,
  13. ["Pure Rokakaka"] = true ,
  14. ["Stone Mask"] = true
  15. }
  16. if syn then game.Loaded:Wait() end
  17. local metatable = getrawmetatable(game)
  18. local newindex = metatable.__newindex
  19. setreadonly(metatable,false)
  20. _G.Items = {}
  21. metatable.__newindex = newcclosure(function(t, i, v)
  22. if t == game:GetService("ReplicatedStorage").ItemSpawn and i == "OnClientInvoke" then
  23. old = v
  24. v = function(...)
  25. local args = {...}
  26. warn(args[2]["Replica"],args[2]["CFrame"])
  27. table.insert(_G.Items, {Replica = args[2]["Replica"], CFrame = args[2]["CFrame"], CD = args[2]["CD"]})
  28. return old(...)
  29. end
  30. end
  31. return newindex(t, i, v)
  32. end)
  33. setreadonly(metatable, true)
  34.  
  35. repeat wait() until game:GetService("ReplicatedStorage"):WaitForChild("ItemSpawn",120)
  36. Hook = hookfunction(getrawmetatable(game).__namecall, newcclosure(function(self, ...)
  37. local args = {...}
  38. if getnamecallmethod() == "InvokeServer" then
  39. if args[1] == "idklolbrah2de" then
  40. return " ___XP DE KEY"
  41. end
  42. end
  43. return Hook(self, ...)
  44. end))
  45.  
  46. while wait(1) do pcall(function()
  47. for i ,item in next, (_G.Items) do
  48. if item["Replica"] and item["Replica"] ~= nil then
  49. local name = item["Replica"].Name
  50. for k, v in next, _G.farming do
  51. if name ~= nil and name == k and v == true then
  52. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = item.CFrame + Vector3.new(0,5,0)
  53. wait(0.5)
  54. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(0,5,0)
  55. wait(0.5)
  56. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(0,5,0)
  57. wait(0.5)
  58. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(0,5,0)
  59. wait(math.random(2,3))
  60. fireclickdetector(item["CD"])
  61. table.remove(_G.Items,i)
  62. wait(1)
  63. end
  64. end
  65. end
  66. end
  67. end )
  68. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement