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.