📜  什么是 luaa 的变色脚本 - Lua 代码示例

📅  最后修改于: 2022-03-11 14:54:53.992000             🧑  作者: Mango

代码示例1
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