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: Local lights

Previous Thread :: Next Thread 
PhotonTorpedo is not online. PhotonTorpedo
Joined: 27 Jul 2013
Total Posts: 35
17 Aug 2013 08:11 AM
Can one make local lights? Like local parts but with in them a local light only the client sees. They could come in very handy with night vision goggles and such stuff.
Report Abuse
BJCarpenter is not online. BJCarpenter
Joined: 04 Nov 2008
Total Posts: 4416
17 Aug 2013 09:11 AM
Yes,

I've only use point lights: If the World is completely dark (The Wiki is missing one step, Brightness = 0), u can use it for Fog Of War. Local Player only sees Parts lit-up with a Local Light.

For goggles I guess u would use a SpotLight.





Report Abuse
BJCarpenter is not online. BJCarpenter
Joined: 04 Nov 2008
Total Posts: 4416
17 Aug 2013 09:21 AM
Sample code (but there is just not that much to it...):

local Camera = Workspace.Camera

local light = game.Workspace.Serverlight:clone()

light.CFrame = Target.CFrame
light.Parent = Camera
Report Abuse
BJCarpenter is not online. BJCarpenter
Joined: 04 Nov 2008
Total Posts: 4416
17 Aug 2013 09:25 AM
I only just now noticed that I don't even put it into a Part....?
Report Abuse
BJCarpenter is not online. BJCarpenter
Joined: 04 Nov 2008
Total Posts: 4416
17 Aug 2013 09:27 AM
* umm...sorry. Yeah Light is already in a Part.
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
17 Aug 2013 09:45 AM
You're limited to a 64 stud radius for these stupid lights, though, so don't go trying to make an RTS with normal sized buildings.
Report Abuse
Xtreme101 is not online. Xtreme101
Joined: 03 Jan 2009
Total Posts: 4385
17 Aug 2013 09:46 AM
use use the Local lighting method. My night vision code works great with it.
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