Advertisement
ScriptHubRoblox

farmonchecku

Dec 10th, 2022 (edited)
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.53 KB | None | 0 0
  1. if game.PlaceId == 2809202155 then
  2.  
  3. -- item spawn bypass --
  4. _G.itemHook = _G.itemHook or hookmetamethod(game, '__newindex', function(self, key, val)
  5. if self.Name == 'ItemSpawn' and key == 'OnClientInvoke' then
  6. _G.spawnFunc = val
  7. _G.funcReturn = getconstants(val)[3]
  8. print('item hack loaded')
  9. u1 = {}
  10. funcfor = function(arg1, list)
  11. if not u1[list.CD] then
  12. u1[list.CD] = true
  13. --print('Item added',list.Replica)
  14. local clon = list.Replica:Clone()
  15. clon.Parent = game:GetService("Workspace")["Item_Spawns"].Items
  16. clon.Base.CFrame = list.CFrame
  17. list.CD.Parent = clon
  18. local v30 = list.CD:Clone()
  19. v30.Enabled = true
  20. v30.Parent = clon
  21. v30.Name = 'RightPrompt'
  22. u8 = {}
  23. u8[1] = v30.Triggered:Connect(function(p2)
  24. list.CD.RemoteEvent:FireServer()
  25. end)
  26. local function v31()
  27. if not u1[list.CD] then
  28. return
  29. end
  30. u1[list.CD] = nil
  31. if clon then
  32. clon:Destroy()
  33. end
  34. if list.CD then
  35. list.CD:Destroy()
  36. end
  37. end
  38. u8[2] = clon.ChildRemoved:Connect(function(p3)
  39. if p3 == list.CD or not list.CD or not list.CD.Parent then
  40. v31();
  41. end;
  42. end)
  43. end
  44. return _G.funcReturn
  45. end
  46. return _G.itemHook(self, key, funcfor)
  47. end
  48. return _G.itemHook(self, key, val)
  49. end)
  50.  
  51. -- Loading skip --
  52. while not game:IsLoaded() do wait() end
  53. while true do
  54. for i,v in pairs(game:GetService("Players").LocalPlayer:WaitForChild('PlayerGui'):GetDescendants()) do
  55. if v.Name == 'TextButton' and v.Parent.Name == 'Skip' then
  56. loading = v
  57. end
  58. end
  59. if loading then break end
  60. end
  61. while #getconnections(loading.MouseButton1Click) == 0 do wait() end
  62. for i,v in pairs(getconnections(loading.MouseButton1Click)) do v.Function() end
  63. while true do
  64. for i,v in pairs(game:GetService("Players").LocalPlayer:WaitForChild('PlayerGui'):GetDescendants()) do
  65. if v.Name == 'Play' and v.Parent.Name == 'LoadingScreen' then
  66. playbtn = v
  67. end
  68. end
  69. if playbtn then break end
  70. end
  71. while #getconnections(playbtn.MouseButton1Click) == 0 do wait() end
  72. for i,v in pairs(getconnections(playbtn.MouseButton1Click)) do v.Function() end
  73.  
  74. -- Constants --
  75. lplr = game.Players.LocalPlayer
  76. _G.ayb = _G.ayb and _G.ayb + 1 or 1
  77. session = _G.ayb
  78. itemsCountInBackpack = {
  79. ["Mysterious Bow"] = 10,
  80. ["Gold Coin"] = 45,
  81. ["Pure Rokakaka"] = 10,
  82. ["Bottle of Blood"] = 3,
  83. ["Quinton's Glove"] = 10,
  84. ["Stone Mask"] = 10,
  85. ["Mysterious Arrow"] = 25,
  86. ["Rib Cage of The Saint's Corpse"] = 10,
  87. ["Steel Ball"] = 10,
  88. ["Dio's Diary"] = 10,
  89. ["Ancient Scroll"] = 10,
  90. ["Zepellin's Headband"] = 10,
  91. ["Left Arm of The Saint's Corpse"] = 10,
  92. ["Dio's Bone"] = 10,
  93. ["Lucky Arrow"] = 10,
  94. ["Diamond"] = 30,
  95. ["Rokakaka"] = 25,
  96. ["Red Candy"] = 40,
  97. ["Blue Candy"] = 40,
  98. ["Green Candy"] = 40,
  99. ["Yellow Candy"] = 40,
  100. ["Christmas Present"] = 10,
  101. }
  102.  
  103. -- Functions --
  104. function checkItem(item)
  105. for _,object in pairs(item:GetChildren()) do
  106. if object:IsA('BasePart') and object.Transparency < 1 then
  107. return object
  108. end
  109. end
  110. return false
  111. end
  112.  
  113. function takeItem(item)
  114. game:GetService("Players").LocalPlayer.Character.RemoteEvent:FireServer("InputBegan", {["Input"] = Enum.KeyCode.E})
  115. wait(0.2)
  116. for _,object in pairs(item:GetChildren()) do
  117. if object.ClassName == 'ProximityPrompt' and object.Enabled then
  118. fireproximityprompt(object, 0)
  119. return
  120. end
  121. end
  122. game:GetService("Players").LocalPlayer.Character.RemoteEvent:FireServer("InputEnded", {["Input"] = Enum.KeyCode.E})
  123. end
  124.  
  125. function countItems()
  126. local items = {}
  127. for i,v in pairs(lplr.Backpack:GetChildren()) do
  128. items[v.Name] = items[v.Name] and items[v.Name] + 1 or 1
  129. end
  130. setmetatable(items, {__index = function() return 0 end})
  131. return items
  132. end
  133.  
  134. function serverHop()
  135. placeId = game.PlaceId
  136. function findTeleport()
  137. local nextCursor;
  138. while true do
  139. if nextCursor == 'end' then
  140. break
  141. elseif not nextCursor then
  142. nextCursor = ''
  143. end
  144. print('Finding server...')
  145. url = 'https://games.roblox.com/v1/games/'..tostring(placeId)..'/servers/Public?sortOrder=Desc&excludeFullGames=true&limit=100&cursor='..nextCursor
  146. local request = game:HttpGet(url)
  147. local jsonDecode = game:GetService("HttpService"):JSONDecode(request)
  148. nextCursor = jsonDecode.nextPageCursor
  149. if not nextCursor then
  150. nextCursor = 'end'
  151. end
  152. local data = jsonDecode.data
  153. for i,v in pairs(data) do
  154. if not oldServers[v.id] then
  155. serverId = v.id
  156. end
  157. end
  158. if serverId then
  159. print('New server: '..serverId)
  160. game:GetService('TeleportService'):TeleportToPlaceInstance(placeId, serverId, game.Players.LocalPlayer, nil, oldServers)
  161. break
  162. end
  163. end
  164. end
  165.  
  166. oldServers = game:GetService('TeleportService'):GetLocalPlayerTeleportData() or {}
  167. oldServers[game.JobId] = true
  168. findTeleport()
  169. if not serverId then
  170. oldServers = {[game.JobId] = true}
  171. findTeleport()
  172. end
  173. if not serverId then
  174. oldServers = {}
  175. findTeleport()
  176. end
  177. end
  178.  
  179. -- Tp Bypass --
  180. _G.old = _G.old or hookmetamethod(game,"__namecall", function(self,...)
  181. local args = {...}
  182. local method = getnamecallmethod()
  183. if tostring(self) == "Returner" and tostring(method) == "InvokeServer" then
  184. return " ___XP DE KEY"
  185. end
  186. return _G.old(self, ...)
  187. end)
  188.  
  189. -- Main --
  190. spawn(function()
  191. inServer = true
  192. wait(15)
  193. while wait() do
  194. local itemsCheck = false
  195. for _,item in pairs(game.Workspace.Item_Spawns.Items:GetChildren()) do
  196. if itemsForFarm[item.Name] then
  197. itemsCheck = true
  198. end
  199. end
  200. if not itemsCheck then
  201. break
  202. end
  203. end
  204. inServer = false
  205. end)
  206.  
  207. while wait() and inServer and session == _G.ayb do
  208. for _,item in pairs(game.Workspace.Item_Spawns.Items:GetChildren()) do
  209. if itemsForFarm[item.Name] and countItems()[item.Name] < itemsCountInBackpack[item.Name] then
  210. local object = checkItem(item)
  211. if object and session == _G.ayb then
  212. lplr.Character.HumanoidRootPart.CFrame = object.CFrame
  213. wait(0.3)
  214. takeItem(item)
  215. wait(0.3)
  216. end
  217. end
  218. end
  219. end
  220.  
  221. if session == _G.ayb then
  222. pcall(function()
  223. local data = {
  224.  
  225. ['embeds'] = {
  226. {
  227. ['title'] = 'Safeo Platinum Hopper',
  228. ['fields'] = {
  229. {name = 'Account Hop Nickname', value = game:GetService("Players").LocalPlayer.Name},
  230. {name = "Seccues hopped this server , ping", value = game:GetService("Stats").Network.ServerStatsItem["Data Ping"]:GetValueString()},
  231.  
  232. }
  233. }
  234. }
  235. }
  236.  
  237. if syn then
  238. local response = syn.request(
  239. {
  240. Url = (webhookhop),
  241. Method = 'POST',
  242. Headers = {
  243. ['Content-Type'] = 'application/json'
  244. },
  245. Body = game:GetService('HttpService'):JSONEncode(data)
  246. }
  247. );
  248. elseif request then
  249. local response = request(
  250. {
  251. Url = webh,
  252. Method = 'POST',
  253. Headers = {
  254. ['Content-Type'] = 'application/json'
  255. },
  256. Body = game:GetService('HttpService'):JSONEncode(data)
  257. }
  258. );
  259. elseif http_request then
  260. local response = http_request(
  261. {
  262. Url = webh,
  263. Method = 'POST',
  264. Headers = {
  265. ['Content-Type'] = 'application/json'
  266. },
  267. Body = game:GetService('HttpService'):JSONEncode(data)
  268. }
  269. );
  270. end
  271. end)
  272. while true do
  273. serverHop()
  274. wait(2)
  275. serverHop()
  276. wait(2)
  277. serverHop()
  278. wait(2)
  279. end
  280. end
  281.  
  282. end -- for placeid check
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement