Advertisement
Youssef2021xx

Blox Fruits:DEVIL FRUIT HUNTER(Server Hop) OPEN SOURCE

Mar 29th, 2021
3,350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.49 KB | None | 0 0
  1. _G.Fruit = "Chop Fruit" -- can be changed to the fruit you demand must be named like,"Spike Fruit" or "String Fruit"
  2. _G.EATFRUIT = true -- can be changed to false(NO CAPS) if you want the fruit to stay in its physical form also anti-afk script will activated and you will be teleported to a safe zone immediately
  3. _G.Team = 0 -- 0-1 you can choose to be Marines or Pirates it is defaulted to Marines
  4. _G.DelayTime = 12 -- This is required you cant possibly set it to zero the script wont work,it will be defaulted to 12 seconds(Recommended), you can change it to a higher value until the script works for you
  5.  
  6. wait(_G.DelayTime)
  7.  
  8. RootPart = game:GetService("Players").LocalPlayer.Character:WaitForChild("HumanoidRootPart")
  9. Character = game:GetService("Players").LocalPlayer.Character
  10. LocalPlayer = game:GetService("Players").LocalPlayer
  11.  
  12.  
  13. if _G.Team == 0 then
  14. local MyUiButton = game.Players.LocalPlayer.PlayerGui.Main.ChooseTeam.Container.Marines.Frame.ViewportFrame.TextButton
  15.  
  16. for i,v in pairs(getconnections(MyUiButton.MouseButton1Click)) do
  17. v.Function()
  18. end
  19. elseif _G.Team == 1 then
  20. local MyUiButton = game.Players.LocalPlayer.PlayerGui.Main.ChooseTeam.Container.Pirates.Frame.ViewportFrame.TextButton
  21.  
  22. for i,v in pairs(getconnections(MyUiButton.MouseButton1Click)) do
  23. v.Function()
  24. end
  25. end
  26.  
  27. wait(5)
  28.  
  29.  
  30. function FRUITtp()
  31. RootPart.CFrame = game:GetService("Workspace")[_G.Fruit].Handle.CFrame
  32. Fruit = Character:WaitForChild(_G.Fruit)
  33. if _G.EATFRUIT == true then
  34. Fruit:WaitForChild("EatRemote"):InvokeServer("Player")
  35. local vu = game:GetService("VirtualUser")
  36. game:GetService("Players").LocalPlayer.Idled:connect(function()
  37. vu:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  38. wait(1)
  39. vu:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  40. end)
  41. end
  42. if game:GetService("Workspace").NPCs:FindFirstChild("Bandit Quest Giver") ~= nil then
  43. RootPart.CFrame = CFrame.new(1159,16.5,1346)
  44. else RootPart.CFrame = CFrame.new(-430, 73, 297)
  45. end
  46. if _G.EATFRUIT == false then
  47. if game:GetService("Workspace").NPCs:FindFirstChild("Bandit Quest Giver") ~= nil then
  48. RootPart.CFrame = CFrame.new(1159,16.5,1346)
  49. else RootPart.CFrame = CFrame.new(-430, 73, 297)
  50. end
  51. local vu = game:GetService("VirtualUser")
  52. game:GetService("Players").LocalPlayer.Idled:connect(function()
  53. vu:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  54. wait(1)
  55. vu:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  56. end)
  57. end
  58. end
  59.  
  60. local PlaceID = game.PlaceId
  61. local AllIDs = {}
  62. local foundAnything = ""
  63. local actualHour = os.date("!*t").hour
  64. local Deleted = false
  65.  
  66. local File =
  67. pcall(
  68. function()
  69. AllIDs = game:GetService("HttpService"):JSONDecode(readfile("NotSameServers.json"))
  70. end
  71. )
  72. if not File then
  73. table.insert(AllIDs, actualHour)
  74. writefile("NotSameServers.json", game:GetService("HttpService"):JSONEncode(AllIDs))
  75. end
  76. function TPReturner()
  77. local Site
  78. if foundAnything == "" then
  79. Site =
  80. game.HttpService:JSONDecode(
  81. game:HttpGet("https://games.roblox.com/v1/games/" .. PlaceID .. "/servers/Public?sortOrder=Asc&limit=100")
  82. )
  83. else
  84. Site =
  85. game.HttpService:JSONDecode(
  86. game:HttpGet(
  87. "https://games.roblox.com/v1/games/" ..
  88. PlaceID .. "/servers/Public?sortOrder=Asc&limit=100&cursor=" .. foundAnything
  89. )
  90. )
  91. end
  92. local ID = ""
  93. if Site.nextPageCursor and Site.nextPageCursor ~= "null" and Site.nextPageCursor ~= nil then
  94. foundAnything = Site.nextPageCursor
  95. end
  96. local num = 0
  97. for i, v in pairs(Site.data) do
  98. local Possible = true
  99. ID = tostring(v.id)
  100. if tonumber(v.maxPlayers) > tonumber(v.playing) then
  101. for _, Existing in pairs(AllIDs) do
  102. if num ~= 0 then
  103. if ID == tostring(Existing) then
  104. Possible = false
  105. end
  106. else
  107. if tonumber(actualHour) ~= tonumber(Existing) then
  108. local delFile =
  109. pcall(
  110. function()
  111. delfile("NotSameServers.json")
  112. AllIDs = {}
  113. table.insert(AllIDs, actualHour)
  114. end
  115. )
  116. end
  117. end
  118. num = num + 1
  119. end
  120. if Possible == true then
  121. table.insert(AllIDs, ID)
  122. wait()
  123. pcall(
  124. function()
  125. writefile("NotSameServers.json", game:GetService("HttpService"):JSONEncode(AllIDs))
  126. wait()
  127. game:GetService("TeleportService"):TeleportToPlaceInstance(
  128. PlaceID,
  129. ID,
  130. game.Players.LocalPlayer
  131. )
  132. end
  133. )
  134. wait(4)
  135. end
  136. end
  137. end
  138. end
  139.  
  140. function Teleport()
  141. while wait() do
  142. pcall(
  143. function()
  144. TPReturner()
  145. if foundAnything ~= "" then
  146. TPReturner()
  147. end
  148. end
  149. )
  150. end
  151. end
  152.  
  153.  
  154. if game:GetService("Workspace"):FindFirstChild(_G.Fruit) ~= nil then
  155. FRUITtp()
  156. else Teleport()
  157. end
  158.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement