i want to make a script that execute ween the timeofday is greater than 18:00:00 and stops at 08:00:00 timeofday but i did not know how to do it:( someone plz tell me how:) Edit: i have a problem i need to disable a script that runs only ween player joins:
game:GetService("Players").PlayerAdded:connect(function(player)
while true do
wait(5)
lessons=math.random(1,5)
if lessons == 1 then
--swimming
game:WaitForChild("ServerStorage").Lessons:clone().Parent = player.PlayerGui
player.PlayerGuiLessons.Swimming.Visible = true
wait(60)
end
end
end)

6 comments
Use this http://wiki.roblox.com/index.php?title=Making_a_Day/Night_Cycle and take a guess on how to do it. It's better to learn yourself then ask for help, because you can develop your own methods. (Hint: You can disable scripts.)
ik
ill try to make it with information from this link
problem the script that i want to disable and enable only runs if PlayerAdded:/
here is the script i want to do it with https://scriptinghelpers.org/questions/33070/serverscriptservicelessons5-attempt-to-index-field-localplayer-a-nil-value the script from he answare
the*