Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
VideoCapture
Inherits from: Capture → Object
A child class of Capture for videos.
Inherits from: Capture
Memory category: Instances
Tags: NotCreatable, NotReplicated
Properties
| Name | Type / Returns | Description |
|---|---|---|
| VideoCapture.FilePath | string | Requires RobloxScript security. The local file system path to the recorded video file. |
| VideoCapture.TimeLength | double | The length of the recorded video, in seconds. |
Inherited from Capture
| Name | Type / Returns | Description |
|---|---|---|
| Capture.CaptureTime | DateTime | The date and time at which the capture was taken. |
| Capture.CaptureType | CaptureType | Indicates whether the capture is a screenshot or a video. |
| Capture.FilePathString | string | The local filesystem path to the capture's file, as a string. |
| Capture.LocalId | string | A temporary local identifier for the capture's stored file. |
| Capture.SourcePlaceId | int64 | The ID of the place in which the capture was taken. |
| Capture.SourceUniverseId | int64 | The ID of the experience in which the capture was taken. |
Inherited from Object
| Name | Type / Returns | Description |
|---|---|---|
| Object.ClassName | string | A read-only string representing the class this Object belongs to. |
| Object.className | string |
VideoCapture.FilePath
Requires RobloxScript security; experience scripts cannot read it even when they hold the VideoCapture object. Absolute path on the user's device to the video file this capture represents: the temporary file while recording is in progress, or, after PromptSaveCapturesToGallery(), the permanent gallery location. Defaults to an empty string until a recording has produced a video file.
| Field | Value |
|---|---|
| type | string |
| tags | ["ReadOnly","NotReplicated"] |
| security | {"read":"RobloxScriptSecurity","write":"RobloxScriptSecurity"} |
| thread safety | ReadSafe |
| category | Data |
| serialization | {"can_load":false,"can_save":true} |
| capabilities | ["Capture"] |
VideoCapture.TimeLength
Duration of the video capture, in seconds. Populated once recording finishes, whether via StopVideoCapture() or because the capture's time limit was reached. Defaults to 0 until recording has finished.
| Field | Value |
|---|---|
| type | double |
| tags | ["ReadOnly","NotReplicated"] |
| security | {"read":"None","write":"None"} |
| thread safety | ReadSafe |
| category | Data |
| serialization | {"can_load":false,"can_save":true} |
| capabilities | ["Capture"] |
Methods
Inherited from Object
| Name | Type / Returns | Description |
|---|---|---|
| Object:GetPropertyChangedSignal | RBXScriptSignal | Get an event that fires when a given property of the object changes. |
| Object:IsA | boolean | Returns true if an object's class matches or inherits from a given class. |
| Object:isA | boolean |
Events
Inherited from Object
| Name | Type / Returns | Description |
|---|---|---|
| Object.Changed | Fires immediately after a property of the object changes, with some limitations. |