Hey y'all, so I've been working on a day/night system for my game and have ran into an issue. In ReplicatedStorage I'm using string values to store the time of day and weekday for other module scripts to eventually reference, but I noticed that they simply are not changing at the appropriate times. Can anyone look over my code and see if anything sticks out as wrong? Any and all help will be appreciated!
#String Values won't update
1 messages · Page 1 of 1 (latest)
any errors in output
Nope
alr im back from school so basically im guessing its that lighting.clocktime might be skipping numbers due to the fact its a float so youre pretty unlikely to get 18 on the dot
try and add a tolerance to it lime +- 0.1
and also in the if statement in changeWeekDay make currentWeekDay 1 instead
ill try test ur code soon
How exactly do I add a tolerance? This is my first time hearing of that lol