How to detect how much memory is in a game

Hello there, I am on day 2 of building my own custom console and going onto how to get the memory of a game.

I have looked at other posts but have not understood them.

Any help would be nice, Thank u for your time!

https://developer.roblox.com/en-us/api-reference/class/Stats

This service has all the info you need.

Thank u!, i guess this already solved my problem.