Guys,Do you know how to make a Day and night script and a clock GUI just like the complex and beach house roleplay?I need help!
local Day = game.Lighting.TimeOfDay while true do Day = "14:00:00" Day = "15:00:00" Day = "16:00:00" Day = "17:00:00" Day = "18:00:00" Day = 19:00:00"
etc. Continue through this cycle.
--Although the above code is great and all, it's very long and inefficient. Try this:
Day = game.Lighting.TimeOfDay
while true do Day = 12 if Day == 12 then wait(200) -- place however many seconds you want for each Day +1 elseif Day == 24 then wait(200) -- same goes here Day = 1 end end end -- something like this would take less time as well.
--Made by xMinerHaven, Hope you enjoy!-- --Version 1.4, Made on Thanksgiving 2015-- --Thanks for buying/using-- l = game:service("Lighting") r = game:service("RunService") while true do l:SetMinutesAfterMidnight(l:GetMinutesAfterMidnight()+1) wait(.5) end
(Hope this works for you)