Analyticsservice is not a member of game randomly breaks my game.

Since a few hours ago i started receiving messages saying people were unable to spawn in.
As a result tons of servers got softlocked and it looked like one of the main scripts was unable to load properly.

I investigated it a bit and for some unknown reason it fails to load because analyticsservice is not a member anymore of game even though it is and it never had any issues.

My game lost lots of players because of this and i have to reset all my servers to solve this now.

image

Game affected: 🔨Plane Crazy🔨 | Play on Roblox

We’ve been having issues pop up with AnalyticsService recently as well. Not sure what this error means but it only begun a few hours ago with the latest version.

1 Like

Are you able to share the line of code that this error is occurring on? Is it one of the following?

-- This should work and guarantees the service will be created if it hasn't yet
game:GetService("AnalyticsService")

-- These can error if the service hasn't been created yet
game.AnalyticsService
game["AnalyticsService"]

It was game.AnalyticsService.

I changed it to :getservice and that solved it but i had to restart my servers to fix broken servers

For future reference whenever accessing a service, always use GetService. If the service doesn’t exist yet it will create it for you, so it’s guaranteed to succeed.