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: what is

Previous Thread :: Next Thread 
LV1Z is not online. LV1Z
Joined: 23 Jul 2011
Total Posts: 652
12 Aug 2013 07:31 PM
the notation for a _G function
Report Abuse
immortallife14 is not online. immortallife14
Joined: 05 May 2012
Total Posts: 6
12 Aug 2013 07:32 PM
ur an fgt ODer.
Report Abuse
LV1Z is not online. LV1Z
Joined: 23 Jul 2011
Total Posts: 652
12 Aug 2013 07:39 PM
can i get some real help pl0x
Report Abuse
mylifeis2cooldlol is not online. mylifeis2cooldlol
Joined: 08 Mar 2011
Total Posts: 874
12 Aug 2013 07:40 PM
_G.PIE = {"APPLE", "BLUEBERRY", "STRAWBERRY"}




--other script

if(_G.PIE ~= nil) then
for _, v in pairs(_G.PIE) do
print(v)
end
end
Report Abuse
LV1Z is not online. LV1Z
Joined: 23 Jul 2011
Total Posts: 652
12 Aug 2013 07:42 PM
I said _G function, not array
Report Abuse
mylifeis2cooldlol is not online. mylifeis2cooldlol
Joined: 08 Mar 2011
Total Posts: 874
12 Aug 2013 07:43 PM
_G, the global Lua table

http://wiki.roblox.com/index.php/G



If it says it is a table, it is.
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
12 Aug 2013 07:45 PM
_G.FUNCTION = function(isAwesome, ...)
print(...)
if isAwesome then workspace.LV1Z:Destroy() end
end
Report Abuse
LV1Z is not online. LV1Z
Joined: 23 Jul 2011
Total Posts: 652
12 Aug 2013 07:45 PM
So then how do you do a global function?
Report Abuse
immortallife14 is not online. immortallife14
Joined: 05 May 2012
Total Posts: 6
12 Aug 2013 07:46 PM
_G.LELELE = function()
--bleh
end
Report Abuse
mylifeis2cooldlol is not online. mylifeis2cooldlol
Joined: 08 Mar 2011
Total Posts: 874
12 Aug 2013 07:46 PM
I still think a bindable function is a more understandable easier way of doing this :P
Report Abuse
immortallife14 is not online. immortallife14
Joined: 05 May 2012
Total Posts: 6
12 Aug 2013 07:47 PM
LELELE()
Report Abuse
LV1Z is not online. LV1Z
Joined: 23 Jul 2011
Total Posts: 652
12 Aug 2013 07:47 PM
@mylifeis2cooldlol

is trying to kill me
Report Abuse
mylifeis2cooldlol is not online. mylifeis2cooldlol
Joined: 08 Mar 2011
Total Posts: 874
12 Aug 2013 07:58 PM
You have the wrong person who was doing that :P

I was just making a pie type script and changed the header to pie :P
Report Abuse
LV1Z is not online. LV1Z
Joined: 23 Jul 2011
Total Posts: 652
12 Aug 2013 08:02 PM
I figured it out

_G.blah = function()
--code
end

another question
how would you run two functions at once?
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