# It's About Time!

Showcasing some pretty simple medieval and ancient timekeeping devices, recreated in Roblox.

Sundial and Candle Clock video:

And yes, the candle clock doesn’t have a flame, but this isn’t a showcase of building, more of a showcase of concepts and coding. (the motto, Sine Sole Sileo, means, “Without the sun I am silent.” It’s a common sundial motto.)

Code behind them:

``````-- made by Ty_IsHomeSchooled

function sundial()
repeat
game.Lighting.ClockTime += 0.05
wait(.1)
until math.floor(game.Lighting.ClockTime) == 18
end

function candleClock(beginTime, endTime)
local wick = workspace.Candle.Wick
local candle = workspace.Candle.Wax
local TO_DIVIDE = ((endTime - beginTime)*60)--*60
if TO_DIVIDE < 0 then
print("Beginning time must be lower than ending time!")
end
local increment = candle.Size.X/TO_DIVIDE
repeat
candle.Size = Vector3.new(candle.Size.X - increment, 0.461, 0.359)
wick.Size = Vector3.new(candle.Size.X, 0.25, 0.179)
candle.Position = Vector3.new(23.637, candle.Position.Y - ((candle.Size.X - increment)/TO_DIVIDE), 2.891)
wick.Position = candle.Position + Vector3.new(0, 0.1, 0)
game.Lighting.ClockTime += (1/60)--/60
wait(.1)
until math.floor(game.Lighting.ClockTime) >= math.floor(endTime)
end
sundial()
wait(3)
game.Lighting.ClockTime = 7
candleClock(7, 9)
-- remove the commented numbers for increments every second. Much slower
``````

More videos coming soon, ideally with obsolete and current timekeeping devices.

6 Likes

Cool! keep up the good work

1 Like

What exactly do you mean by this?

the old style clock in the beginning. or is it the candle clock?

The sundial? You just have to input every hour in `Lighting.ClockTime` until the shadow doesn’t cast, make and number parts to show the time, and then make a day/night script.

yeah that Sundial but the candle is the code in the vid right? Mind if i use it? definitely credit tho

The sundial and candle is the code, and you can use it for free as long as you credit. If you notice, the function sundial() is very simple, but complex mathematical equations had to be done for the candle clock.

1 Like