"how to make a 24 minute day night script" Code Answer's
You're definitely familiar with the best coding language Whatever that developers use to develop their projects and they get all their queries like "how to make a 24 minute day night script" answered properly. Developers are finding an appropriate answer about how to make a 24 minute day night script related to the Whatever coding language. By visiting this online portal developers get answers concerning Whatever codes question like how to make a 24 minute day night script. Enter your desired code related query in the search bar and get every piece of information about Whatever code related question on how to make a 24 minute day night script.
how to make a 24 minute day night script
local StartTime = 12
local showTime = true
function startDayLoop()
local l = game.Lighting
l.TimeOfDay = StartTime
local t = StartTime
local m = nil
local am = " AM"
local pm = " PM"
if (showTime) then
local M = Instance.new("Hint")
M.Name = "Time"
M.Text = "Time - " .. string.sub(l.TimeOfDay,1,2) .. string.sub(l.TimeOfDay,3,5)
M.Parent = game.Workspace
m = M
end
while true do
l:SetMinutesAfterMidnight(l:GetMinutesAfterMidnight() +0.06)
if (showTime) then
if (tonumber(string.sub(l.TimeOfDay,1,2))/12 >= 1) then
if (tonumber(string.sub(l.TimeOfDay,1,2))/12 == 1) then
m.Text = "Time - 12" .. string.sub(l.TimeOfDay,3,5) .. pm
else
m.Text = "Time - " .. tostring(tonumber(string.sub(l.TimeOfDay,1,2))-12) .. string.sub(l.TimeOfDay,3,5) .. pm
end
else
if (tonumber(string.sub(l.TimeOfDay,1,2)) == 0) then
m.Text = "Time - 12" .. string.sub(l.TimeOfDay,3,5) .. am
else
m.Text = "Time - " .. string.sub(l.TimeOfDay,1,2) .. string.sub(l.TimeOfDay,3,5) .. am
end
end
end
wait(0.06)
end
end
startDayLoop()
-- 24 Minute Day/Night Script By:
-- Rigby#9052 ON Discord.
All those coders who are working on the Whatever based application and are stuck on how to make a 24 minute day night script can get a collection of related answers to their query. Programmers need to enter their query on how to make a 24 minute day night script related to Whatever code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about how to make a 24 minute day night script for the programmers working on Whatever code while coding their module. Coders are also allowed to rectify already present answers of how to make a 24 minute day night script while working on the Whatever language code. Developers can add up suggestions if they deem fit any other answer relating to "how to make a 24 minute day night script". Visit this developer's friendly online web community, CodeProZone, and get your queries like how to make a 24 minute day night script resolved professionally and stay updated to the latest Whatever updates.