Advertisement
ScriptHubRoblox

faaasss

Dec 2nd, 2022 (edited)
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.68 KB | None | 0 0
  1. -- item spawn bypass --
  2. _G.itemHook = _G.itemHook or hookmetamethod(game, '__newindex', function(self, key, val)
  3. if self.Name == 'ItemSpawn' and key == 'OnClientInvoke' then
  4. _G.spawnFunc = val
  5. _G.funcReturn = getconstants(val)[3]
  6. print('item hack loaded')
  7. u1 = {}
  8. funcfor = function(arg1, list)
  9. if not u1[list.CD] then
  10. u1[list.CD] = true
  11. --print('Item added',list.Replica)
  12. local clon = list.Replica:Clone()
  13. clon.Parent = game:GetService("Workspace")["Item_Spawns"].Items
  14. clon.Base.CFrame = list.CFrame
  15. list.CD.Parent = clon
  16. local v30 = list.CD:Clone()
  17. v30.Enabled = true
  18. v30.Parent = clon
  19. v30.Name = 'RightPrompt'
  20. u8 = {}
  21. u8[1] = v30.Triggered:Connect(function(p2)
  22. list.CD.RemoteEvent:FireServer()
  23. end)
  24. local function v31()
  25. if not u1[list.CD] then
  26. return
  27. end
  28. u1[list.CD] = nil
  29. if clon then
  30. clon:Destroy()
  31. end
  32. if list.CD then
  33. list.CD:Destroy()
  34. end
  35. end
  36. u8[2] = clon.ChildRemoved:Connect(function(p3)
  37. if p3 == list.CD or not list.CD or not list.CD.Parent then
  38. v31();
  39. end;
  40. end)
  41. end
  42. return _G.funcReturn
  43. end
  44. return _G.itemHook(self, key, funcfor)
  45. end
  46. return _G.itemHook(self, key, val)
  47. end)
  48.  
  49. -- Loading skip --
  50. while not game:IsLoaded() do wait() end
  51. while true do
  52. for i,v in pairs(game:GetService("Players").LocalPlayer:WaitForChild('PlayerGui'):GetDescendants()) do
  53. if v.Name == 'TextButton' and v.Parent.Name == 'Skip' then
  54. loading = v
  55. end
  56. end
  57. if loading then break end
  58. end
  59. while #getconnections(loading.MouseButton1Click) == 0 do wait() end
  60. for i,v in pairs(getconnections(loading.MouseButton1Click)) do v.Function() end
  61. while true do
  62. for i,v in pairs(game:GetService("Players").LocalPlayer:WaitForChild('PlayerGui'):GetDescendants()) do
  63. if v.Name == 'Play' and v.Parent.Name == 'LoadingScreen' then
  64. playbtn = v
  65. end
  66. end
  67. if playbtn then break end
  68. end
  69. while #getconnections(playbtn.MouseButton1Click) == 0 do wait() end
  70. for i,v in pairs(getconnections(playbtn.MouseButton1Click)) do v.Function() end
  71.  
  72. -- Constants --
  73. lplr = game.Players.LocalPlayer
  74. _G.ayb = _G.ayb and _G.ayb + 1 or 1
  75. session = _G.ayb
  76. itemsCountInBackpack = {
  77. ["Gold Coin"] = 45,
  78. ["Pure Rokakaka"] = 10,
  79. ["Quinton's Glove"] = 10,
  80. ["Stone Mask"] = 10,
  81. ["Mysterious Arrow"] = 25,
  82. ["Rib Cage of The Saint's Corpse"] = 10,
  83. ["Steel Ball"] = 10,
  84. ["Dio's Diary"] = 10,
  85. ["Ancient Scroll"] = 10,
  86. ["Zepellin's Headband"] = 10,
  87. ["Dio's Bone"] = 10,
  88. ["Lucky Arrow"] = 10,
  89. ["Diamond"] = 30,
  90. ["Rokakaka"] = 25,
  91. ["Red Candy"] = 40,
  92. ["Blue Candy"] = 40,
  93. ["Green Candy"] = 40,
  94. ["Yellow Candy"] = 40,
  95. ["Christmas Present"] = 10,
  96. }
  97.  
  98. -- Functions --
  99. function checkItem(item)
  100. for _,object in pairs(item:GetChildren()) do
  101. if object:IsA('BasePart') and object.Transparency < 1 then
  102. return object
  103. end
  104. end
  105. return false
  106. end
  107.  
  108. function takeItem(item)
  109. game:GetService("Players").LocalPlayer.Character.RemoteEvent:FireServer("InputBegan", {["Input"] = Enum.KeyCode.E})
  110. wait(0.2)
  111. for _,object in pairs(item:GetChildren()) do
  112. if object.ClassName == 'ProximityPrompt' and object.Enabled then
  113. fireproximityprompt(object, 0)
  114. return
  115. end
  116. end
  117. game:GetService("Players").LocalPlayer.Character.RemoteEvent:FireServer("InputEnded", {["Input"] = Enum.KeyCode.E})
  118. end
  119.  
  120. function countItems()
  121. local items = {}
  122. for i,v in pairs(lplr.Backpack:GetChildren()) do
  123. items[v.Name] = items[v.Name] and items[v.Name] + 1 or 1
  124. end
  125. setmetatable(items, {__index = function() return 0 end})
  126. return items
  127. end
  128.  
  129.  
  130. -- Tp Bypass --
  131. _G.old = _G.old or hookmetamethod(game,"__namecall", function(self,...)
  132. local args = {...}
  133. local method = getnamecallmethod()
  134. if tostring(self) == "Returner" and tostring(method) == "InvokeServer" then
  135. return " ___XP DE KEY"
  136. end
  137. return _G.old(self, ...)
  138. end)
  139.  
  140. -- Main --
  141. spawn(function()
  142. inServer = true
  143. wait(9e9)
  144. while wait() do
  145. local itemsCheck = false
  146. for _,item in pairs(game.Workspace.Item_Spawns.Items:GetChildren()) do
  147. if itemsForFarm[item.Name] then
  148. itemsCheck = true
  149. end
  150. end
  151. if not itemsCheck then
  152. break
  153. end
  154. end
  155. inServer = false
  156. end)
  157.  
  158. while wait() and inServer and session == _G.ayb do
  159. for _,item in pairs(game.Workspace.Item_Spawns.Items:GetChildren()) do
  160. if itemsForFarm[item.Name] and countItems()[item.Name] < itemsCountInBackpack[item.Name] then
  161. local object = checkItem(item)
  162. if object and session == _G.ayb then
  163. lplr.Character.HumanoidRootPart.CFrame = object.CFrame
  164. wait(0.35)
  165. takeItem(item)
  166. wait(0.35)
  167. end
  168. end
  169. end
  170. end
  171.  
  172. if session == _G.ayb then
  173. serverHop()
  174. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement