Danert1
|
  |
| Joined: 06 Jun 2010 |
| Total Posts: 1550 |
|
|
| 27 Oct 2012 12:58 PM |
I'm quite new to scripting. I wanted to make a "Lightswitch" script. What I came up with:
function onClicked game.Lighting.Brightness = 0 game.Lighting.FogEnd = 15 end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
In the output it says: 12:54:33 - Workspace.lightswitch.Script:2: '(' expected near 'game'
The lightswitch won't function. Can anybody tell me how to fix this? |
|
|
| Report Abuse |
|
|
| |
|
Danert1
|
  |
| Joined: 06 Jun 2010 |
| Total Posts: 1550 |
|
|
| 27 Oct 2012 12:59 PM |
*facepalm* I really missed that... |
|
|
| Report Abuse |
|
|
Danert1
|
  |
| Joined: 06 Jun 2010 |
| Total Posts: 1550 |
|
|
| 27 Oct 2012 01:02 PM |
| Well, Thank you! The script works fine now. |
|
|
| Report Abuse |
|
|
| |
|