EvanHolt
|
  |
| Joined: 06 Sep 2008 |
| Total Posts: 1264 |
|
|
| 07 Oct 2014 07:26 PM |
I've been messing around with Module Scripts recently and was wondering if they have the same limitations as Scripts and/or Local Scripts.
Things such as: -Can Module Scripts access the CurrentCamera? (Scripts can't, Local Scripts can) -Can they access Players? (Scripts can, Local Scripts can't) -Can they access special properties, like TextBounds? (Scripts can't, Local Scripts can) etc. |
|
|
| Report Abuse |
|
|
IcyFires
|
  |
| Joined: 29 Jun 2013 |
| Total Posts: 5046 |
|
|
| 07 Oct 2014 07:32 PM |
| I believe it depends on the script you are requiring the module script in. |
|
|
| Report Abuse |
|
|
EvanHolt
|
  |
| Joined: 06 Sep 2008 |
| Total Posts: 1264 |
|
|
| 07 Oct 2014 07:35 PM |
| So, if I require the Module Script with a Script it would have Script limitations and if I require the Module Script with a Local Script it would have Local Script limitations? |
|
|
| Report Abuse |
|
|
IcyFires
|
  |
| Joined: 29 Jun 2013 |
| Total Posts: 5046 |
|
|
| 07 Oct 2014 07:37 PM |
| From what I understand, yes. I haven't tried it myself, though. So test it and tell me the results. |
|
|
| Report Abuse |
|
|
EvanHolt
|
  |
| Joined: 06 Sep 2008 |
| Total Posts: 1264 |
|
|
| 07 Oct 2014 07:43 PM |
Dang it, that means I can't get around Script and Local Script limitations using Module Scripts.
In one of my projects I'm working on a custom chat system, but I need to both access all Players and the TextBounds Property of GUIs. |
|
|
| Report Abuse |
|
|