I want to make it so when you click a camera button you record a video which is then saved. I’ve alreday got the button part, but not the recording part. Here’s my code;
local params = {}
local function Test_no_1(contentId)
print(contentId)
end
local VideoCaptureService = game:GetService("CaptureService")
if VideoCaptureService then
local success, errorMessage = pcall(function()
VideoCaptureService:StartVideoCaptureAsync(Test_no_1, params)
end)
if not success then
warn(errorMessage)
else
print("Video start")
wait(5)
VideoCaptureService:StopVideoCapture()
end
end
what’s the issue you’re having? StartVideoCaptureAsync returns Enum.VideoCaptureResult, perhaps try printing errorMessage wherever you’re printing video start and check what result you’re getting.
Well seems like your device doesn’t support video captures, since roblox hasn’t documented a lot about this service yet, i assume it’s still under development, and not fully working yet. However you can try publishing your game and trying on a different device, maybe that works.