According to studio,
collectgarbage is deprecated and we are to use
However, gcinfo is not documented on the Lua Globals hub page. To add to the confusion,
collectgarbage is listed and not marked as deprecated.
Searching the dev hub for
gcinfo does not bring up any info either. I also looked for it under Roblox Globals.
This seems to have sparked some confusion for others as well: