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: Use script to change lighting?

Previous Thread :: Next Thread 
Avocation is not online. Avocation
Joined: 22 Mar 2011
Total Posts: 107
28 Feb 2015 11:09 AM
I am trying to make a script change the lighting settings in my game when it starts so I don't have to change them back and forth while I edit, I am using Color3 and it isn't working.

local L = game.Lighting

function ServerStart()
L.Ambient.Color3 = Color3.new(0, 0, 0)
L.Brightness = 1
L.ColorShift_Bottom.Color3 = Color3.new(126, 0, 0)
L.ColorShift_Top.Color3 = Color3.new(27, 0, 0)
L.GlobalShadows = true
L.OutDoorAmbient.Color3 = Color3.new(12, 12, 12)
L.Outlines = false
L.ShadowColor.Color3 = Color3.new(22, 22, 22)
L.TimeOfDay = 21
L.FogColor.Color3 = Color3.new(0, 0, 0)
L.FogEnd = 180
L.FogStart = 50
end

ServerStart()
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
28 Feb 2015 11:10 AM
Remove .Color3 after the properties
Report Abuse
Avocation is not online. Avocation
Joined: 22 Mar 2011
Total Posts: 107
28 Feb 2015 11:13 AM
Thanks!
Report Abuse
drager980 is online. drager980
Joined: 25 May 2009
Total Posts: 13385
28 Feb 2015 11:13 AM
local L = game.Lighting

function ServerStart()
L.Ambient = Color3.new(0, 0, 0)
L.Brightness = 1
L.ColorShift_Bottom = Color3.new(126/255, 0, 0)
L.ColorShift_Top = Color3.new(27, 0, 0)
L.GlobalShadows = true
L.OutDoorAmbient = Color3.new(12/255, 12/255, 12/255)
L.Outlines = false
L.ShadowColor = Color3.new(22/255, 22/255, 22/255)
L.TimeOfDay = 21
L.FogColor = Color3.new(0, 0, 0)
L.FogEnd = 180
L.FogStart = 50
end

ServerStart()



AND THE TIGER GOES ROAR
Report Abuse
Avocation is not online. Avocation
Joined: 22 Mar 2011
Total Posts: 107
01 Mar 2015 10:51 AM
ohhhh
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