chimmmihc
|
  |
| Joined: 24 Jul 2014 |
| Total Posts: 2420 |
|
|
| 22 Aug 2015 03:21 PM |
| I need to access one of the variables in the Invisicam module. How can I do this? |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 22 Aug 2015 03:21 PM |
| modify the module so you can access it |
|
|
| Report Abuse |
|
|
Casualist
|
  |
| Joined: 26 Jun 2014 |
| Total Posts: 4443 |
|
| |
|
chimmmihc
|
  |
| Joined: 24 Jul 2014 |
| Total Posts: 2420 |
|
|
| 22 Aug 2015 03:25 PM |
http://www.roblox.com/Invisicam-item?id=183837794
Line 247, I need that variable so I can add it each part stored in it to mousefilter.
|
|
|
| Report Abuse |
|
|
chimmmihc
|
  |
| Joined: 24 Jul 2014 |
| Total Posts: 2420 |
|
| |
|
|
| 22 Aug 2015 04:13 PM |
module = {} module.Get = function(k) return getfenv()[k] end return module
------------ x = require(your module) x.Get("Name") |
|
|
| Report Abuse |
|
|
chimmmihc
|
  |
| Joined: 24 Jul 2014 |
| Total Posts: 2420 |
|
| |
|
|
| 22 Aug 2015 04:29 PM |
it gets the function environment and returns it and variables are just chilling there
while true do the do |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2015 04:30 PM |
getfenv() returns a table of all global variables. "k" is the argument supplied from the requiring script. |
|
|
| Report Abuse |
|
|
chimmmihc
|
  |
| Joined: 24 Jul 2014 |
| Total Posts: 2420 |
|
|
| 22 Aug 2015 04:30 PM |
| getfunv being the function? And k being the variable? |
|
|
| Report Abuse |
|
|
chimmmihc
|
  |
| Joined: 24 Jul 2014 |
| Total Posts: 2420 |
|
|
| 22 Aug 2015 04:33 PM |
| I read the dump on the function I understand it now Ty. |
|
|
| Report Abuse |
|
|