Get Pixel Color from Viewport

Hello! I want to get the colors of the pixels from a viewport that precisely reflects the player’s camera. I need to store the colors and the positions of those pixels in an array. However, I can’t find any service that could help me with that on Roblox. Assistance is really needed.

When you say viewport do you mean the game window? You may be able to use the CaptureScreenshot method of CaptureService and then load the content of the screenshot into an EditableImage.

1 Like

You can use CaptureService. I dont know how to do it but there are docs.CaptureService | Documentation - Roblox Creator Hub

When you say, “load the content of the screenshot into an EditableImage” does it mean, I could get an image/decal ID?

Not possible, as states; " CaptureService: Unexpected error while invoking callback: AssetService:CreateEditableImageAsync cannot currently create editable image from temporary texture id. "

Ok, yeah I wasn’t sure if you could use a temporary content id in an EditableImage. As far as I know its impossible to achieve what you’re after then.