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 we call a function from another script?

Previous Thread :: Next Thread 
ScriptGuilder is not online. ScriptGuilder
Joined: 07 Aug 2014
Total Posts: 848
12 Oct 2014 11:21 PM
_G?
Report Abuse
SiIentSins is not online. SiIentSins
Joined: 20 Jul 2011
Total Posts: 1553
12 Oct 2014 11:39 PM
As far as I know, no.
Report Abuse
kevmartin is not online. kevmartin
Joined: 06 Jan 2012
Total Posts: 34
12 Oct 2014 11:42 PM
I don't think you can. When you make a function, it's just in that script. If you really want it to be in another script, just copy and paste it into the other script.
Report Abuse
ScriptGuilder is not online. ScriptGuilder
Joined: 07 Aug 2014
Total Posts: 848
12 Oct 2014 11:42 PM
Dang, even if we use globals?
Report Abuse
Parlus2 is not online. Parlus2
Joined: 16 May 2009
Total Posts: 11272
12 Oct 2014 11:43 PM
yes can dont listen to these noobs
Report Abuse
ScriptGuilder is not online. ScriptGuilder
Joined: 07 Aug 2014
Total Posts: 848
12 Oct 2014 11:44 PM
kk
Report Abuse
kevmartin is not online. kevmartin
Joined: 06 Jan 2012
Total Posts: 34
12 Oct 2014 11:48 PM
Geez, I am just a beginner scripter and I don't know much about scripting. I accept that I am a noob, but I don't need to be told.
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
12 Oct 2014 11:58 PM
ModuleScripts > global functions

In most cases.
Report Abuse
bob10110 is not online. bob10110
Joined: 09 Dec 2007
Total Posts: 679
13 Oct 2014 12:46 AM
There's also RemoteEvents, which will basically call a function as soon as it receives a signal that any other script can send.

Wiki link: http://wiki.roblox.com/index.php?title=RemoteFunction_and_RemoteEvent_Tutorial
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
13 Oct 2014 12:47 AM
Global functions will work, yes. ModuleScripts are preferable.
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