mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
|
| 16 Jul 2012 05:16 PM |
_G.Fog = (function fog1(end1) l = game.Lighting repeat l.FogEnd = FogEnd +1 wait(0.5) until l.FogEnd == end1 end)
So then in another script....: a = math.random(100) _G.Fog(a) Correct way? :/ |
|
|
| Report Abuse |
|
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
| |
|
swmaniac
|
  |
| Joined: 28 Jun 2008 |
| Total Posts: 15773 |
|
| |
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
|
| 16 Jul 2012 05:31 PM |
Forgot to include an error I get, 'Workspace.Functions: '(' expected near 'Fog1'' I don't know what it means :/ |
|
|
| Report Abuse |
|
|
swmaniac
|
  |
| Joined: 28 Jun 2008 |
| Total Posts: 15773 |
|
|
| 16 Jul 2012 05:36 PM |
Oh, missed something.
_G.Fog = (function(end1) -- Don't need to give the function a name twice. |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 16 Jul 2012 05:37 PM |
| remove the "fog1" from the first line |
|
|
| Report Abuse |
|
|
1pie23
|
  |
| Joined: 11 Jul 2010 |
| Total Posts: 1865 |
|
| |
|
1pie23
|
  |
| Joined: 11 Jul 2010 |
| Total Posts: 1865 |
|
| |
|
swmaniac
|
  |
| Joined: 28 Jun 2008 |
| Total Posts: 15773 |
|
|
| 16 Jul 2012 05:52 PM |
@1pie23 Either with or without the space works. |
|
|
| Report Abuse |
|
|
1pie23
|
  |
| Joined: 11 Jul 2010 |
| Total Posts: 1865 |
|
| |
|