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: Color3.new D:

Previous Thread :: Next Thread 
TheShoeBox is not online. TheShoeBox
Joined: 20 Aug 2010
Total Posts: 5022
04 Jul 2013 12:23 PM
Color3.new is being silly.

game.Lighting.Ambient=Color3.new(1,1,1)
wait(1)
game.Lighting.FogColor=Color3.new(0,0,0)

Whenever I use this, it switches the fog color and ambient for about a second. Then everything goes to pure white (255,255,255)
Report Abuse
Cupkle is not online. Cupkle
Joined: 18 Jun 2012
Total Posts: 180
04 Jul 2013 12:25 PM
Is it in a loop?

Because this is what it'd look like.

game.Lighting.Ambient=Color3.new(1,1,1)
wait(1)
game.Lighting.FogColor=Color3.new(0,0,0)
game.Lighting.Ambient=Color3.new(1,1,1)
wait(1)
game.Lighting.FogColor=Color3.new(0,0,0)
game.Lighting.Ambient=Color3.new(1,1,1)
wait(1)
game.Lighting.FogColor=Color3.new(0,0,0)
...
Report Abuse
TheShoeBox is not online. TheShoeBox
Joined: 20 Aug 2010
Total Posts: 5022
04 Jul 2013 12:29 PM
Nooo.
I wouldn't put it like that. I just didn't want to post the whole script since it would make things too confusing xDD.

But I fixed it.

For some reason ROBLOX doesn't like Color3.new(1,1,1)

However, 0,0,0 seems to be working.
Report Abuse
TheShoeBox is not online. TheShoeBox
Joined: 20 Aug 2010
Total Posts: 5022
04 Jul 2013 12:29 PM
Odd, huh?
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
04 Jul 2013 01:13 PM
Color3 is from 0-1. So 1, 1, 1 is supposed to be pure white, with 0, 0, 0 being pitch black.
Report Abuse
TheShoeBox is not online. TheShoeBox
Joined: 20 Aug 2010
Total Posts: 5022
04 Jul 2013 02:58 PM
I thought it was to 255?
Report Abuse
huner2 is not online. huner2
Joined: 27 Apr 2008
Total Posts: 1681
04 Jul 2013 02:59 PM
If you want to do more precise colors with Color3 do this:

Color3.new(somenumber/255,somenumber/255,somenumber/255)
Report Abuse
TheShoeBox is not online. TheShoeBox
Joined: 20 Aug 2010
Total Posts: 5022
04 Jul 2013 03:05 PM
OHHH.
I've seen that done, I never understood.

Thanks! :)

■▬▬ ARCANE: http://www.roblox.com/Groups/group.aspx?gid=94762 ▬▬■
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