What does "stats()" do?

I am not sure if this is the correct category, but recently I’ve discovered that the word “stats” gets syntax highlighting, and apparently it’s a function.

So what does this function actually do?

image

Its a service. You can get ping, CPU, simulated instances ect…

2 Likes


From the page Roblox Globals.
I returns the Stats service from here:
https://developer.roblox.com/en-us/api-reference/class/Stats

It’s preferred by the page that you should use ServiceProvider:GetService() instead.

1 Like