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?
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
01 | local data = { } |
02 |
03 | for 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 |
08 | end |
09 |
10 | while ( 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 ) |
17 | end |
This was typed on mobile so it might not be accurate