|
Before saying this is scriptable, I think this can't be scripted easily
Lets start
Ever wanted a brick that changes to colour red at night and blue in the morning?
Well a great idea arrived!
The Illuminating brick Is a brick that can start an illumination at any time [BASED ON REAL LIFE TIME] When you choose illuminating brick it will show up a guI saying the following
-Write your exact time (PLEASE WRITE PM OR AM) ______
-Write the colours that you want to change to: red and white
-Choose time between every colour change (IF MORE THAN 2 COLOURS PLEASE USE 8,6,4,2.) 12 Hours .
Then it will be placed in your world, Yes it can be copied and will stay the same
YES, THE TIME IS BASED AT THE OWNER OF THE PLACE TIME. |
|
|
Bump
I will r3pe you if you say Illuminati confirmed. |
|
|
Oh and you can resize it. |
|
UdoxasJoin Date: 2010-12-04 Post Count: 5783 |
Or you can just change the reflection of a brick to 1.
By the way, Illuminati confirmed.
Error 404 - Siggy Not Found |
|
UdoxasJoin Date: 2010-12-04 Post Count: 5783 |
My bad: I didn't read the whole post. You can use the tick() function to have a invisible GUI clock which you cannot see, and a script that constantly checks the time to change the color or the time.
Error 404 - Siggy Not Found |
|
Zerio920Join Date: 2012-04-06 Post Count: 3311 |
Brah, this only takes like 5-10 lines of code. Roblox is not gonna make an entirely new brick for something you can do with 5-10 lines of code. |
|
|
This is easily scriptable lololololololol
roblox time is equivalent to real time, they just dont use am/pm
so 1pm is 13:00 and 2pm is 14:00 and 3pm is 15:00 and so on...
local time = game.Lighting.TimeOfDay
local part = game.Workspace.IlluminatingPart
if time == "20:00:00" then -- 8:00 PM
local colornight = (BrickColor.new("Really red"))
part.BrickColor = colornight
if part.PointLight ~= nil then
part.PointLight:remove()
wait(.1)
local light = Instance.new("PointLight", workspace)
light.Parent = part
light.Color = Color3.new(255,0,0) -- red light
end
end
if time == "10:00:00" then -- 10:00 AM
local colorday = (BrickColor.new("Really blue")
part.BrickColor = colorday
if part.PointLight ~= nil then
part.PointLight:remove()
wait(.1)
local light1 = Instance.new("PointLight", workspace)
light1.Parent = part
light1.Color = Color3.new(0,0,255) -- blue light
end
end
|
|
|
lol i cant believe i wasted 10 minutes writing that script |
|
|
Error in the script, sorry.
This is the completely working script:
local time = game.Lighting.TimeOfDay
local part = game.Workspace.IlluminatingPart
if time == "20:00:00" then -- 8:00 PM
local colornight = (BrickColor.new("Really red"))
part.BrickColor = colornight
if part.PointLight ~= nil then
part.PointLight:remove()
wait(.1)
local light = Instance.new("PointLight", workspace)
light.Parent = part
light.Color = Color3.new(255,0,0) -- red light
end
end
if time == "10:00:00" then -- 10:00 AM
local colorday = (BrickColor.new("Really blue"))
part.BrickColor = colorday
if part.PointLight ~= nil then
part.PointLight:remove()
wait(.1)
local light1 = Instance.new("PointLight", workspace)
light1.Parent = part
light1.Color = Color3.new(0,0,255) -- blue light
end
end |
|
|
k upgraded script..
sorry its hard to script and to see the errors without studio
local time = game.Lighting.TimeOfDay
local part = game.Workspace.IlluminatingPart
if time == "20:00:00" then -- 8:00 PM
local colornight = (BrickColor.new("Really red"))
part.BrickColor = colornight
if part.PointLight ~= nil then
part.PointLight:remove()
wait(.1)
local light = Instance.new("PointLight", workspace)
light.Parent = part
light.Color = Color3.new(255,0,0) -- red light
end
end
if time == "10:00:00" or time == "15:00:00" then -- 10:00 AM or 1:00 PM
local colorday = (BrickColor.new("Really blue"))
part.BrickColor = colorday
if part.PointLight ~= nil then
part.PointLight:remove()
wait(.1)
local light1 = Instance.new("PointLight", workspace)
light1.Parent = part
light1.Color = Color3.new(0,0,255) -- blue light
end
end |
|
GraySheepJoin Date: 2011-10-08 Post Count: 12520 |
Illuminating?!?! ILLUMINATI IS INVADING! HEELP!!
~ sliding on top of siggies ~ |
|
|
It's pronounced ill-oom-in-ate-ing not illuminati-ing |
|
|
easy script is easy:
local brick = script.Parent;
coroutine.wrap(function()
while wait(60) do
if(tonumber(("%x"):format(math.floor(game.Lighting:getMinutesAfterMidnight()/60)))>=18 or tonumber(("%x"):format(math.floor(game.Lighting:getMinutesAfterMidnight()/60))) <=4) then
brick.BrickColor = BrickColor.Red();
else
brick.BrickColor = BrickColor.Blue();
end;
end;
end)(); |
|
|