Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How could I implement a recording system?

Asked by
ka3r 14
4 years ago

I've been wanting to make CCTV cameras that have the ability to record. For example, the camera; a solid model with no scripts, would record it's view. Then it would send it to a "playlist" where I could easily access the recording.

https://www.roblox.com/games/1069607513/Action?refPageId=b8a0abd3-51e2-4e0e-8603-720fbfb16fd3

Action! has a recording feature much similar to what I want. If possible, may someone tell me how I could implement this feature?

1 answer

Log in to vote
2
Answered by
iuclds 720 Moderation Voter
4 years ago

First you have to have a decent knowledge of lua, then take each part and its cframe and store it in a table. You can do

local data = {}

for i = 1, 200, 1 do
      for _, v in pairs(workspace.Parts:GetChildren()) do
      data[v.Name..i] = {}
      data[v.Name..i].CFrame = v.CFrame
      end
end

while (true) do
    for i,v in next, data do
        for i , v in pairs(workspace.Parts:GetChildren()) do -- i == index and v == value i think
            v.CFrame = data[v.Name..i].CFrame
          end
    end
    wait(1)
end

This was typed on mobile so it might not be accurate

Ad

Answer this question