roblox change part color script code example

Example 1: What is The Color changing script for luaa

local part = script.Parent

while true do
    wait(.1)
    local timeoday = game.Lighting.ClockTime 
    if timeoday > 17.6 or timeoday < 6.4 then
         script.parent.BrickColor = BrickColor.new("Institutional white")
    else
        script.parent.BrickColor = BrickColor.new("Really black")
    end
end

--Script By Rigby#9052 on Discord

Example 2: brickccolor scripts roblox

-- Changes color of PracticePartgame.Workspace.PracticePart.BrickColor = BrickColor.new(0.9,0.8,0.1)