Changing clock time with touched part

I’m working on a story game, where you enter a cave and touch a part and suddenly the clock time from day changes to night. I was asking if this could work, or if you can give me more tips. Recently I also read this article here: Lighting | Documentation - Roblox Creator Hub and it didn’t really helped me, allthough I could understand a bit.

Also this was my script attempt
– script.Parent.Touched:Connect(function()
game.Lighting.ClockTime = 05:53:52
end)

ClockTime uses a string, not a sequence of numbers.

script.Parent.Touched:Connect(function()
game.Lighting.ClockTime = "05:53:52"
end)
7 Likes

Oh thank you, sorry I’m kinda new into scripting and lighting, but you really helped me out!

1 Like