local capture=game:GetService("CaptureService")
while task.wait(1) do
capture:CaptureScreenshot(function(ImageId)
script.Parent.ImageContent=Content.fromUri(ImageId)
end)
end
The reason why you don't see this in games is: A: its an uncommunly used service that roblox barely gives publicity on
and B: Roblox refuses to let you convert this imagecontent into an editableimage, thus continuing their efforts to make editableimage as useless as possible,
this would be the second biggest use case for editable image, being able to make cool shaders with the screenshot data, although due to a malicious game potentially being able to see your robux balance, nobody gets access to it??
the first biggest use case for editable image is modifying decals, such as importing decals from the catalog and reading their pixels for stuff like dynamic eye position reading on faces for eye effects, and potentially image modification software, although roblox refuses access to:
roblox owned assets (even the heavily restricted insertservice lets you do that!)
assets with the permissions tab given access to the game owner
assets on the public creator marketplace
if its to prevent bad actors from showing malicious content in games, they can still just make malicous images from external buffers that would be equally hard to moderate
the only use case for this is putting a screenshot of the game on a decal to mess with the player, tinting the screenshot color potentially for a horror game by tinting it red(even though you already could do that with colorcorrectioneffect), simulating a lag effect, or as the specified video showcases, a flashbang effect