Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

TimeOfDay doesnt see the value 6 as 6:00:00?

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

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.