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
5 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
5 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

01local data = {}
02 
03for i = 1, 200, 1 do
04      for _, v in pairs(workspace.Parts:GetChildren()) do
05      data[v.Name..i] = {}
06      data[v.Name..i].CFrame = v.CFrame
07      end
08end
09 
10while (true) do
11    for i,v in next, data do
12        for i , v in pairs(workspace.Parts:GetChildren()) do -- i == index and v == value i think
13            v.CFrame = data[v.Name..i].CFrame
14          end
15    end
16    wait(1)
17end

This was typed on mobile so it might not be accurate

Ad

Answer this question