generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Global functions/variables & LocalScripts

Previous Thread :: Next Thread 
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
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 is not online. 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
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
26 Mar 2013 08:52 PM
That's not what I'm talking about keehl
Report Abuse
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
27 Mar 2013 08:18 AM
Please, someone who knows
Report Abuse
StealthKing95 is not online. StealthKing95
Joined: 13 Dec 2008
Total Posts: 4263
27 Mar 2013 08:20 AM
No, each client has their own global environment(_G)
Report Abuse
As8D is online. 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
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
27 Mar 2013 07:14 PM
muchos gracias
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image