How to Change the Time Setting by Clicking on Object

Last updated: February 10, 2025

  1. Place a Part/Prop that you want the players to click on.
Note: You can't do this with grouped parts/props.

Prop / Part

  1. Click on the part that you want to make into a Kill Block. Then open the Code Builder.

  2. Go to the Events Section, then grab the "When player clicks " block.

  3. Go to the Looks Section, then grab the "Hide Object " block.

  4. Go to the Game Section, then grab the "Change Plot's Lighting Clock Time... " block.

  5. From the drop-down, make sure you choose **Clock Time **instead of brightness.

You can use Clock Time for the time of day (Day/Night) or Brightness (The Brightness of the Sun/Moonlight).
  1. Now, the value on the right determines what time the players will change the time and day of the plot to.
0 : Midnight
10 : Sunny Day
20 : Evening / Night Day

Code Sample (For Reference)

Was this article helpful?

Thanks for your feedback!