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

Previous Thread :: Next Thread 
BlabBlox is not online. BlabBlox
Joined: 14 Jul 2011
Total Posts: 189
02 Jun 2012 10:13 PM
Ive been testing my own dynamic lighting script and its ok i guess (example at my place) but i want to have a night vission goggle feature but.. i only want the one person with the goggles to have it and no one else to see it and im wondering if thats possible without using a GUI?
Report Abuse
IamAwesome777 is not online. IamAwesome777
Joined: 18 Jul 2011
Total Posts: 2640
02 Jun 2012 10:18 PM
Yeah, that could be possible if you use a tool, some CFraming (To CFrame the goggles to the players head) And some scripting.
Report Abuse
BlabBlox is not online. BlabBlox
Joined: 14 Jul 2011
Total Posts: 189
02 Jun 2012 11:05 PM
i dont follow....
Report Abuse
BlabBlox is not online. BlabBlox
Joined: 14 Jul 2011
Total Posts: 189
03 Jun 2012 08:50 PM
please help,
Report Abuse
TheLuaTester is not online. TheLuaTester
Joined: 24 May 2012
Total Posts: 168
03 Jun 2012 09:02 PM
Lol, Awesome was pretty clear. Just use a tool for the NightVision Goggles, and then use a gui, cframe the tool to the players eye area and BOOM! You got a nifty lil' tool there!
Report Abuse
BlabBlox is not online. BlabBlox
Joined: 14 Jul 2011
Total Posts: 189
03 Jun 2012 09:30 PM
I know but im terrible with GUI's so im trying to avoid that.
Report Abuse
TheLuaTester is not online. TheLuaTester
Joined: 24 May 2012
Total Posts: 168
03 Jun 2012 09:33 PM
Well then, I suggest looking in Free Models, because if you refuse to use a simple way, then use a more simple way, take it.....................'nuff said....
Report Abuse
Sam3812 is not online. Sam3812
Joined: 23 Nov 2007
Total Posts: 1703
03 Jun 2012 09:34 PM
Create a button in a screenGui called nightVisionToggle or something and then use that to create and destroy a full size semi-transparent frame with a greenish colour.

on = false
frame = ancestorytoframe

nightVisionToggle.MouseButton1Down:connect(function()
if on == true then
frame.Visible = false
elseif on == false then
frame.visible = true
end
end)

rough code is there for you
Report Abuse
BlabBlox is not online. BlabBlox
Joined: 14 Jul 2011
Total Posts: 189
03 Jun 2012 09:37 PM
I refuse to use free models that really makes me mad when people do that.
Report Abuse
jode6543 is not online. jode6543
Joined: 16 Jun 2009
Total Posts: 5363
03 Jun 2012 09:40 PM
I applaud you, sir. That is the fastest-updating dynamic lighting system I've seen yet.

Anyways, I think your only answer is Guis. Unless you want to use LocalParts.

-Jode
Report Abuse
BlabBlox is not online. BlabBlox
Joined: 14 Jul 2011
Total Posts: 189
03 Jun 2012 09:42 PM
thank you jode it wasent easy to make took me awhile but im trying to make it faster for car headlights.
Report Abuse
Sam3812 is not online. Sam3812
Joined: 23 Nov 2007
Total Posts: 1703
03 Jun 2012 10:01 PM
Have you even looked at my post on using a Gui for nightvision?
Report Abuse
BlabBlox is not online. BlabBlox
Joined: 14 Jul 2011
Total Posts: 189
03 Jun 2012 10:11 PM
wait what? im sorry i wasent paying attention i guess ill try it but like i said i suck at guis
Report Abuse
Sam3812 is not online. Sam3812
Joined: 23 Nov 2007
Total Posts: 1703
03 Jun 2012 10:13 PM
in starterGui create the following


ScreenGui
-NightVisionFrame (Green and Transparentish)
-NightVisionToggle (TextButton)

then use the forementioned script.
Report Abuse
BlabBlox is not online. BlabBlox
Joined: 14 Jul 2011
Total Posts: 189
03 Jun 2012 10:28 PM
I tried it and i think i completely screwed it up it dosent seem right
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
03 Jun 2012 10:31 PM
@Sam, do a Green frame with Green and Transparent some, Make the PLace dark, and it's even Harder to see WITH the Night Vision
Report Abuse
Sam3812 is not online. Sam3812
Joined: 23 Nov 2007
Total Posts: 1703
03 Jun 2012 10:36 PM
you can raise the ambience or brightness in lighting to fix that
Report Abuse
BlabBlox is not online. BlabBlox
Joined: 14 Jul 2011
Total Posts: 189
03 Jun 2012 10:36 PM
yea i ballsed it up ofc.... :'C i dont even know where the flipin button is i made it it should be here but its like gone
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
03 Jun 2012 10:37 PM
@Sam, then that would change the Apperance for Everyone. You'd want a Dark night where the Night Vision actually HELPED
Report Abuse
Sam3812 is not online. Sam3812
Joined: 23 Nov 2007
Total Posts: 1703
03 Jun 2012 10:41 PM
I know that, which is why Gui's are the best option,
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
03 Jun 2012 10:43 PM
A Gui like that would make visibility worse though, I've tried it before
Report Abuse
BlabBlox is not online. BlabBlox
Joined: 14 Jul 2011
Total Posts: 189
03 Jun 2012 10:44 PM
i actually think i understand what you mean captain and that is a possibility i might be able to do that
Report Abuse
BlabBlox is not online. BlabBlox
Joined: 14 Jul 2011
Total Posts: 189
04 Jun 2012 06:51 PM
i guess ill forget the night vision thing for now i think i know how to do it but i have other ideas as well before i script that monstrocity so anyone have any ideas how i can make the Lighting update even faster?
Report Abuse
chaoticregandpledge is not online. chaoticregandpledge
Joined: 04 Dec 2009
Total Posts: 2894
04 Jun 2012 06:57 PM
Truthfully, that isn't dynamic lighting. That just uses magnitude like mine :3.

Lua Learners - Writer
Report Abuse
BlabBlox is not online. BlabBlox
Joined: 14 Jul 2011
Total Posts: 189
04 Jun 2012 07:47 PM
yea but its pretty much as close as it gets
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