|
| 17 Jul 2011 06:33 PM |
| I need a specific function be able to be accessed through any script in the game. However, if I put it in _G, players have the ability to destroy my game. What should I do? |
|
|
| Report Abuse |
|
|
|
| 17 Jul 2011 06:35 PM |
| How would it let people destroy your game? ._. |
|
|
| Report Abuse |
|
|
| |
|
5943539
|
  |
| Joined: 05 Jan 2010 |
| Total Posts: 810 |
|
|
| 17 Jul 2011 06:39 PM |
Yeah, I'm working on my game which has global functions like
_G.foo=function() print('bar') end
Can be used in ALL (non local) scripts, and it's used by some of the scripts. |
|
|
| Report Abuse |
|
|
|
| 17 Jul 2011 06:41 PM |
@594
That didn't answer my question at all. |
|
|
| Report Abuse |
|
|
|
| 17 Jul 2011 07:11 PM |
| index the function in all of your scripts. That's the only way if you don't want to put it in _G |
|
|
| Report Abuse |
|
|