Hello, I have a game where the time changes. (It works properly. The text and time changes.) I have a workspace script that checks every 0.9 seconds if the time was a certain time, and upon running this script, it did not work at all. No prints. Can anyone help me with this?
Code:
while true do
wait(0.9)
if game.Lighting.ClockTime == 10.033 then
print("its 10")
end
end
--i deleted the whole script to test this and it STILL doesnt work??
Any WORKING answer is appreciated!

2 comments
i think i might have fixed it idk
dawg, that precision aint it bro. sometimes it will skip over 10.033 and go to maybe 10.045. debug it to the best of your ability, and make a range that you are certain will make it print 10. For example, if clocktime > 9.5 and clocktime < 10.5 or something