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: Can I have a script read another script?

Previous Thread :: Next Thread 
PReEMa is not online. PReEMa
Joined: 31 Jul 2012
Total Posts: 9
24 Aug 2012 07:22 PM
Like I want to use loadstring()() to load functions that I have in a separate script.
Can I do that?

Or is there another way to assign global functions?
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
24 Aug 2012 07:50 PM
You can use loadstring()() or you can use Global Functions, but I believe Global Functions may break later on.
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
24 Aug 2012 07:51 PM
No, you can't get the source of scripts unless you're using a plugin.

-[::ƧѡÎḾḠΰῩ::]-[::Maker of stuff and Helper of Scripting::]-
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
24 Aug 2012 07:52 PM
I know that, but I think he meant, wait... I thought he meant execute a script... Never mind listen to swim.
Report Abuse
InternetGuy is not online. InternetGuy
Joined: 28 Apr 2010
Total Posts: 3385
24 Aug 2012 08:01 PM
Wasn't loadstring removed? That's what the news said...
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
24 Aug 2012 08:08 PM
WHAT!
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
24 Aug 2012 08:09 PM
No, bytecode was disabled. Loadstring()() still works.

-[::ƧѡÎḾḠΰῩ::]-[::Maker of stuff and Helper of Scripting::]-
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
24 Aug 2012 08:11 PM
Oh, okay good.. I miss bytecode... No more string.byte, eh?
Report Abuse
PReEMa is not online. PReEMa
Joined: 31 Jul 2012
Total Posts: 9
24 Aug 2012 09:06 PM
So, I can't have a script read a function off of another script, right?
Report Abuse
mamaguy is not online. mamaguy
Joined: 07 Oct 2010
Total Posts: 7073
24 Aug 2012 09:18 PM
@PReEMa,
Yes,
Use a global function,
If the function is one that you call, then put this before it:
_G["functionname"] = (function())
then to call it I think
_G.functionname(parameter(s))
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