Daniel8cz

psx collect orbs

Jul 23rd, 2023
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. local lib = require(game:GetService("ReplicatedStorage").Framework.Library)
  2.  
  3. if not getgenv().hook then
  4. getgenv().hook = true
  5. local functions = lib.Network.Fire, lib.Network.Invoke
  6. local old
  7. old = hookfunction(getupvalue(functions, 1) , function(...) return true end)
  8.  
  9. local Blunder = require(game:GetService("ReplicatedStorage"):FindFirstChild("BlunderList", true))
  10. local OldGet = Blunder.getAndClear
  11.  
  12. setreadonly(Blunder, false)
  13.  
  14. local function OutputData(Message)
  15. return Message
  16. end
  17.  
  18. Blunder.getAndClear = function(...)
  19. local Packet = ...
  20. for i,v in next, Packet.list do
  21. if v.message ~= "PING" then
  22. OutputData(v.message)
  23. table.remove(Packet.list, i)
  24. end
  25. end
  26. return OldGet(Packet)
  27. end
  28. end
  29.  
  30. function CollectYeetOrbs()
  31. local PlayerCFrame = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame
  32. if game:GetService("Workspace").__MAP:WaitForChild("Interactive"):WaitForChild("Orbs") then
  33. for i, v in pairs(game:GetService("Workspace").__MAP.Interactive.Orbs:GetChildren()) do
  34. v.Orb.CFrame = PlayerCFrame
  35. end
  36. end
  37. end
  38.  
  39. function Yeet()
  40. lib.Network.Invoke("Yeet a Pet: Throw")
  41. end
  42.  
  43. spawn(function()
  44. while task.wait(0.1) do
  45. CollectYeetOrbs()
  46. Yeet()
  47. end
  48. end)
Add Comment
Please, Sign In to add comment