How would you make a light turn on between lets say... 17:00:00 and 08:00:00 and for the time from 08:00:00 to 17:00:00 its off??
And how would you edit the script to make the light flash between the of 17:00:00 and 08:00:00? I've tried and dosent work, heres my script;
while true do
if game.Lighting.TimeOfDay >= "17:00:00" then
repeat
game.Workspace.Light.PointLight.Enabled = true
wait (2)
game.Workspace.Light.PointLight.Enabled = false
if game.Lighting.TimeOfDay >= "08:00:00" then
game.Workspace.Light.PointLight.Enabled = false
Notes: The script is in a block, its a normal script, and im using 'PointLight' for the lighting.. Thanks =)

4 comments
You did not add any kind of 'end' to end the blocks of code, that is the main problem in your script.
I've added an 'end' to line 10, makes no difference, If I add one after line 6 It says "expected until(to close to repeat at line 3), got 'end' ???
A 'repeat' loop requires an 'until == condition', not an 'end'.
I've tried many variations of this script, still dosent work :l