Advertisement
1zxyuuki

Untitled

May 30th, 2024 (edited)
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.47 KB | None | 0 0
  1. local Fluent = loadstring(game:HttpGet("https://github.com/dawid-scripts/Fluent/releases/latest/download/main.lua"))()
  2. local SaveManager = loadstring(game:HttpGet("https://raw.githubusercontent.com/dawid-scripts/Fluent/master/Addons/SaveManager.lua"))()
  3. local InterfaceManager = loadstring(game:HttpGet("https://raw.githubusercontent.com/dawid-scripts/Fluent/master/Addons/InterfaceManager.lua"))()
  4.  
  5. local Window = Fluent:CreateWindow({
  6. Title = "Macro Recorder & Player",
  7. SubTitle = "by YourName",
  8. TabWidth = 160,
  9. Size = UDim2.fromOffset(580, 460),
  10. Acrylic = true,
  11. Theme = "Dark",
  12. MinimizeKey = Enum.KeyCode.LeftControl
  13. })
  14.  
  15. local Tabs = {
  16. Main = Window:AddTab({ Title = "Main", Icon = "" }),
  17. Settings = Window:AddTab({ Title = "Settings", Icon = "settings" })
  18. }
  19.  
  20. local isRecording = false
  21. local recordedEvents = {}
  22.  
  23. -- Função para iniciar a gravação de macros
  24. local function StartRecording()
  25. isRecording = true
  26. recordedEvents = {}
  27. print("Gravação iniciada...")
  28. end
  29.  
  30. -- Função para reproduzir os eventos gravados
  31. local function PlayRecording()
  32. print("Reproduzindo eventos...")
  33. for _, event in ipairs(recordedEvents) do
  34. print("Evento reproduzido:", event)
  35. -- Aqui você reproduziria o evento no jogo
  36. -- Por enquanto, apenas imprimimos os eventos
  37. end
  38. end
  39.  
  40. local remoteEvent = game:GetService("ReplicatedStorage"):WaitForChild("Actions"):WaitForChild("Action")
  41.  
  42. remoteEvent.OnServerEvent:Connect(function(player, args)
  43. if isRecording then
  44. table.insert(recordedEvents, args)
  45. print("Evento gravado:", args)
  46. end
  47. end)
  48.  
  49. Tabs.Main:AddButton({
  50. Title = "Macro Recorder",
  51. Description = "Iniciar a gravação de macros",
  52. Callback = function()
  53. StartRecording()
  54. end
  55. })
  56.  
  57. Tabs.Main:AddButton({
  58. Title = "Macro Player",
  59. Description = "Reproduzir os eventos gravados",
  60. Callback = function()
  61. PlayRecording()
  62. end
  63. })
  64.  
  65. SaveManager:SetLibrary(Fluent)
  66. InterfaceManager:SetLibrary(Fluent)
  67. SaveManager:IgnoreThemeSettings()
  68. SaveManager:SetIgnoreIndexes({})
  69. InterfaceManager:SetFolder("MacroRecorder")
  70. SaveManager:SetFolder("MacroRecorder")
  71.  
  72. InterfaceManager:BuildInterfaceSection(Tabs.Settings)
  73. SaveManager:BuildConfigSection(Tabs.Settings)
  74.  
  75. Window:SelectTab(1)
  76.  
  77. Fluent:Notify({
  78. Title = "Macro Recorder & Player",
  79. Content = "O script foi carregado.",
  80. Duration = 8
  81. })
  82.  
  83. SaveManager:LoadAutoloadConfig()
  84.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement