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 » Scripters
Home Search
 

Re: How Can I Acces Global Tables through local scripts?

Previous Thread :: Next Thread 
Born2Script is not online. Born2Script
Joined: 23 Jul 2013
Total Posts: 2670
23 Jun 2015 04:02 PM
There must be a way right? Thank you.



Blox Brawl Is Back!: http://www.roblox.com/games/257218159/Roblox-Blox-Brawl-ITS-BACK#
Report Abuse
Locard is not online. Locard
Joined: 13 Apr 2014
Total Posts: 3516
23 Jun 2015 04:02 PM
remotefunctions are always fun to use.
Report Abuse
Born2Script is not online. Born2Script
Joined: 23 Jul 2013
Total Posts: 2670
23 Jun 2015 04:03 PM
how can I use them in this situation?



Blox Brawl Is Back!: http://www.roblox.com/games/257218159/Roblox-Blox-Brawl-ITS-BACK#
Report Abuse
Locard is not online. Locard
Joined: 13 Apr 2014
Total Posts: 3516
23 Jun 2015 04:07 PM
Well, that depends on which global table you're talking about. Are you talking about local global tables or server global tables? They are 2 different things of course, but to access server global tables you would need remotefunctions.

server script

game.ReplicatedStorage.RemoteFunction.OnServerInvoke = function(player,index)
if _G[index] then return _G[index] else return nil end
end)


local script

local val = game.ReplicatedStorage.RemoteFunction:InvokeServer(index)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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