I’m trying to replicate the old
but I do not know how to take screenshot or record video. I know that :CaptureScreenshot exists but that does not save it to the laptop
You can’t dynamically script something to save a file in this case an image to a player’s device.
I mean I could use ScreenshotHud and change the position to the mouse when they click but there will be a random green sphere
maybe use this function
game:GetService("ScreenshotService"):TakeScreenshot()
srry try this instead
game:GetService("CaptureService"):CaptureScreenshot()
wait srry i just realised youve acknowledged th capture screenshot thing. if you read more info on the capture service itself, you might find something helpful.
I don’t think you have permission needed to use them resources.
oh. if im wrong srry, i must’ve missed that when i briefly skimmed over the article
Could screen shot manualy in studio or via software, upload, add to a decal.
This video explains it well:
This script takes a screenshot and prompts user to save it after 5 seconds of playing the game.
local CS = game:GetService("CaptureService")
local function resultCallback(results)
-- results shows if user accepted or declined the prompts
end
local function onCaptureReady(contentId)
CS:PromptSaveCapturesToGallery({contentId}, resultCallback)
end
task.wait(5)
CS:CaptureScreenshot(onCaptureReady)
No but I want to save it to files, like what ScreenshotHud does
That’s what it does.
The capture is stored in %localappdata%\Roblox\UserCaptures
if they accept.
This is the folder for the user’s captures.
We can’t do it any better than that.
Nah, I’d win.
I like the determination, but it’s not possible.
Is that not enough for your case?
I will mark your answer as solution if I don’t find any other way