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 » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Dynamic Lighting Strobelight [Help?!]

Previous Thread :: Next Thread 
kevinpregan2 is not online. kevinpregan2
Joined: 20 Apr 2011
Total Posts: 38
11 May 2013 03:15 PM
I'm a bit new to scripting, and studio kept underlining this section of the code marked by the <<<<<<<'s pointing at it.

while true do
script.Parent.Color = Really Red
wait(0.2)<<<<<<<<
script.Parent.Color = Really Blue
wait(0.2)
script.Parent.Color = Deep Orange
wait(0.2)
script.Parent.Color = New Yeller
wait(0.2)
script.Parent.Color = Magenta
wait(0.2)
script.Parent.Color = Bright Green
wait(0.2)
end

Could it be the color names or something? Idk.

-kevinpregan2
Report Abuse
StealthKing95 is online. StealthKing95
Joined: 13 Dec 2008
Total Posts: 4263
11 May 2013 03:17 PM
while true do
script.Parent.Color = BrickColor.new("Really red").Color
wait(0.2)<<<<<<<<
script.Parent.Color = BrickColor.new("Really blue").Color
wait(0.2)
script.Parent.Color = BrickColor.new("Deep orange").Color
wait(0.2)
script.Parent.Color = BrickColor.new("New yeller").Color
wait(0.2)
script.Parent.Color = BrickColor.new("Magenta").Color
wait(0.2)
script.Parent.Color = BrickColor.new("Bright green").Color
wait(0.2)
end
Report Abuse
kevinpregan2 is not online. kevinpregan2
Joined: 20 Apr 2011
Total Posts: 38
11 May 2013 03:19 PM
Thanks, but will that work for the SpotLight section if I changed the BrickColor to another name?
Report Abuse
kevinpregan2 is not online. kevinpregan2
Joined: 20 Apr 2011
Total Posts: 38
11 May 2013 03:20 PM
bump
Report Abuse
shotgreen999 is not online. shotgreen999
Joined: 29 Nov 2009
Total Posts: 376
11 May 2013 03:23 PM
Ok so what you will have to do is pick out the color and get the numbers.
Here is what part script will look like:
--your stuff
script.Parent.Color = Color3.new(10/255, 50/255, 77/255);
--your stuff

So what do you will have to do is go into the property of the light and change the color to what you want then get the 3 numbers that it has on color.
take those 3 numbers and put it in what I wrote above.
So if the first number was 6 you would put 6/255 in the first place on the Color3 above.
Hopefuly this makes sence.
Report Abuse
kevinpregan2 is not online. kevinpregan2
Joined: 20 Apr 2011
Total Posts: 38
11 May 2013 03:26 PM
Thanks for helping, but can you get the numbers from an already existing color? such as really red?
Report Abuse
kevinpregan2 is not online. kevinpregan2
Joined: 20 Apr 2011
Total Posts: 38
11 May 2013 03:35 PM
bump
Report Abuse
shotgreen999 is not online. shotgreen999
Joined: 29 Nov 2009
Total Posts: 376
11 May 2013 03:39 PM
As far as I know no.
But what you can do is get the color as close as you can to really red and then get the numbers.
Report Abuse
kevinpregan2 is not online. kevinpregan2
Joined: 20 Apr 2011
Total Posts: 38
11 May 2013 04:31 PM
Yay it worked! Thanks shot :)
Report Abuse
StealthKing95 is online. StealthKing95
Joined: 13 Dec 2008
Total Posts: 4263
11 May 2013 08:34 PM
Yes you can...
Like I already did...

BrickColor.new("Deep orange").Color
Report Abuse
Phantom0922 is not online. Phantom0922
Joined: 15 May 2010
Total Posts: 151
11 May 2013 08:51 PM
Aye, Stealth is Correct.
Report Abuse
RoboX790 is not online. RoboX790
Joined: 05 Nov 2009
Total Posts: 285
12 May 2013 08:03 AM
use Color3 Property, Find The HEX codes from the internet...
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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