local timeControl = game.Lighting
local timeVal = 12
local brick = script.Parent
while true do
timeControl.ClockTime = timeVal
Wait(2)
if timeVal == 25 then
timeVal = 0
end
if timeVal > 18 then
brick.Material = Enum.Material.Neon
elseif timeVal < 7 then
brick.Material = Enum.Material.Neon
else brick.Material = "Plastic"
end
timeVal += 1
end
'루아(LUA) > 로블록스' 카테고리의 다른 글
텍스트 라벨에 여러줄 입력하는 3가지 방법 [로블록스 1일 1코딩 #7] (0) | 2022.01.23 |
---|---|
스타터 플레이어 (0) | 2022.01.23 |
Instance.new, AncestryChanged [1일 1코딩 #3] (0) | 2022.01.20 |
텍스트 레이블 카운트 다운[1일 1코딩 #1] (0) | 2022.01.19 |
블렌더에서 만든 캐릭터 로블록스로 옮기기 [로블록스 개발일지#3] (0) | 2022.01.18 |