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

How to display time in a gui? Local time?

Hello,

So I was wondering how would I go about displaying the local time in a Gui? I want to be able to have players know their local time for a certain part in the game.

Thanks,

Anthony

2 comments

0

What do you mean by local time?

0

Pretty sure he means local to their timezone

2 answers

Well I'm guessing your asking how can I make certain players see certain time of days. If FilteringEnabled is set to true in workspace then we can use a localscript to change the time of day on a client to something else so that only that player can see what happened.

-localscript

game.Lighting.TimeOfDay=1

Turn on FE(Filtering Enabled) and just insert a local script that will effect the Client aka the player Here is a example script: Local Script:

game.Lighting.TimeOfDay=1

Local scripts alone will only effect your client.

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