Advertisement
Guest User

FUNKY FRIDAY SCRIPT

a guest
Mar 18th, 2021
1,561
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.19 KB | None | 0 0
  1. local framework;
  2. local funcs = {}
  3. local islclosure = islclosure or is_l_closure
  4. local getinfo = getinfo or debug.getinfo
  5. local getupvalues = getupvalues or debug.getupvalues
  6. local getconstants = getconstants or debug.getconstants
  7. local marked = {}
  8. local map = { [0] = 'Left', [1] = 'Down', [2] = 'Up', [3] = 'Right', }
  9. local keys = { Up = Enum.KeyCode.W; Down = Enum.KeyCode.S; Left = Enum.KeyCode.A; Right = Enum.KeyCode.D; }
  10. local runService = game:GetService('RunService')
  11. local fastWait, fastSpawn do
  12. function fastWait(t)
  13. local d = 0;
  14. while d < t do
  15. d += runService.RenderStepped:wait()
  16. end
  17. end
  18. function fastSpawn(f)
  19. coroutine.wrap(f)()
  20. end
  21. end
  22.  
  23. for i, v in next, getgc(true) do
  24. if type(v) == 'table' and rawget(v, 'GameUI') then
  25. framework = v;
  26. end
  27. if type(v) == 'function' and islclosure(v) then
  28. local info = getinfo(v);
  29. if info.name == '' then continue end
  30. if info.source:match('%.Arrows$') then
  31. local constants = getconstants(v);
  32. if table.find(constants, 'Right') and table.find(constants, 'NewThread') then
  33. funcs.KeyDown = v;
  34. elseif table.find(constants, 'Multiplier') and table.find(constants, 'MuteVoices') then
  35. funcs.KeyUp = v;
  36. end
  37. end
  38. end
  39. if framework and funcs.KeyUp and funcs.KeyDown then break end
  40. end
  41. if type(framework) ~= 'table' or (not rawget(framework, 'UI')) then
  42. return game.Players.LocalPlayer:Kick('Failed to locate framework.')
  43. elseif (not (funcs.KeyDown and funcs.KeyUp)) then
  44. return game.Players.LocalPlayer:Kick('Failed to locate key functions.')
  45. end
  46. game:GetService("UserInputService").InputBegan:Connect(function(key,bool)
  47. if key.KeyCode == Enum.KeyCode.Delete then
  48. mode = mode + 1
  49. if mode == 1 then
  50. print("Mode changed to rage")
  51. elseif mode == 2 then
  52. print("Mode changed to disabled")
  53. elseif mode == 3 then
  54. mode = 1; print("Mode changed to legit")
  55. end
  56. end
  57. end)
  58. while runService.RenderStepped:wait() do
  59. if mode ~= 2 then
  60. for _, arrow in next, framework.UI.ActiveSections do
  61. if _ == 1 then
  62. else
  63. if arrow.Side ~= framework.UI.CurrentSide then continue end
  64. if marked[arrow] then continue end
  65. local index = arrow.Data.Position % 4
  66. local position = map[index]
  67. if (not position) then continue end
  68. local distance = (1 - math.abs(arrow.Data.Time - framework.SongPlayer.CurrentlyPlaying.TimePosition)) * 100
  69. if distance >= 95 then
  70. marked[arrow] = true;
  71. fastSpawn(function()
  72. if mode == 0 then wait(Random.new():NextNumber(0.02, maxdelay)) else end
  73. funcs.KeyDown(position)
  74. if arrow.Data.Length > 0 then
  75. fastWait(arrow.Data.Length)
  76. else
  77. fastWait(0.05)
  78. end
  79. funcs.KeyUp(position)
  80. marked[arrow] = nil
  81. end)
  82. end
  83. end
  84. end
  85. end
  86. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement