2 min read

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

NameType / ReturnsDescription
VideoCapture.FilePathstringRequires RobloxScript security. The local file system path to the recorded video file.
VideoCapture.TimeLengthdoubleThe length of the recorded video, in seconds.

Inherited from Capture

NameType / ReturnsDescription
Capture.CaptureTimeDateTimeThe date and time at which the capture was taken.
Capture.CaptureTypeCaptureTypeIndicates whether the capture is a screenshot or a video.
Capture.FilePathStringstringThe local filesystem path to the capture's file, as a string.
Capture.LocalIdstringA temporary local identifier for the capture's stored file.
Capture.SourcePlaceIdint64The ID of the place in which the capture was taken.
Capture.SourceUniverseIdint64The ID of the experience in which the capture was taken.

Inherited from Object

NameType / ReturnsDescription
Object.ClassNamestringA read-only string representing the class this Object belongs to.
Object.classNamestring

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.

FieldValue
typestring
tags["ReadOnly","NotReplicated"]
security{"read":"RobloxScriptSecurity","write":"RobloxScriptSecurity"}
thread safetyReadSafe
categoryData
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.

FieldValue
typedouble
tags["ReadOnly","NotReplicated"]
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryData
serialization{"can_load":false,"can_save":true}
capabilities["Capture"]

Methods

Inherited from Object

NameType / ReturnsDescription
Object:GetPropertyChangedSignalRBXScriptSignalGet an event that fires when a given property of the object changes.
Object:IsAbooleanReturns true if an object's class matches or inherits from a given class.
Object:isAboolean

Events

Inherited from Object

NameType / ReturnsDescription
Object.ChangedFires immediately after a property of the object changes, with some limitations.