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: How does night vision work?

Previous Thread :: Next Thread 
Kinnis97 is not online. Kinnis97
Joined: 21 Feb 2010
Total Posts: 1683
23 Mar 2014 09:41 PM
In this new world of dynamic lighting, how are people creating these local night vision scripts as seen in Darkness 2 and other games? I don't get it.
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
23 Mar 2014 09:42 PM
Local Parts

Go search the wiki.
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
23 Mar 2014 09:47 PM
I don't think local parts have anything to do with it, lol. He's changing the player's ambient as it seems.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
23 Mar 2014 09:48 PM
A glitch--local lighting (I'm assuming that's what they use, I haven't really played the game)
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
23 Mar 2014 09:48 PM
There's a glitch?
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
23 Mar 2014 09:51 PM
I tried local lighting a month ago and failed.
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
23 Mar 2014 09:51 PM
It's more of taking advantage of latency than a glitch. ^_^
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
23 Mar 2014 09:51 PM
Yeah, takes advantage of response time.
Just search local lighting on the game page
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
23 Mar 2014 09:52 PM
It seems like a glitch to me since it's not really meant to work.
Report Abuse
roboslayer10 is not online. roboslayer10
Joined: 08 Aug 2011
Total Posts: 206
23 Mar 2014 09:52 PM
a HA. this is where I figured it out on my own.

Local parts, no idea what that means, but heres a way to make it work:

You CANNOT set a players ambient client side, basically you cannot (as far as I know) set the light level to high for one player while everyone else cannot see.

However, I learned that if you use a LocalScript to create a part in the CURRENTCAMERA, then you, and ONLY you can see that part. This is how ROBLOX used teleporters visible only to you in the Easter Egg Hunt 2013.

I went further: You create a light INSIDE the part INSIDE the CurrentCamera.
Only this part, and this light, can be seen by you.

So, I took it one more step further.

I made a whole bunch of parts inside the CurrentCamera, all with lights at range 60, and spread them apart, anchoring them.

Result: in a server, Player1 could see the parts and lights, while Player2 is stuck in the dark.



Conclusion: Use a LocalScript to create parts inside the CurrentCamera, then Instance Lights inside those parts (you could also clone parts with lights already in it and paste it in the Camera). It acts like the part is real, but you and only you can see it.




Report Abuse
roboslayer10 is not online. roboslayer10
Joined: 08 Aug 2011
Total Posts: 206
23 Mar 2014 09:56 PM
I made an entire game on this, called dimensions.

Its where you can jump between dimensions while doing an obby.

When you press different buttons on the keyboard, it will "warp" you into the dimension you chose.

You go through this obby, hopping between dimensions to jump on parts that weren't there before.

The cool and amazing thing is, to other people, your FLOATING. If they try to jump to the platform your standing on, but is in the wrong dimension, the fall through as if there is no part there.

I know this isn't the place to advertise, but it bests explains the CurrentCamera dealio. Keep in mind, this is heavily influenced by Oblixar.

http://www.roblox.com/Dimensions-place?id=134839605
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
23 Mar 2014 09:56 PM
Why do you add so many enters?
Report Abuse
roboslayer10 is not online. roboslayer10
Joined: 08 Aug 2011
Total Posts: 206
23 Mar 2014 09:57 PM
because it helps me keep my thoughts organized :P
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
23 Mar 2014 09:57 PM
I usually do that because it's hard to read thick paragraphs. Just separate points with enter =P.
Report Abuse
roboslayer10 is not online. roboslayer10
Joined: 08 Aug 2011
Total Posts: 206
23 Mar 2014 09:58 PM
agreed^
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
23 Mar 2014 10:17 PM
That's what I do very often.

Also, that's a clever idea, that night vision method.

Also, I love the fact that ROBLOX "in no way whatsoever supports Local bricks", and then goes ahead and uses them.
Report Abuse
BladeXE is not online. BladeXE
Joined: 22 Dec 2012
Total Posts: 3857
23 Mar 2014 10:22 PM
--lol
message = Instance.new("Message", Workspace)
if "Dimensions" == "Oblixar" then
m.Text = "Dimensions copied Oblixar"
wait(5)
m:Destroy()
else
m.Text = "Dimensions is original, Oblixar is the scam, yet was in the blog."
wait(5)
m:Desotry()
end

OUTPUT :
Dimensions copied Oblixar

Report Abuse
BladeXE is not online. BladeXE
Joined: 22 Dec 2012
Total Posts: 3857
23 Mar 2014 10:24 PM
--lol
message = Instance.new("Message", Workspace)
if "Dimensions" == "Oblixar" then
m.Text = "Dimensions copied Oblixar"
wait(5)
m:Destroy()
else
m.Text = "Dimensions is original, Oblixar is the scam, yet was in the blog."
wait(5)
m:Destroy()
end
if m.Text == "Dimensions copied Oblixar" then
print("That's cheap bro.")
else
print("Sorry for doubting you")

My output is :
That's cheap bro.

-- My first one I did wrong, Would've thrown an error.
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
23 Mar 2014 11:37 PM
In essence, if you set FilteringEnabled to true, every brick created by the client and parented anywhere in workspace will be a local brick. ^_^
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