Warior_Hub

Reverse Script

Aug 23rd, 2025 (edited)
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.37 KB | Source Code | 0 0
  1. -- Serviços
  2. local Players = game:GetService("Players")
  3. local UIS = game:GetService("UserInputService")
  4. local RS = game:GetService("RunService")
  5.  
  6. local player = Players.LocalPlayer
  7. local playerGui = player:WaitForChild("PlayerGui")
  8.  
  9. -- Criar GUI Principal
  10. local screenGui = Instance.new("ScreenGui", playerGui)
  11. screenGui.Name = "FlashbackMenu"
  12. screenGui.ResetOnSpawn = false
  13.  
  14. -- Frame principal (movível)
  15. local frame = Instance.new("Frame", screenGui)
  16. frame.Size = UDim2.new(0, 220, 0, 150)
  17. frame.Position = UDim2.new(0, 20, 0.5, -75)
  18. frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  19. frame.BorderColor3 = Color3.new(0, 0, 0)
  20. frame.BorderSizePixel = 5
  21. frame.Active = true
  22. frame.Draggable = true
  23.  
  24. -- Reverse Button
  25. local reverseBtn = Instance.new("TextButton", frame)
  26. reverseBtn.Size = UDim2.new(0.9, 0, 0.3, 0)
  27. reverseBtn.Position = UDim2.new(0.05, 0, 0.1, 0)
  28. reverseBtn.Text = "Reverse"
  29. reverseBtn.BackgroundColor3 = Color3.fromRGB(80, 80, 200)
  30. reverseBtn.TextColor3 = Color3.new(1, 1, 1)
  31. reverseBtn.Font = Enum.Font.SourceSansBold
  32. reverseBtn.TextSize = 20
  33.  
  34. -- Key E Button
  35. local keyEBtn = Instance.new("TextButton", frame)
  36. keyEBtn.Size = UDim2.new(0.9, 0, 0.3, 0)
  37. keyEBtn.Position = UDim2.new(0.05, 0, 0.5, 0)
  38. keyEBtn.Text = "Key E"
  39. keyEBtn.BackgroundColor3 = Color3.fromRGB(200, 80, 80)
  40. keyEBtn.TextColor3 = Color3.new(1, 1, 1)
  41. keyEBtn.Font = Enum.Font.SourceSansBold
  42. keyEBtn.TextSize = 20
  43.  
  44. -- Botão para abrir menu
  45. local openBtn = Instance.new("TextButton", screenGui)
  46. openBtn.Size = UDim2.new(0, 100, 0, 40)
  47. openBtn.Position = UDim2.new(0, 20, 1, -60)
  48. openBtn.Text = "Abrir"
  49. openBtn.BackgroundColor3 = Color3.fromRGB(80, 200, 80)
  50. openBtn.TextColor3 = Color3.new(1, 1, 1)
  51. openBtn.Font = Enum.Font.SourceSansBold
  52. openBtn.TextSize = 20
  53. openBtn.Visible = false
  54.  
  55. -- Botão para fechar menu
  56. local closeBtn = Instance.new("TextButton", frame)
  57. closeBtn.Size = UDim2.new(0.3, 0, 0.2, 0)
  58. closeBtn.Position = UDim2.new(0.7, 0, 0.8, 0)
  59. closeBtn.Text = "Fechar"
  60. closeBtn.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  61. closeBtn.TextColor3 = Color3.new(1, 1, 1)
  62. closeBtn.Font = Enum.Font.SourceSansBold
  63. closeBtn.TextSize = 16
  64.  
  65. -- Abrir e Fechar Menu
  66. closeBtn.MouseButton1Click:Connect(function()
  67.     frame.Visible = false
  68.     openBtn.Visible = true
  69. end)
  70.  
  71. openBtn.MouseButton1Click:Connect(function()
  72.     frame.Visible = true
  73.     openBtn.Visible = false
  74. end)
  75.  
  76. -- "Key E" - Auto Clique Simulado
  77. keyEBtn.MouseButton1Down:Connect(function()
  78.     if _G.FlashbackKeyLoop then return end
  79.     _G.FlashbackKeyLoop = true
  80.     task.spawn(function()
  81.         while _G.FlashbackKeyLoop do
  82.             _G.FlashbackEPressed = true
  83.             task.wait(0.001) -- ultra rápido
  84.             _G.FlashbackEPressed = false
  85.             task.wait(0.001)
  86.         end
  87.     end)
  88. end)
  89.  
  90. keyEBtn.MouseButton1Up:Connect(function()
  91.     _G.FlashbackKeyLoop = false
  92.     _G.FlashbackEPressed = false
  93. end)
  94.  
  95. -- Script do Flashback com velocidade aumentada
  96. local function startFlashback()
  97.     local key = "E"
  98.     local flashbacklength = 30  -- menor tempo armazenado (mais leve)
  99.     local flashbackspeed = 5    -- mais quadros pulados (mais rápido)
  100.  
  101.     local name = game:GetService("RbxAnalyticsService"):GetSessionId()
  102.     local frames = {}
  103.  
  104.     pcall(RS.UnbindFromRenderStep, RS, name)
  105.  
  106.     local function getchar()
  107.         return player.Character or player.CharacterAdded:Wait()
  108.     end
  109.  
  110.     local function gethrp(c)
  111.         return c:FindFirstChild("HumanoidRootPart") or c:FindFirstChildWhichIsA("BasePart")
  112.     end
  113.  
  114.     local flashback = { lastinput = false, canrevert = true }
  115.  
  116.     function flashback:Advance(char, hrp, hum, allowinput)
  117.         if #frames > flashbacklength * 60 then
  118.             table.remove(frames, 1)
  119.         end
  120.         if allowinput and not self.canrevert then self.canrevert = true end
  121.         if self.lastinput then hum.PlatformStand = false self.lastinput = false end
  122.  
  123.         table.insert(frames, {
  124.             hrp.CFrame,
  125.             hrp.Velocity,
  126.             hum:GetState(),
  127.             hum.PlatformStand,
  128.             char:FindFirstChildOfClass("Tool")
  129.         })
  130.     end
  131.  
  132.     function flashback:Revert(char, hrp, hum)
  133.         local num = #frames
  134.         if num == 0 or not self.canrevert then
  135.             self.canrevert = false
  136.             self:Advance(char, hrp, hum)
  137.             return
  138.         end
  139.         for i = 1, flashbackspeed do
  140.             table.remove(frames, num)
  141.             num = num - 1
  142.         end
  143.         self.lastinput = true
  144.         local lastframe = frames[num]
  145.         table.remove(frames, num)
  146.         hrp.CFrame = lastframe[1]
  147.         hrp.Velocity = -lastframe[2]
  148.         hum:ChangeState(lastframe[3])
  149.         hum.PlatformStand = lastframe[4]
  150.         local currenttool = char:FindFirstChildOfClass("Tool")
  151.         if lastframe[5] then
  152.             if not currenttool then hum:EquipTool(lastframe[5]) end
  153.         else
  154.             hum:UnequipTools()
  155.         end
  156.     end
  157.  
  158.     RS:BindToRenderStep(name, 1, function()
  159.         local char = getchar()
  160.         local hrp = gethrp(char)
  161.         local hum = char:FindFirstChildWhichIsA("Humanoid")
  162.         if UIS:IsKeyDown(Enum.KeyCode[key]) or _G.FlashbackEPressed then
  163.             flashback:Revert(char, hrp, hum)
  164.         else
  165.             flashback:Advance(char, hrp, hum, true)
  166.         end
  167.     end)
  168. end
  169.  
  170. -- Ativar flashback
  171. reverseBtn.MouseButton1Click:Connect(startFlashback)
Advertisement
Add Comment
Please, Sign In to add comment