How would i go about doing this? It is supposed to give me bricks(a leaderstat value) when the TimeOfDay is greater than the start, and less than end.
If i have a start and end value(they are numbers for hours),
Hours = stats.Hours Start = Hours.Start End = Hours.End
start = 6 end = 18
I dont think TimeOfDay sees the value 6 as 6:00:00
if Game.Lighting.TimeOfDay > Start.Value and Game.Lighting.TimeOfDay < End.Value then while true do Bricks.Value = Bricks.Value + BPS.Value wait(1) end end
start = 6 end = 18 if game.Lighting.TimeOfDay > "0"..start..":00:00" and game.Lighting.TimeOfDay < end..":00:00" then while true do Bricks.Value = Bricks.Value + BPS.Value wait(1) end end