Hi everyone,
I made this module TODAY in about 30 minutes or more.
Here is the link to the module.
I would like any feedback on what to add, change or remove. (Including optimizations)
First of all, this is how to set it up
local replay = require(replayModule)
local newReplay = replay.new(rig: Model, preview: Model, recordCam: boolean?) -- makes a replay object
The rig
variable can be ANY kind of model, just note this doesnt count descendants.
The preview
variable is what the recording will be played on (e.g a clone of the rig/model that has no collision)
The recordCam
variable is an optional variable that lets you record the cameras position.
(please note that the cameras CameraType
will be overridden when the replay is being played back)
There is 3 core functions to this module
replay:StartRecording
- starts recording
replay:StopRecording
- stops recording
replay:Play
-plays recording
You do NOT need to make multiple replay objects to get new recordings, recordings override from the last
The replay object has 2 properties
playing
and
isRecording
Please reply with suggestions.
Thanks for reading!