Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I know it isnt much, but what does DistributedGameTime Do?

I just want to know. I Hope this isnt againt rules or anything because i just want to understand. not the best at making games XD

5 comments

0

Not trying to waste anyone's time.

0

thank you, ill go check that

0

oooooh. thank you . i didnt really comprehend it at first very well but now i understand. sorry for not checking that first.

0

Don't worry, i think the mods will let it slide xd

1 answer

From the wikia:

The amount of time, in seconds, that the game has been running.

Despite the title, this value is currently not ‘Distributed’ across the client and the server. ``Instead, on the server it represents how long the server has been running. On the client, it ``represents how long the client has been connected to the server.

Developers should not rely on the above behavior, and it is possible this property will be ``synchronized across clients and the server in the future.

Those looking for the time since the program started running should use the ‘time’ function ``instead. See below for a comparison between DistributedGameTime and its alternatives.

This discussion is preserved as it was. New answers, comments, and votes are closed.