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: Problems with Roblox API

Previous Thread :: Next Thread 
Blenderman9000 is not online. Blenderman9000
Joined: 30 Nov 2011
Total Posts: 163
10 Mar 2013 04:38 PM
Hi there!

I am making an API for fellow scripters but ive ran into a problem. My API is a script with a bunch of functions, but how do scripts use functions from other scripts? I have heard there is an `include` thing. Much help would be appreciated. =)

Thanks,
Blenderman9000
Report Abuse
Azarth is not online. Azarth
Joined: 17 Aug 2012
Total Posts: 2760
10 Mar 2013 04:43 PM
http://wiki.roblox.com/index.php/Global_Functions
Report Abuse
Blenderman9000 is not online. Blenderman9000
Joined: 30 Nov 2011
Total Posts: 163
10 Mar 2013 04:45 PM
Thank you Azarth, I will look into that.
Report Abuse
dragonkeeper467 is not online. dragonkeeper467
Joined: 24 Jan 2011
Total Posts: 472
10 Mar 2013 05:40 PM
_G(function name)

I think this is it.
Report Abuse
Blenderman9000 is not online. Blenderman9000
Joined: 30 Nov 2011
Total Posts: 163
10 Mar 2013 05:55 PM
Close.

    _G["Hello"] = function()
        print("Hello, World!")
    end
    --Now to call it
    _G.Hello() --Output: Hello, World!
Report Abuse
velibor is not online. velibor
Joined: 24 Nov 2009
Total Posts: 1003
10 Mar 2013 05:56 PM
I always create Methods for that.. (My own Objects by creating tables and then use getfenv() to set the environment)
Report Abuse
Blenderman9000 is not online. Blenderman9000
Joined: 30 Nov 2011
Total Posts: 163
10 Mar 2013 06:22 PM
Cool.
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