'''lua
wait(10)
local runservice = game:GetService("RunService")
runservice.Heartbeat:Connect(function()
if game.Workspace:FindFirstChild("CurrentFrame") then
game.Workspace.CurrentFrame:Destroy()
end
local ttime = game.ServerStorage.time
local name = tostring(ttime.Value).." Frame"
local storedFrames = game.ServerStorage.Frames
local props = game.Workspace.Props
if storedFrames:FindFirstChild(name) then
HistoryFrame = storedFrames[name]:Clone()
else
local createFrame = Instance.new("Folder")
createFrame.Name = name
createFrame.Parent = storedFrames
HistoryFrame = createFrame:Clone()
end
HistoryFrame.Name = "CurrentFrame"
HistoryFrame.Parent = game.Workspace
for i,v in pairs(game.Players:GetChildren()) do
if v.Character then
if v.Character.Parent then
if v.Character.Parent == game.Workspace then
local clone = v.Character:Clone()
clone.Parent = storedFrames:FindFirstChild(name)
for i,v in pairs(clone:GetDescendants()) do
if v:IsA("Part") then
v.Anchored = true
end
end
end
end
end
end
for i,v in pairs(props:GetChildren()) do
local clone = v:Clone()
clone.Parent = storedFrames:FindFirstChild(name)
end
ttime.Value += 1
end)
'''
#no clue why error is happening
1 messages · Page 1 of 1 (latest)
cant remember how to do the lua thing
error
ServerScriptService.time travel:26: attempt to index nil with 'Parent' - Server - time travel:26