how to change brick color roblox script code example
Example 1: how to make a color changing brick in roblox studio
local MyPart = script.Parent
while wait(0.1) do
MyPart.BrickColor = BrickColor.random()
end
Example 2: 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