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 » Scripters
Home Search
 

Re: How do I control OutdoorAmbient?

Previous Thread :: Next Thread 
cokePanda is not online. cokePanda
Joined: 30 Dec 2008
Total Posts: 1901
16 Mar 2015 09:07 PM
game.Lighting.OutdoorAmbient.Color3 = Color3.new("54, 54, 54")

or is that wrong? Must be because it's not working..
Report Abuse
kert109 is not online. kert109
Joined: 31 Dec 2009
Total Posts: 681
16 Mar 2015 09:11 PM
It's like this:

game.Lighting.OutdoorAmbient.Color3 = Color3.new(1,1,1)

In color3, 1 is 255 while 0 is 0.

Color3.new(54/255,54/255,54/255) -- That's what you want.
Report Abuse
zackeryjerrypowers is not online. zackeryjerrypowers
Joined: 01 Aug 2008
Total Posts: 1515
16 Mar 2015 09:11 PM
game.Lighting.OutdoorAmbient = Color3.new("54, 54, 54")

Is that what you meant..?
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
16 Mar 2015 09:12 PM
Color3.new(54/255,54/255,54/255) is correct.
Report Abuse
cokePanda is not online. cokePanda
Joined: 30 Dec 2008
Total Posts: 1901
16 Mar 2015 09:20 PM
02:20:06.203 - Color3 cannot be assigned to
02:20:06.204 - Script 'Workspace.Brightness', Line 6
02:20:06.204 - Stack End
Report Abuse
cokePanda is not online. cokePanda
Joined: 30 Dec 2008
Total Posts: 1901
16 Mar 2015 09:21 PM
code:

while true do
wait(0.1)
local t = tonumber(game.Lighting.TimeOfDay:match("(%d%d):"))
if t >= 4 and t < 17 then
game.Lighting.Brightness = 1
game.Lighting.OutdoorAmbient.Color3 = Color3.new("54/255,54/255,54/255")
else game.Lighting.Brightness = 0
game.Lighting.OutdoorAmbient.Color3 = Color3.new("127/255,127/255,127/255")
end
end


Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
16 Mar 2015 09:31 PM
It shouldn't be a string. Get rid of the quotes in Color3.new
Report Abuse
cokePanda is not online. cokePanda
Joined: 30 Dec 2008
Total Posts: 1901
16 Mar 2015 09:37 PM
Doesn't work :/
Report Abuse
cokePanda is not online. cokePanda
Joined: 30 Dec 2008
Total Posts: 1901
16 Mar 2015 09:38 PM
Got it working :)
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
16 Mar 2015 09:39 PM
game.Lighting.OutdoorAmbient = Color3.new(127/255,127/255,127/255)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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