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: How to add fog to a game with a clicked function?

Previous Thread :: Next Thread 
KingGengar is not online. KingGengar
Joined: 07 May 2013
Total Posts: 278
05 Sep 2015 10:11 PM
function onClicked()

game.Workspace.Lighting.FogEnd=100

script.Parent.ClickDetector.MouseClick:connect(onClicked)

why isn't this working?
Report Abuse
SolePlayer is not online. SolePlayer
Joined: 06 May 2012
Total Posts: 481
06 Sep 2015 11:15 PM
Check your path.
Report Abuse
Quebankus is online. Quebankus
Joined: 25 Aug 2011
Total Posts: 846
06 Sep 2015 11:17 PM
the function have no end dude
ogm leern 2 skript

--Quebankus
Report Abuse
KingGengar is not online. KingGengar
Joined: 07 May 2013
Total Posts: 278
10 Sep 2015 01:06 AM
what do you think im doing? ._.
Report Abuse
KingGengar is not online. KingGengar
Joined: 07 May 2013
Total Posts: 278
10 Sep 2015 01:09 AM
if you have workspace open, lighting looks like its in workspace lol, obvious mistake
Report Abuse
Quebankus is online. Quebankus
Joined: 25 Aug 2011
Total Posts: 846
10 Sep 2015 01:11 AM
function onClicked()
game.Lighting.FogEnd=100
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
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