Universal Script 📌
20.2k Views
1.3k Executions

Flashback rewind

Universal Script 📌
NightSlash
NightSlashFirst script
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

A script that rewinds your character's actions. Flashback button is "C" Features a kill button "P". You can edit both Keybinds

Updates

  1. Script edited: Create script

View Raw
local key = "C" -- Key to initiate the flashback
local killKey = "P" -- Key to kill the script
local flashbacklength = 80 -- How long the flashback should be stored in approx seconds
local flashbackspeed = 0.9 -- How many frames to skip during flashback (set to 0 to disable)

if not game:IsLoaded() then game.Loaded:Wait() end -- Ensure game is fully loaded before execution

local name = "FlashbackSystem" -- Unique name to prevent conflicts
local frames, uis, LP, RS = {}, game:GetService("UserInputService"), game:GetService("Players").LocalPlayer, game:GetService("RunService")

-- Prevent issues with VR Navigation
local VRService = game:GetService("VRService")
if VRService.VREnabled then return end -- Stop execution if VR is enabled

game:GetService("StarterPlayer").DevComputerMovementMode = Enum.DevComputerMovementMode.KeyboardMouse
game:GetService("StarterPlayer").DevTouchMovementMode = Enum.DevTouchMovementMode.Thumbstick

if not LP or not uis then return end -- Ensure LocalPlayer and UserInputService exist

pcall(RS.UnbindFromRenderStep, RS, name) -- Unbind the function if previously bound

local function getchar()
   return LP.Character or LP.CharacterAdded:Wait()
end

function gethrp(c)
   return c and (c:FindFirstChild("HumanoidRootPart") or c.RootPart or c.PrimaryPart or c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso") or c:FindFirstChildWhichIsA("BasePart"))
end

local flashback = { lastinput = false, canrevert = true }

function flashback:Advance(char, hrp, hum, allowinput)
   if not char or not hrp or not hum then return end -- Ensure necessary components exist
   if #frames > flashbacklength * 60 then -- Ensure history does not exceed limit
       table.remove(frames, 1)
   end

   if allowinput and not self.canrevert then
       self.canrevert = true
   end


Comments

1
Log in to join the conversation. Login
geraldo200's profile picture
geraldo2005 months ago

no funciona

1

More universal scripts

See all
Universal Script 📌
4.9k
91.5k
Bumped 2 hours ago
Universal Script 📌
4.9k
3.3k
Bumped 3 hours ago
Script hub
2.7M
829.2k
Bumped 4 hours ago
Key System

Script hub

#1 today

Verified script badgeLumin Hub | #1 | Insta Steal

Universal Script 📌
617
975
Bumped 5 hours ago
Universal Script 📌
8.3k
15.5k
Bumped 6 hours ago
Universal Script 📌
1.4k
5.3k
Bumped 6 hours ago