Stats() highlights in Script Editor even though it's deprecated

If you use the function stats() inside of a script in a game, it’ll highlight it as it’s a deprecated function that was used a while ago and now is replaced with other functions today.

How to reproduce:

  • Open up Roblox Studio.
  • Create any type of script inside of Workspace.
  • Use the following code:
local stats ="IntValue")

stats.Name  = "Stat"




Script Analysis property even lists it as a deprecated global function. Even though it’s not commonly used, it’ll be frustrating for developers who like highlighted variables or use lowercased letters in the beginning.