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: Fog which can only be seen by one player only

Previous Thread :: Next Thread 
ParaGenesis is not online. ParaGenesis
Joined: 17 Nov 2014
Total Posts: 21
05 Dec 2016 03:35 PM
I've tried to script this but every time I test it, both the other player and me see the fogcolor, fogend and fogstart change for both of us, whilst I only wanted just the individual player to see the fog change once they touch a brick, if you know how to do this, I would like to know please! :-(


Report Abuse
pidgey is not online. pidgey
Joined: 16 Jan 2008
Total Posts: 2739
05 Dec 2016 03:36 PM
turn fe on and change lighting in a local script
Report Abuse
10MilesWide is not online. 10MilesWide
Joined: 06 Aug 2014
Total Posts: 2220
05 Dec 2016 03:51 PM
https://www.roblox.com/games/101138442/Local-Lighting-via-Latency
Report Abuse
TheShadowMessage is not online. TheShadowMessage
Joined: 21 Sep 2012
Total Posts: 10379
05 Dec 2016 03:54 PM
if u dont know how to FE then ur out of luck
but
u can mess around with billboard guis and the new lighting effects to kinda sorta replicate fog
Report Abuse
ParaGenesis is not online. ParaGenesis
Joined: 17 Nov 2014
Total Posts: 21
19 Dec 2016 07:29 AM
I put the local scripts into Lighting, but now the fog doesn't appear at all whenever I touch it


Report Abuse
10MilesWide is not online. 10MilesWide
Joined: 06 Aug 2014
Total Posts: 2220
19 Dec 2016 07:30 AM
So you put the localscripts in lighting, and now they don't work?
Sounds like a bug
Report Abuse
10MilesWide is not online. 10MilesWide
Joined: 06 Aug 2014
Total Posts: 2220
19 Dec 2016 07:31 AM
Are you using FE or the solution I posted?
Report Abuse
ParaGenesis is not online. ParaGenesis
Joined: 17 Nov 2014
Total Posts: 21
19 Dec 2016 07:50 AM
I enabled FE


Report Abuse
Rerumu is not online. Rerumu
Joined: 11 Oct 2014
Total Posts: 950
19 Dec 2016 07:59 AM
"So you put the localscripts in lighting, and now they don't work?
Sounds like a bug"

Lol.
Report Abuse
TheShadowMasterX is not online. TheShadowMasterX
Joined: 19 Aug 2014
Total Posts: 18
19 Dec 2016 09:16 AM
Don't you have to use RemoteEvent for this?


Report Abuse
ParaGenesis is not online. ParaGenesis
Joined: 17 Nov 2014
Total Posts: 21
19 Dec 2016 09:37 AM
I've tried to do everything but it doesn't seem to work...


Report Abuse
TheShadowMasterX is not online. TheShadowMasterX
Joined: 19 Aug 2014
Total Posts: 18
19 Dec 2016 10:12 AM
Dude. Just use the solution 10MilesWide gave you if you don't know how to use FE.


Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
19 Dec 2016 10:47 AM
@OP

workspace.FilteringEnabled = true

--local script

game.Lighting.FogEnd = 10



BOOM DONE. Its that easy


Report Abuse
10MilesWide is not online. 10MilesWide
Joined: 06 Aug 2014
Total Posts: 2220
19 Dec 2016 11:09 AM
TimeTicks, that's what he did







Then he put the script in Lighting
Report Abuse
HlCOM is not online. HlCOM
Joined: 29 Mar 2009
Total Posts: 3332
19 Dec 2016 11:10 AM
http://wiki.roblox.com/index.php?title=API:Class/LocalScript
Report Abuse
ParaGenesis is not online. ParaGenesis
Joined: 17 Nov 2014
Total Posts: 21
17 Jan 2017 01:25 PM
I'm not sure if this LOCAL script is right, this is what I have done.

local part = game.Workspace.ChangingBlock3
game.Workspace.FilteringEnabled = true

function onTouch(part)
local humanoid = part.Parent:findFirstChild("Humanoid")
if humanoid~= nil then
wait(1)
game.Lighting.FogEnd = (40)
game.Lighting.FogStart = (0)
game.Lighting.FogColor = Color3.new (0,0,0)
game.Lighting.TimeOfDay = (00)

end
end

part.Touched:connect(onTouch)

For some reason, it doesn't work if I script it like this, anything I did wrong???


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