Advertisement
_Thanh_Thy_Cute_

RoBeats AUTO PLAYER JULY 2021 [OPEN SOURCE]

Jul 12th, 2021
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.19 KB | None | 0 0
  1. --[[
  2. VERSION: 1222 - new
  3. --EXECUTE IN LOBBY THEN START GAME
  4. --It only works in new servers. ( 1222 place version )
  5. 35808 - perfect
  6. 89271 - great
  7. 21405 - okay
  8. ]]
  9.  
  10. if game.PlaceVersion < 1222 then
  11. game:GetService("Players").LocalPlayer:Kick("Outdated RoBeats Version")
  12. end
  13.  
  14. local HitType = 35808
  15.  
  16. local RobeatsGame
  17. local LuaReg = debug.getregistry()
  18.  
  19. local toMatch = {
  20. "update", "get_time_since_any_pressed", "post_update",
  21. "early_quit", "get_frame_count", "start_game"
  22. }
  23.  
  24. local function MultiMatch(T1, T2)
  25. local MatchCount = 0;
  26. for t,k in next, T1 do
  27. for i,v in next, T2 do
  28. if k == v then
  29. MatchCount = MatchCount + 1
  30. end
  31. end
  32. end
  33. return MatchCount == #T2
  34. end
  35.  
  36. for i,v in next, LuaReg do
  37. if type(v) == "table" and rawget(v, "new") and islclosure(v.new) then
  38. local Constants = getconstants( v.new )
  39. if MultiMatch(Constants, toMatch) then
  40. RobeatsGame = v
  41. break;
  42. end
  43. end
  44. end
  45.  
  46. local Lobby
  47. local LobbyManager
  48.  
  49. local startGame = RobeatsGame.new
  50. RobeatsGame.new = function(...)
  51. Lobby = startGame(...)
  52. LobbyManager = getupvalue(Lobby.update, 5)
  53. return Lobby
  54. end
  55.  
  56. repeat wait() until Lobby and LobbyManager
  57.  
  58. game:GetService("RunService").RenderStepped:Connect(function(deltaTime)
  59. local TrackSystem
  60. if getupvalue(Lobby._7mQs3I8clJlHGVzZGUuA, 1) then
  61. TrackSystem = Lobby:_7mQs3I8clJlHGVzZGUuA()
  62. end
  63. if TrackSystem then
  64. local NoteHandler = getupvalue(TrackSystem._JtvDC2BJ1rvULzA0YIP7, 1)
  65. for NoteID = 1, NoteHandler:count() do
  66. local Note = NoteHandler:get(NoteID)
  67. local TrackIdx = Note:get_track_index()
  68.  
  69. local can_hit, hit_result, h_data = Note:_NyEdadU8Luk834hNtZMF()
  70. local can_release, release_result, r_data = Note:_dkCnzV01EXfjPLQtjO6k()
  71.  
  72. if can_release and release_result == HitType then
  73. TrackSystem:_yNIBuvklZnfq8lGcWJT1(LobbyManager, TrackIdx)
  74. elseif can_hit and hit_result == HitType then
  75. TrackSystem:_07ewvOVauZ65snv85wVj(LobbyManager, TrackIdx)
  76. if #getconstants(Note._dkCnzV01EXfjPLQtjO6k) < 3 then
  77. TrackSystem:_yNIBuvklZnfq8lGcWJT1(LobbyManager, TrackIdx)
  78. end
  79. end
  80. end
  81. end
  82. end)
  83.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement