EngediKimHyeYoung / Roblox

0 stars 0 forks source link

밤이 되면 가로등에 불 켜기 #12

Open EngediKimHyeYoung opened 3 years ago

EngediKimHyeYoung commented 3 years ago

local timeControl = game.Lighting local timeVal = 12

local brick = game.Workspace.Set.Light

while true do timeControl.ClockTime = timeVal print(timeVal) wait(2)

if timeVal == 25 then
    timeVal = 0
end

if timeVal > 18 then
    brick.Material = "Neon"
elseif timeVal <7 then
    brick.Material = "Neon"
else
    brick.Material = "Plastic"
end

timeVal = timeVal + 1

end

EngediKimHyeYoung commented 3 years ago

image