PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience

Output How Long a Server Has Run

Output How Long a Server Has Run

Jun 23 2018, 2:02 AM PST

Problem

You want to figure out how long the server has been running.

Solution

Use the Workspace/DistributedGameTime|DistributedGameTime property of Workspace|game.Workspace.

print(game.Workspace.DistributedGameTime)

Discussion

The Workspace/DistributedGameTime|DistributedGameTime property is how long the server has been running, in seconds.

Tags:
  • server
  • script