generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Roblox » Suggestions & Ideas
Home Search
 

Re: Colour changing brick/Illuminating Brick

Previous Thread :: Next Thread 
flamedude300000 is not online. flamedude300000
Joined: 20 Jul 2013
Total Posts: 424
16 Nov 2014 12:22 PM
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.
Report Abuse
flamedude300000 is not online. flamedude300000
Joined: 20 Jul 2013
Total Posts: 424
16 Nov 2014 12:25 PM
Bump

I will r3pe you if you say Illuminati confirmed.
Report Abuse
flamedude300000 is not online. flamedude300000
Joined: 20 Jul 2013
Total Posts: 424
16 Nov 2014 12:28 PM
Oh and you can resize it.
Report Abuse
Udoxas is not online. Udoxas
Joined: 04 Dec 2010
Total Posts: 5212
16 Nov 2014 12:28 PM
Or you can just change the reflection of a brick to 1.
By the way, Illuminati confirmed.

Error 404 - Siggy Not Found
Report Abuse
Udoxas is not online. Udoxas
Joined: 04 Dec 2010
Total Posts: 5212
16 Nov 2014 12:30 PM
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
Report Abuse
Zerio920 is not online. Zerio920
Joined: 06 Apr 2012
Total Posts: 3311
16 Nov 2014 12:33 PM
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.
Report Abuse
cpmoderator12345 is not online. cpmoderator12345
Joined: 26 Jan 2013
Total Posts: 15651
16 Nov 2014 12:54 PM
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


Report Abuse
cpmoderator12345 is not online. cpmoderator12345
Joined: 26 Jan 2013
Total Posts: 15651
16 Nov 2014 12:55 PM
lol i cant believe i wasted 10 minutes writing that script
Report Abuse
cpmoderator12345 is not online. cpmoderator12345
Joined: 26 Jan 2013
Total Posts: 15651
16 Nov 2014 12:57 PM
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
Report Abuse
cpmoderator12345 is not online. cpmoderator12345
Joined: 26 Jan 2013
Total Posts: 15651
16 Nov 2014 01:00 PM
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
Report Abuse
GraySheep is not online. GraySheep
Joined: 08 Oct 2011
Total Posts: 12520
16 Nov 2014 03:00 PM
Illuminating?!?! ILLUMINATI IS INVADING! HEELP!!

~ sliding on top of siggies ~
Report Abuse
cpmoderator12345 is not online. cpmoderator12345
Joined: 26 Jan 2013
Total Posts: 15651
16 Nov 2014 03:50 PM
It's pronounced ill-oom-in-ate-ing not illuminati-ing
Report Abuse
KOTwarrior is not online. KOTwarrior
Joined: 13 Jun 2012
Total Posts: 4376
16 Nov 2014 04:04 PM
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)();
Report Abuse
cpmoderator12345 is not online. cpmoderator12345
Joined: 26 Jan 2013
Total Posts: 15651
16 Nov 2014 04:17 PM
urs shorter
mines easier
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Roblox » Suggestions & Ideas
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image