|
| 26 Mar 2013 08:25 PM |
If I understood correctly, all normal scripts can access a global function/variable defined in a normal script, and all localscrips can access those declared in other localscripts. Does this mean one player's localscript can access the global variable or function in another player's localscript? (located in some local area of the player, backpack or gui whatever) |
|
|
| Report Abuse |
|
|
keehl254
|
  |
| Joined: 08 Sep 2010 |
| Total Posts: 131 |
|
|
| 26 Mar 2013 08:34 PM |
Well, i didn't follow you at all on that...But from what i can understand...I normal script can basiclly do normal functions that tweek/change the game. A Local Script allows the script to get into the current player. These only work in the Explore part of the player. etc... The player character, the player, the player gui, in a tool. |
|
|
| Report Abuse |
|
|
|
| 26 Mar 2013 08:52 PM |
| That's not what I'm talking about keehl |
|
|
| Report Abuse |
|
|
| |
|
|
| 27 Mar 2013 08:20 AM |
| No, each client has their own global environment(_G) |
|
|
| Report Abuse |
|
|
As8D
|
  |
| Joined: 24 Dec 2009 |
| Total Posts: 2907 |
|
|
| 27 Mar 2013 11:07 AM |
^ and shared!
In a place with 2 players, we have the following environments:
Server Player1 Player2
... which is just what StealthKing95 said.
- As, explain why the wall is crushed. |
|
|
| Report Abuse |
|
|
| |
|