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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Function declaratin question.

Previous Thread :: Next Thread 
Jinxy is not online. Jinxy
Joined: 04 Aug 2007
Total Posts: 18317
10 Jul 2011 02:46 PM
If we declare a function (for purposes I'll use Dingdong's example)
---
function ChangeBase()
---
and we type later into the script
---
ChangeBase()
---
It would do the function specified by the words ChangeBase()?
Report Abuse
DrAgonmoray is not online. DrAgonmoray
Joined: 29 Jul 2008
Total Posts: 17428
10 Jul 2011 02:49 PM
Yes.. I think?

function bob()
print("bawb")
end
---
later in the script
--
bob()

would print 'bawb'
Report Abuse
Jinxy is not online. Jinxy
Joined: 04 Aug 2007
Total Posts: 18317
10 Jul 2011 02:52 PM
._. Let me rephrase. If I declare a function ChangeBase(), I only have to type Changebase() next time, so setting function ChangeBase() to a variable would be pointless, because all I had to do is type in Changebase() correct?
Report Abuse
DrAgonmoray is not online. DrAgonmoray
Joined: 29 Jul 2008
Total Posts: 17428
10 Jul 2011 02:52 PM
Correct
Report Abuse
Jinxy is not online. Jinxy
Joined: 04 Aug 2007
Total Posts: 18317
10 Jul 2011 02:53 PM
Alright thanks.
Report Abuse
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
10 Jul 2011 02:53 PM
[ Content Deleted ]
Report Abuse
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
10 Jul 2011 02:54 PM
[ Content Deleted ]
Report Abuse
Jinxy is not online. Jinxy
Joined: 04 Aug 2007
Total Posts: 18317
10 Jul 2011 02:54 PM
For a beginner's sake, we'll use it my way, until I get to that point Mycro, thanks for the help.
Report Abuse
RATEXmegaGAMER is not online. RATEXmegaGAMER
Joined: 10 Dec 2010
Total Posts: 4046
10 Jul 2011 02:56 PM
@Jinxy also don't forget you will need to type the arguments too.
Report Abuse
Spectrumw is not online. Spectrumw
Joined: 04 Aug 2009
Total Posts: 13510
10 Jul 2011 02:57 PM
@RATEX
If he didn't include arguments in its function, there's no reason why he should add them while casting it.
Report Abuse
Jinxy is not online. Jinxy
Joined: 04 Aug 2007
Total Posts: 18317
10 Jul 2011 02:58 PM
I won't forget that. Unless I'm working on a megascript.
Report Abuse
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
10 Jul 2011 02:58 PM
[ Content Deleted ]
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