Ss
Ss
com/EnterpriseExperience/
SystemBroken/refs/heads/main/plus_source.lua"))()
loadstring(game:HttpGet("https://raw.githubusercontent.com/EdgeIY/infiniteyield/
master/source"))()
local key = "V" --key to intiate the flashback. see
https://create.roblox.com/docs/reference/engine/enums/KeyCode for an exhaustive
list
local flashbacklength = 60 --how long the flashback should be stored in approx
seconds
local flashbackspeed = 1 --how many frames to skip during flashback (set to 0 to
disable)
function gethrp(c) --gethrp ripped from my env script and stripped of arguments
return c:FindFirstChild("HumanoidRootPart") or c.RootPart or c.PrimaryPart or
c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso") or
c:FindFirstChildWhichIsA("BasePart")
end
function flashback:Advance(char,hrp,hum,allowinput)
table.insert(frames,{
hrp.CFrame,
hrp.Velocity,
hum:GetState(),
hum.PlatformStand,
char:FindFirstChildOfClass("Tool")
})
end
function flashback:Revert(char,hrp,hum)
local num = #frames
if num==0 or not self.canrevert then --add to history and return if no history
is present
self.canrevert = false
self:Advance(char,hrp,hum)
return
end
for i=1,flashbackspeed do --skip frames (if enabled)
table.remove(frames,num)
num=num-1
end
self.lastinput = true
local lastframe = frames[num]
table.remove(frames,num)
hrp.CFrame = lastframe[1]
hrp.Velocity = -lastframe[2]
hum:ChangeState(lastframe[3])
hum.PlatformStand = lastframe[4] --platformstand to make flying look normal
again
local currenttool = char:FindFirstChildOfClass("Tool")
if lastframe[5] then --equip/unequip tools
if not currenttool then
hum:EquipTool(lastframe[5])
end
else
hum:UnequipTools()
end
end