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

0

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.)

0

ik

0

ill try to make it with information from this link

0

problem the script that i want to disable and enable only runs if PlayerAdded:/

0

the*