-- Regular Script in ServerScriptService. Use a spare practice place.
-- Documentation-reviewed; Roblox Studio execution is not yet verified.
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local CYCLE_SECONDS = 600 -- Ten real minutes for one full 24-hour cycle.
local START_HOUR = 6
assert(CYCLE_SECONDS > 0 and CYCLE_SECONDS < math.huge, "Use a positive finite cycle duration")
assert(START_HOUR >= 0 and START_HOUR < 24, "Start hour must be from 0 up to, but not including, 24")
if ReplicatedStorage:FindFirstChild("PracticeDayNight") then
    warn("PracticeDayNight already exists; remove the duplicate controller in your practice place")
    return
end
local config = Instance.new("Folder")
config.Name = "PracticeDayNight"
config:SetAttribute("CycleSeconds", CYCLE_SECONDS)
config:SetAttribute("StartHour", START_HOUR)
config:SetAttribute("Epoch", workspace:GetServerTimeNow())
config.Parent = ReplicatedStorage
