List 'stats()' documentation as deprecated + outdated

On the Stats() document / API, the function that is in the Engine isn’t updated and doesn’t list that the function used for real-time performance inside of games is deprecated and the Script Analysis tool will list that function as “deprecated” as well:


RobloxStudioBeta_q2hM8SiTQ6

Since the Script Analysis shows it’s deprecated as a Global function, the document itself should have a banner saying [Deprecated] as there are other methods for game performance, along with StatsItem that isn’t used often.

As a developer who views this, I don’t want to use a function for global variables or know that it has been deprecated and randomly using it to name variables for leaderstats, would be nice if this was listed and tagged as deprecated.

1 Like

The global variable used to get it is deprecated, not the service itself. stats is likely some poor api design made by roblox many years ago, you can still get stats using game:GetService("Stats")

5 Likes