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: Fog Script

Previous Thread :: Next Thread 
DDude9091 is not online. DDude9091
Joined: 13 Mar 2010
Total Posts: 39
29 Aug 2013 01:07 PM
An on touch script that makes it impossible to see through the fog, but doesn't work. So, where'd I screw up and what do I need to tell you?

function onTouch(part)
local humanoid = part.Parent:FindFirstChild("Humanoid")
if (humanoid ~= nil) then
game.Lighting.Fog.FogEnd=0
end
end

script.Parent.Touched:connect(onTouch)
Report Abuse
janthran is not online. janthran
Joined: 15 May 2009
Total Posts: 17429
29 Aug 2013 01:09 PM
Output?
Report Abuse
DDude9091 is not online. DDude9091
Joined: 13 Mar 2010
Total Posts: 39
29 Aug 2013 01:10 PM
Grabbing the output, brb.
Report Abuse
janthran is not online. janthran
Joined: 15 May 2009
Total Posts: 17429
29 Aug 2013 01:10 PM
Oh, do
game.Lighting.FogEnd
instead of
game.Lighting.Fog.FogEnd
Report Abuse
DDude9091 is not online. DDude9091
Joined: 13 Mar 2010
Total Posts: 39
29 Aug 2013 01:11 PM
14:10:59.471 - Fog is not a valid member of Lighting
14:10:59.471 - Script 'Workspace.Part.Script', Line 4
14:10:59.472 - stack end
14:10:59.472 - Disconnected event because of exception
Report Abuse
DDude9091 is not online. DDude9091
Joined: 13 Mar 2010
Total Posts: 39
29 Aug 2013 01:11 PM
Thanks.
Report Abuse
xxBsFxx is not online. xxBsFxx
Joined: 26 Aug 2013
Total Posts: 3281
29 Aug 2013 01:12 PM
[ Content Deleted ]
Report Abuse
xxBsFxx is not online. xxBsFxx
Joined: 26 Aug 2013
Total Posts: 3281
29 Aug 2013 01:12 PM
[ Content Deleted ]
Report Abuse
janthran is not online. janthran
Joined: 15 May 2009
Total Posts: 17429
29 Aug 2013 01:15 PM
Also no, Lighting is not in Workspace
Report Abuse
DDude9091 is not online. DDude9091
Joined: 13 Mar 2010
Total Posts: 39
29 Aug 2013 01:15 PM
All figured out now. Thanks Janthran, its for an M.C. Escher like game. I may post a link here later to show you.
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